summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-08-10 13:05:59 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-08-10 13:05:59 +0000
commit7831f4969a77a47b01269d27b67f788a902fadfe (patch)
tree809c47877382e7e5eceff132bc79c0eb19defb1a /sys/netinet6
parent5fd1667022641dc3334e87caa575671f80cb7cea (diff)
Do not invalidate ND for local routes, make it consistent like ARP.
OK mpi@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 3568f81856c..c93413369e4 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.c,v 1.217 2017/08/09 14:36:00 florian Exp $ */
+/* $OpenBSD: nd6.c,v 1.218 2017/08/10 13:05:58 bluhm Exp $ */
/* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */
/*
@@ -978,7 +978,8 @@ nd6_rtrequest(struct ifnet *ifp, int req, struct rtentry *rt)
break;
case RTM_INVALIDATE:
- nd6_invalidate(rt);
+ if (!ISSET(rt->rt_flags, RTF_LOCAL))
+ nd6_invalidate(rt);
break;
}
}