svn commit: r360750 - stable/11/sys/netinet6
Michael Tuexen
tuexen at FreeBSD.org
Thu May 7 02:31:25 UTC 2020
Author: tuexen
Date: Thu May 7 02:31:24 2020
New Revision: 360750
URL: https://svnweb.freebsd.org/changeset/base/360750
Log:
MFC r355264: Handle PTB message consistent for SCTP/IPv[46]
Update the hostcache also for PTB messages received for SCTP/IPv6.
The corresponding code for SCTP/IPv4 was introduced in
https://svnweb.freebsd.org/base?view=revision&revision=317597
Submitted by: Julius Flohr
Differential Revision: https://reviews.freebsd.org/D22605
Modified:
stable/11/sys/netinet6/sctp6_usrreq.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- stable/11/sys/netinet6/sctp6_usrreq.c Thu May 7 02:28:30 2020 (r360749)
+++ stable/11/sys/netinet6/sctp6_usrreq.c Thu May 7 02:31:24 2020 (r360750)
@@ -238,6 +238,11 @@ sctp6_notify(struct sctp_inpcb *inp,
}
if (net->mtu > next_mtu) {
net->mtu = next_mtu;
+ if (net->port) {
+ sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu + sizeof(struct udphdr));
+ } else {
+ sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu);
+ }
}
/* Update the association MTU */
if (stcb->asoc.smallest_mtu > next_mtu) {
More information about the svn-src-stable-11
mailing list