diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2004-02-01 19:57:13 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2004-02-01 19:57:13 +0000 |
commit | 56e6e496c6c994c2c8cfaee00ec285e177e03650 (patch) | |
tree | afca59cef6c5dd863610ba51d08265ad0ecc9a50 /sys/netinet6/icmp6.c | |
parent | c60e0aae4f35e75079669e05dc15602abd0f0e51 (diff) |
ignore too small MTUs (below 296 octets), similar to IPv4.
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 47c00f6411a..e5ad2728eab 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: icmp6.c,v 1.77 2004/01/15 17:51:42 miod Exp $ */ +/* $OpenBSD: icmp6.c,v 1.78 2004/02/01 19:57:12 dhartmei Exp $ */ /* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */ /* @@ -1139,7 +1139,7 @@ icmp6_mtudisc_update(ip6cp, 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 >= 296 && mtu < IN6_LINKMTU(rt->rt_ifp)) { icmp6stat.icp6s_pmtuchg++; rt->rt_rmx.rmx_mtu = mtu; } |