From e8dd6f5a53004089bc93d9d41fd25f679cee8e17 Mon Sep 17 00:00:00 2001 From: Peter Hessler Date: Fri, 20 Jan 2017 10:18:53 +0000 Subject: if a route is not valid, set down instead of admindown --- sys/net/bfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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 @@ -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: -- cgit v1.2.3