Copy out the mtu when calling getsockopt() with SCTP_GET_PEER_ADDR_INFO.

MFC after: 1 week.
This commit is contained in:
Michael Tuexen 2011-05-17 15:57:31 +00:00
parent c954cac48b
commit 4f36da915f

View File

@ -2489,6 +2489,7 @@ sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize,
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) {