summaryrefslogtreecommitdiff
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-01-15 13:48:32 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-01-15 13:48:32 +0000
commite2ac9ca115f15432a4670def54b676fb60a1839c (patch)
treeb4005aa2bf7f767e1e18d6e5c1b5ac2ea1434f42 /sys/netinet/if_ether.c
parent5797ec5cc12643e3b0d5cf43c9d5a67afa84af1e (diff)
There was an issue that dynamic path MTU discovery together with
ARP or ND timeout could delete local routes. Put an assert into arptfree() and nd6_free() so this cannot happen again. OK mpi@
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index f1de465e4d3..ef28b67808e 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ether.c,v 1.231 2017/08/11 21:24:19 mpi Exp $ */
+/* $OpenBSD: if_ether.c,v 1.232 2018/01/15 13:48:31 bluhm Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
@@ -694,6 +694,7 @@ arptfree(struct rtentry *rt)
{
struct ifnet *ifp;
+ KASSERT(!ISSET(rt->rt_flags, RTF_LOCAL));
arpinvalidate(rt);
ifp = if_get(rt->rt_ifidx);