From ff91bf7fb22750a91a5b5b33ffa481482f359af6 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Thu, 31 Jan 2019 18:21:18 -0200 Subject: [PATCH] bfdd: don't try to start echo on protocol restart `echo-mode` should and will automatically start after session goes up and it is allowed by the remote peer. See `bs_echo_timer_handler` for more information. This avoids having echo controling code spread. Signed-off-by: Rafael Zalamena --- bfdd/bfd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bfdd/bfd.c b/bfdd/bfd.c index 40663b7f2..53d8601e9 100644 --- a/bfdd/bfd.c +++ b/bfdd/bfd.c @@ -495,10 +495,6 @@ skip_echo: /* Enable all timers. */ bfd_recvtimer_update(bs); bfd_xmttimer_update(bs, bs->xmt_TO); - if (BFD_CHECK_FLAG(bs->flags, BFD_SESS_FLAG_ECHO)) { - bfd_echo_recvtimer_update(bs); - bfd_echo_xmttimer_update(bs, bs->echo_xmt_TO); - } } } -- 2.39.2