summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2017-01-20 10:18:53 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2017-01-20 10:18:53 +0000
commite8dd6f5a53004089bc93d9d41fd25f679cee8e17 (patch)
treed8f7d04ab94d5e6daa7c65e69d9a83d0a4a6c31d /sys
parente0efb9ebf89c0c6c6496dc7849a01f0ee941b706 (diff)
if a route is not valid, set down instead of admindown
Diffstat (limited to 'sys')
-rw-r--r--sys/net/bfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bfd.c b/sys/net/bfd.c
index d8059541932..9d0c67098ed 100644
--- a/sys/net/bfd.c
+++ b/sys/net/bfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bfd.c,v 1.51 2017/01/20 09:18:52 phessler Exp $ */
+/* $OpenBSD: bfd.c,v 1.52 2017/01/20 10:18:52 phessler Exp $ */
/*
* Copyright (c) 2016 Peter Hessler <phessler@openbsd.org>
@@ -860,7 +860,7 @@ bfd_set_state(struct bfd_config *bfd, int state)
bfd->bc_neighbor->bn_ldiag = 0;
if (!rtisvalid(rt))
- bfd->bc_neighbor->bn_lstate = BFD_STATE_ADMINDOWN;
+ bfd->bc_neighbor->bn_lstate = BFD_STATE_DOWN;
switch (state) {
case BFD_STATE_ADMINDOWN: