summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2017-01-24 04:45:35 +0000
committerphessler <phessler@openbsd.org>2017-01-24 04:45:35 +0000
commit1d6e00cc354d6dbefb3385ab02c496f75c4e6b64 (patch)
treea7ae295b02bf168c4522e42f8089888e23ac58c8 /sys
parentsync log.c from relayd et al to ospfd. (diff)
downloadwireguard-openbsd-1d6e00cc354d6dbefb3385ab02c496f75c4e6b64.tar.xz
wireguard-openbsd-1d6e00cc354d6dbefb3385ab02c496f75c4e6b64.zip
when we lose link, do not delete entries that have the RTF_BFD flag set
OK mpi@
Diffstat (limited to 'sys')
-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)))