summaryrefslogtreecommitdiffstats
path: root/bfdd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-03-09 23:17:47 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2021-03-16 15:25:06 +0100
commit5aeb216ea53f330a3ac72e3982dcff9500bc1fb3 (patch)
tree8d350202086cd22689f1bba3702e2716b867d3be /bfdd
parentMerge pull request #8260 from volta-networks/fix_isis_snmp_test (diff)
downloadfrr-5aeb216ea53f330a3ac72e3982dcff9500bc1fb3.tar.xz
frr-5aeb216ea53f330a3ac72e3982dcff9500bc1fb3.zip
bfdd: fix starting echo receive timer
Currently this timer is only started when we receive the first echo packet. If we never receive the packet, the timer is never started and the user falsely assumes that echo function is working. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bfdd')
-rw-r--r--bfdd/bfd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfdd/bfd.c b/bfdd/bfd.c
index 3cbb3691e..9dfffbf36 100644
--- a/bfdd/bfd.c
+++ b/bfdd/bfd.c
@@ -494,8 +494,10 @@ void ptm_bfd_echo_stop(struct bfd_session *bfd)
void ptm_bfd_echo_start(struct bfd_session *bfd)
{
bfd->echo_detect_TO = (bfd->remote_detect_mult * bfd->echo_xmt_TO);
- if (bfd->echo_detect_TO > 0)
+ if (bfd->echo_detect_TO > 0) {
+ bfd_echo_recvtimer_update(bfd);
ptm_bfd_echo_xmt_TO(bfd);
+ }
}
void ptm_bfd_sess_up(struct bfd_session *bfd)