diff options
author | ume <ume@FreeBSD.org> | 2004-02-24 15:40:55 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2004-02-24 15:40:55 +0000 |
commit | 2c901b5638823f90b3e05ec375fd604075805e0d (patch) | |
tree | c6b71ff59ac57208ca108568d7ea08befa377ea3 | |
parent | 5ef70fe223ecca1ecc385a720742f0b16159e859 (diff) | |
download | FreeBSD-src-2c901b5638823f90b3e05ec375fd604075805e0d.zip FreeBSD-src-2c901b5638823f90b3e05ec375fd604075805e0d.tar.gz |
in icmp6_mtudisc_update(), use ND link mtu to detect if the path MTU
should be updated.
Helped by: andre
-rw-r--r-- | sys/netinet6/icmp6.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 5ef4fff..8ac756a 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -475,6 +475,8 @@ icmp6_input(mp, offp, proto) if (code != 0) goto badcode; + /* validation is made in icmp6_mtudisc_update */ + code = PRC_MSGSIZE; /* @@ -1140,7 +1142,7 @@ icmp6_mtudisc_update(ip6cp, validated) htons(m->m_pkthdr.rcvif->if_index); } - if (mtu >= IPV6_MMTU) { + if (mtu < tcp_maxmtu6(&inc)) { tcp_hc_updatemtu(&inc, mtu); icmp6stat.icp6s_pmtuchg++; } |