svn commit: r355264 - head/sys/netinet6
Michael Tuexen
tuexen at FreeBSD.org
Sun Dec 1 16:14:45 UTC 2019
Author: tuexen
Date: Sun Dec 1 16:14:44 2019
New Revision: 355264
URL: https://svnweb.freebsd.org/changeset/base/355264
Log:
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
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D22605
Modified:
head/sys/netinet6/sctp6_usrreq.c
Modified: head/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- head/sys/netinet6/sctp6_usrreq.c Sun Dec 1 16:02:15 2019 (r355263)
+++ head/sys/netinet6/sctp6_usrreq.c Sun Dec 1 16:14:44 2019 (r355264)
@@ -240,6 +240,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-head
mailing list