summaryrefslogtreecommitdiffstats
path: root/bfdd/bfd.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2018-08-29 22:13:46 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2018-09-03 15:41:33 +0200
commit40675ea908eec9f3735219a44617371519f41d67 (patch)
tree5c22c59ee152e16f44572268469bad125ac771fb /bfdd/bfd.c
parentbfdd: make bfd_recv_* more generic (diff)
downloadfrr-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.c4
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;
}