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) {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to