svn commit: r362861 - stable/12/sys/netinet6
Michael Tuexen
tuexen at FreeBSD.org
Wed Jul 1 20:37:06 UTC 2020
Author: tuexen
Date: Wed Jul 1 20:37:06 2020
New Revision: 362861
URL: https://svnweb.freebsd.org/changeset/base/362861
Log:
MFC r355264:
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/12/sys/netinet6/sctp6_usrreq.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- stable/12/sys/netinet6/sctp6_usrreq.c Wed Jul 1 20:32:51 2020 (r362860)
+++ stable/12/sys/netinet6/sctp6_usrreq.c Wed Jul 1 20:37:06 2020 (r362861)
@@ -242,6 +242,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
mailing list