summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-29 07:21:09 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-29 07:21:09 +0000
commit9b8b75740ddd55c4596231164f62c047299cb30c (patch)
tree0871be3203e9183f682d89b29e99d5f43f4a62b2 /sys
parent30193b467e51e9c49c00cb5115afaea31edd23dd (diff)
set rmx_mtu to 0 on PMTUD route entry timeout.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/icmp6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index df4bf9f2574..61ba05bb550 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.55 2002/05/24 09:15:29 itojun Exp $ */
+/* $OpenBSD: icmp6.c,v 1.56 2002/05/29 07:21:08 itojun Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -2912,8 +2912,8 @@ icmp6_mtudisc_timeout(rt, r)
rtrequest((int) RTM_DELETE, (struct sockaddr *)rt_key(rt),
rt->rt_gateway, rt_mask(rt), rt->rt_flags, 0);
} else {
- if ((rt->rt_rmx.rmx_locks & RTV_MTU) == 0)
- rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu;
+ if (!(rt->rt_rmx.rmx_locks & RTV_MTU))
+ rt->rt_rmx.rmx_mtu = 0;
}
}