diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2008-10-09 17:32:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-09 17:32:24 -0400 |
commit | 3d5a019d5761a40465337711ae7d2beb1e9b43ec (patch) | |
tree | 94f369e8a0be15a538c194844117b8b0b2a0694e /net/sctp/sm_statefuns.c | |
parent | 5c714e238e5e0eb74cdc74201bf3d6296b3b3104 (diff) |
sctp: Fix the SNMP number of SCTP_MIB_CURRESTAB
RFC3873 defined SCTP_MIB_CURRESTAB:
sctpCurrEstab OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of associations for which the current state is
either ESTABLISHED, SHUTDOWN-RECEIVED or SHUTDOWN-PENDING."
REFERENCE
"Section 4 in RFC2960 covers the SCTP Association state
diagram."
If the T4 RTO timer expires many times(timeout), the association will enter
CLOSED state, so we should dec the number of SCTP_MIB_CURRESTAB, not inc the
number of SCTP_MIB_CURRESTAB.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_statefuns.c')
-rw-r--r-- | net/sctp/sm_statefuns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index ea3a34cbe470..1588d063c68c 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -5436,7 +5436,7 @@ sctp_disposition_t sctp_sf_t4_timer_expire( | |||
5436 | sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, | 5436 | sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, |
5437 | SCTP_PERR(SCTP_ERROR_NO_ERROR)); | 5437 | SCTP_PERR(SCTP_ERROR_NO_ERROR)); |
5438 | SCTP_INC_STATS(SCTP_MIB_ABORTEDS); | 5438 | SCTP_INC_STATS(SCTP_MIB_ABORTEDS); |
5439 | SCTP_INC_STATS(SCTP_MIB_CURRESTAB); | 5439 | SCTP_DEC_STATS(SCTP_MIB_CURRESTAB); |
5440 | return SCTP_DISPOSITION_ABORT; | 5440 | return SCTP_DISPOSITION_ABORT; |
5441 | } | 5441 | } |
5442 | 5442 | ||