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:
zmw12306 2025-04-06 16:13:32 -04:00
parent 44c4743e08
commit b70f973834

View file

@ -1564,6 +1564,7 @@ void bfd_set_shutdown(struct bfd_session *bs, bool shutdown)
return;
SET_FLAG(bs->flags, BFD_SESS_FLAG_SHUTDOWN);
bs->local_diag = BD_ADMIN_DOWN;
/* Handle data plane shutdown case. */
if (bs->bdc) {