]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bfdd: don't try to start echo on protocol restart
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 31 Jan 2019 20:21:18 +0000 (18:21 -0200)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 14 Feb 2019 16:17:29 +0000 (14:17 -0200)
`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 <rzalamena@opensourcerouting.org>
bfdd/bfd.c

index 40663b7f2ae1b5ac60687259dd69ee28ce75e7e7..53d8601e9ce6c8a0994eff4a929a6575c1e9ad2c 100644 (file)
@@ -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);
-               }
        }
 }