summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2017-01-24 04:45:36 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2017-01-24 04:45:36 +0000
commit7f0740cb42c5418bee51bbfe02b0523c99a9aea4 (patch)
treeeab59985ba6de546da5084b33416f3452ff8f26a /sys/net
parent38412a6d74198dd2d9af8a80c45ab4c057847286 (diff)
when we lose link, do not delete entries that have the RTF_BFD flag set
OK mpi@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 3448bc360ba..1d209e311ae 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.347 2017/01/20 08:10:54 dlg Exp $ */
+/* $OpenBSD: route.c,v 1.348 2017/01/24 04:45:35 phessler Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -1760,7 +1760,7 @@ rt_if_linkstate_change(struct rtentry *rt, void *arg, u_int id)
* new routes from a better source.
*/
if (ISSET(rt->rt_flags, RTF_CLONED|RTF_DYNAMIC) &&
- !ISSET(rt->rt_flags, RTF_CACHED)) {
+ !ISSET(rt->rt_flags, RTF_CACHED|RTF_BFD)) {
int error;
if ((error = rtdeletemsg(rt, ifp, id)))