svn commit: r285237 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Tue Jul 7 06:34:29 UTC 2015


Author: tuexen
Date: Tue Jul  7 06:34:28 2015
New Revision: 285237
URL: https://svnweb.freebsd.org/changeset/base/285237

Log:
  Export the ssthresh value per SCTP path via the sysctl interface.
  
  MFC after: 1 month

Modified:
  head/sys/netinet/sctp_sysctl.c
  head/sys/netinet/sctp_uio.h

Modified: head/sys/netinet/sctp_sysctl.c
==============================================================================
--- head/sys/netinet/sctp_sysctl.c	Tue Jul  7 04:15:22 2015	(r285236)
+++ head/sys/netinet/sctp_sysctl.c	Tue Jul  7 06:34:28 2015	(r285237)
@@ -511,6 +511,7 @@ sctp_sysctl_handle_assoclist(SYSCTL_HAND
 				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);

Modified: head/sys/netinet/sctp_uio.h
==============================================================================
--- head/sys/netinet/sctp_uio.h	Tue Jul  7 04:15:22 2015	(r285236)
+++ head/sys/netinet/sctp_uio.h	Tue Jul  7 06:34:28 2015	(r285237)
@@ -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


More information about the svn-src-head mailing list