svn commit: r294139 - stable/10/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sat Jan 16 11:19:09 UTC 2016


Author: tuexen
Date: Sat Jan 16 11:19:08 2016
New Revision: 294139
URL: https://svnweb.freebsd.org/changeset/base/294139

Log:
  MFC r285237:
  
  Export the ssthresh value per SCTP path via the sysctl interface.

Modified:
  stable/10/sys/netinet/sctp_sysctl.c
  stable/10/sys/netinet/sctp_uio.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/sctp_sysctl.c
==============================================================================
--- stable/10/sys/netinet/sctp_sysctl.c	Sat Jan 16 10:12:50 2016	(r294138)
+++ stable/10/sys/netinet/sctp_sysctl.c	Sat Jan 16 11:19:08 2016	(r294139)
@@ -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: stable/10/sys/netinet/sctp_uio.h
==============================================================================
--- stable/10/sys/netinet/sctp_uio.h	Sat Jan 16 10:12:50 2016	(r294138)
+++ stable/10/sys/netinet/sctp_uio.h	Sat Jan 16 11:19:08 2016	(r294139)
@@ -1229,7 +1229,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-all mailing list