in icmp6_mtudisc_update(), use ND link mtu to detect if the path MTU

should be updated.

Helped by:	andre
This commit is contained in:
Hajimu UMEMOTO 2004-02-24 15:40:55 +00:00
parent 12e2e97051
commit aaff9927f6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126194

View file

@ -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++;
}