diff options
author | 2015-10-28 12:14:25 +0000 | |
---|---|---|
committer | 2015-10-28 12:14:25 +0000 | |
commit | a923c8476c6771493ee2bc4f277a429c9ae3eaff (patch) | |
tree | 0ce39e85d1a8d040b51bfbaf124adc5a92525b3a /sys/netinet6/icmp6.c | |
parent | sync (diff) | |
download | wireguard-openbsd-a923c8476c6771493ee2bc4f277a429c9ae3eaff.tar.xz wireguard-openbsd-a923c8476c6771493ee2bc4f277a429c9ae3eaff.zip |
Remove linkmtu and maxmtu from struct nd_ifinfo. IN6_LINKMTU can now
die and ifp->if_mtu is the one true mtu.
Suggested by and OK mpi@
Diffstat (limited to 'sys/netinet6/icmp6.c')
-rw-r--r-- | sys/netinet6/icmp6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 4f7034cbb84..d87678240fa 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: icmp6.c,v 1.174 2015/10/22 15:37:47 bluhm Exp $ */ +/* $OpenBSD: icmp6.c,v 1.175 2015/10/28 12:14:25 florian Exp $ */ /* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */ /* @@ -1022,7 +1022,7 @@ icmp6_mtudisc_update(struct ip6ctlparam *ip6cp, int validated) if (rt && (rt->rt_flags & RTF_HOST) && !(rt->rt_rmx.rmx_locks & RTV_MTU) && (rt->rt_rmx.rmx_mtu > mtu || rt->rt_rmx.rmx_mtu == 0)) { - if (mtu < IN6_LINKMTU(rt->rt_ifp)) { + if (mtu < rt->rt_ifp->if_mtu) { icmp6stat.icp6s_pmtuchg++; rt->rt_rmx.rmx_mtu = mtu; } |