diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-08-29 22:13:46 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-09-03 15:41:33 +0200 |
commit | 40675ea908eec9f3735219a44617371519f41d67 (patch) | |
tree | 5c22c59ee152e16f44572268469bad125ac771fb /bfdd/bfd.c | |
parent | bfdd: make bfd_recv_* more generic (diff) | |
download | frr-40675ea908eec9f3735219a44617371519f41d67.tar.xz frr-40675ea908eec9f3735219a44617371519f41d67.zip |
bfdd: enumerate all diagnositic codes
Enumerate all codes, update the string representation and fix the
misdiagnosed echo failure.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfd.c')
-rw-r--r-- | bfdd/bfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfdd/bfd.c b/bfdd/bfd.c index 8919eeaa9..cf7c027db 100644 --- a/bfdd/bfd.c +++ b/bfdd/bfd.c @@ -337,7 +337,7 @@ int bfd_recvtimer_cb(struct thread *t) switch (bs->ses_state) { case PTM_BFD_INIT: case PTM_BFD_UP: - ptm_bfd_ses_dn(bs, BFD_DIAGDETECTTIME); + ptm_bfd_ses_dn(bs, BD_CONTROL_EXPIRED); bfd_recvtimer_update(bs); break; @@ -360,7 +360,7 @@ int bfd_echo_recvtimer_cb(struct thread *t) switch (bs->ses_state) { case PTM_BFD_INIT: case PTM_BFD_UP: - ptm_bfd_ses_dn(bs, BFD_DIAGDETECTTIME); + ptm_bfd_ses_dn(bs, BD_ECHO_FAILED); break; } |