forked from Mirror/frr
bfdd: Set bfd.LocalDiag when transitioning to AdminDown
RFC 5880 6.8.16, need to set LocalDiag when transitioning to AdminDown state. Signed-off-by: zmw12306 <zmw12306@gmail.com>
This commit is contained in:
parent
44c4743e08
commit
b70f973834
|
@ -1564,6 +1564,7 @@ void bfd_set_shutdown(struct bfd_session *bs, bool shutdown)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SET_FLAG(bs->flags, BFD_SESS_FLAG_SHUTDOWN);
|
SET_FLAG(bs->flags, BFD_SESS_FLAG_SHUTDOWN);
|
||||||
|
bs->local_diag = BD_ADMIN_DOWN;
|
||||||
|
|
||||||
/* Handle data plane shutdown case. */
|
/* Handle data plane shutdown case. */
|
||||||
if (bs->bdc) {
|
if (bs->bdc) {
|
||||||
|
|
Loading…
Reference in a new issue