summaryrefslogtreecommitdiff
path: root/bfdd/bfd.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@users.noreply.github.com>2021-03-17 10:45:43 +0000
committerGitHub <noreply@github.com>2021-03-17 10:45:43 +0000
commit692b3561df04290418f47cb6805f79eee32a9067 (patch)
tree18710b1b44d0f849204fe81cfa9436dd654a43b1 /bfdd/bfd.c
parent57e627628dbb38cf82e1f2e1a0288299fbee06b8 (diff)
parentf1825d571e2cf48922fe86d5158018a13bd75d4c (diff)
Merge pull request #8225 from idryzhov/bfd-echo-mode
bfdd: fix echo receive timer and disable echo mode
Diffstat (limited to 'bfdd/bfd.c')
-rw-r--r--bfdd/bfd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfdd/bfd.c b/bfdd/bfd.c
index aa30ca8ad3..9e5bc20a49 100644
--- a/bfdd/bfd.c
+++ b/bfdd/bfd.c
@@ -501,8 +501,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)