svn commit: r222029 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Tue May 17 15:57:32 UTC 2011


Author: tuexen
Date: Tue May 17 15:57:31 2011
New Revision: 222029
URL: http://svn.freebsd.org/changeset/base/222029

Log:
  Copy out the mtu when calling getsockopt() with SCTP_GET_PEER_ADDR_INFO.
  
  MFC after: 1 week.

Modified:
  head/sys/netinet/sctp_usrreq.c

Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c	Tue May 17 15:46:28 2011	(r222028)
+++ head/sys/netinet/sctp_usrreq.c	Tue May 17 15:57:31 2011	(r222029)
@@ -2489,6 +2489,7 @@ flags_out:
 				paddri->spinfo_srtt = net->lastsa >> SCTP_RTT_SHIFT;
 				paddri->spinfo_rto = net->RTO;
 				paddri->spinfo_assoc_id = sctp_get_associd(stcb);
+				paddri->spinfo_mtu = net->mtu;
 				SCTP_TCB_UNLOCK(stcb);
 			} else {
 				if (stcb) {


More information about the svn-src-head mailing list