diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2008-10-09 17:33:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-09 17:33:26 -0400 |
commit | a1080a8b0bc301c223c4bf0cea4c5e42f43dcf58 (patch) | |
tree | 0ed506114fa83f5b397eb40512a2f732defacaf3 | |
parent | 56eb82bb8d2cdd8d9f4838eaa109df41d7164ca5 (diff) |
sctp: update SNMP statiscts when T5 timer expired.
The T5 timer is the timer for the over-all shutdown procedure. If
this timer expires, then shutdown procedure has not completed and we
ABORT the association. We should update SCTP_MIB_ABORTED and
SCTP_MIB_CURRESTAB when aborting.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/sm_statefuns.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index f5094f1b5afa..d4c3fbc4671e 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -5489,6 +5489,9 @@ sctp_disposition_t sctp_sf_t5_timer_expire(const struct sctp_endpoint *ep, | |||
5489 | sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, | 5489 | sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, |
5490 | SCTP_PERR(SCTP_ERROR_NO_ERROR)); | 5490 | SCTP_PERR(SCTP_ERROR_NO_ERROR)); |
5491 | 5491 | ||
5492 | SCTP_INC_STATS(SCTP_MIB_ABORTEDS); | ||
5493 | SCTP_DEC_STATS(SCTP_MIB_CURRESTAB); | ||
5494 | |||
5492 | return SCTP_DISPOSITION_DELETE_TCB; | 5495 | return SCTP_DISPOSITION_DELETE_TCB; |
5493 | nomem: | 5496 | nomem: |
5494 | return SCTP_DISPOSITION_NOMEM; | 5497 | return SCTP_DISPOSITION_NOMEM; |