mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
if a route is not valid, set down instead of admindown
This commit is contained in:
parent
dc73ec4f33
commit
19b4f733e9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user