diff options
| author | Randall Stewart <rrs@FreeBSD.org> | 2009-02-12 18:50:27 +0000 |
|---|---|---|
| committer | Randall Stewart <rrs@FreeBSD.org> | 2009-02-12 18:50:27 +0000 |
| commit | 1ae616bdd1308f9afe4e0cf74f25676d253ecb2e (patch) | |
| tree | 0a67f84736b00a1a9c3cc52daa3f2d44ca072262 /sys/netinet6 | |
| parent | e29c5f9fe0c5f42402a9a1fac8f2fa84bf5d3ddc (diff) | |
Notes
Diffstat (limited to 'sys/netinet6')
| -rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index d021dfc2bcc2..c6fc3cfd17d8 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -286,6 +286,9 @@ sctp6_notify_mbuf(struct sctp_inpcb *inp, struct icmp6_hdr *icmp6, /* Adjust destination size limit */ if (net->mtu > nxtsz) { net->mtu = nxtsz; + if (net->port) { + net->mtu -= sizeof(struct udphdr); + } } /* now what about the ep? */ if (stcb->asoc.smallest_mtu > nxtsz) { |
