Export the ssthresh value per SCTP path via the sysctl interface.

MFC after: 1 month
This commit is contained in:
Michael Tuexen 2015-07-07 06:34:28 +00:00
parent 9efc2aa4a6
commit 29b9533b43
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285237
2 changed files with 3 additions and 1 deletions

View File

@ -511,6 +511,7 @@ sctp_sysctl_handle_assoclist(SYSCTL_HANDLER_ARGS)
xraddr.mtu = net->mtu;
xraddr.rtt = net->rtt / 1000;
xraddr.heartbeat_interval = net->heart_beat_delay;
xraddr.ssthresh = net->ssthresh;
xraddr.start_time.tv_sec = (uint32_t) net->start_time.tv_sec;
xraddr.start_time.tv_usec = (uint32_t) net->start_time.tv_usec;
SCTP_INP_RUNLOCK(inp);

View File

@ -1228,7 +1228,8 @@ struct xsctp_raddr {
struct sctp_timeval start_time; /* sctpAssocLocalRemEntry 8 */
uint32_t rtt;
uint32_t heartbeat_interval;
uint32_t extra_padding[31]; /* future */
uint32_t ssthresh;
uint32_t extra_padding[30]; /* future */
};
#define SCTP_MAX_LOGGING_SIZE 30000