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

MFC after: 1 week.
This commit is contained in:
tuexen 2011-05-17 15:57:31 +00:00
parent 2e7231aa8a
commit dd891455b5

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) {