Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1080a8b authored by Vlad Yasevich's avatar Vlad Yasevich Committed by David S. Miller
Browse files

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: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 56eb82bb
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -5489,6 +5489,9 @@ sctp_disposition_t sctp_sf_t5_timer_expire(const struct sctp_endpoint *ep,
	sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED,
	sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED,
			SCTP_PERR(SCTP_ERROR_NO_ERROR));
			SCTP_PERR(SCTP_ERROR_NO_ERROR));


	SCTP_INC_STATS(SCTP_MIB_ABORTEDS);
	SCTP_DEC_STATS(SCTP_MIB_CURRESTAB);

	return SCTP_DISPOSITION_DELETE_TCB;
	return SCTP_DISPOSITION_DELETE_TCB;
nomem:
nomem:
	return SCTP_DISPOSITION_NOMEM;
	return SCTP_DISPOSITION_NOMEM;