[SCTP]: extend exported data in /proc/net/sctp/assoc
RFC 3873 specifies several MIB objects that can't be obtained by the current data set exported by /proc/sys/net/sctp/assoc. This patch adds the missing pieces of data that allow us to compute all the objects in the sctpAssocTable object. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
665bba1087
commit
58fbbed4fb
@ -494,6 +494,8 @@ void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport,
|
||||
*/
|
||||
if (transport == transport->asoc->peer.retran_path)
|
||||
sctp_assoc_update_retran_path(transport->asoc);
|
||||
transport->asoc->rtx_data_chunks +=
|
||||
transport->asoc->unack_data;
|
||||
break;
|
||||
case SCTP_RTXR_FAST_RTX:
|
||||
SCTP_INC_STATS(SCTP_MIB_FAST_RETRANSMITS);
|
||||
@ -504,6 +506,7 @@ void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport,
|
||||
break;
|
||||
case SCTP_RTXR_T1_RTX:
|
||||
SCTP_INC_STATS(SCTP_MIB_T1_RETRANSMITS);
|
||||
transport->asoc->init_retries++;
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
|
Reference in New Issue
Block a user