mirror_frr/bfdd
Igor Ryzhov a0f9b0c7c8 bfdd: remove unnecessary receive timer restart
When the detection time expires, we put the session down and restart the
timer. As the comment in the code says, it's needed to zero the remote
discriminator after the second expiration.

But the RFC clearly says that this must be done on the first expiration:

   bfd.RemoteDiscr

      The remote discriminator for this BFD session.  This is the
      discriminator chosen by the remote system, and is totally opaque
      to the local system.  This MUST be initialized to zero.  If a
      period of a Detection Time passes without the receipt of a valid,
      authenticated BFD packet from the remote system, this variable
      MUST be set to zero.

And we actually already do it in `ptm_bfd_sess_dn`, so there's no need
to reset the timer and wait for it twice.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-12-06 19:48:25 +03:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
bfd_packet.c *: cleanup ifp->vrf_id 2021-11-22 20:47:23 +03:00
bfd.c bfdd: remove unnecessary receive timer restart 2021-12-06 19:48:25 +03:00
bfd.h bfdd: cleanup vrf handling in packet receive 2021-10-14 18:55:33 +03:00
bfdctl.h bfdd: separate echo rx/tx timers 2021-03-16 22:14:57 +03:00
bfdd_cli.c lib: northbound cli show/cmd functions must not modify data nodes 2021-10-13 20:12:35 +03:00
bfdd_nb_config.c bfdd: forbid setting interface for multihop sessions 2021-06-01 18:08:29 +03:00
bfdd_nb_state.c bfdd: forbid setting interface for multihop sessions 2021-06-01 18:08:29 +03:00
bfdd_nb.c bfdd: separate echo rx/tx timers 2021-03-16 22:14:57 +03:00
bfdd_nb.h lib: northbound cli show/cmd functions must not modify data nodes 2021-10-13 20:12:35 +03:00
bfdd_vty.c bfdd: Convert vty_out to vty_json for JSON 2021-11-25 17:51:02 +02:00
bfdd.c *: Convert quagga_signal_X to frr_signal_X 2021-11-11 14:41:27 -05:00
bfddp_packet.h bfdd: separate echo rx/tx timers 2021-03-16 22:14:57 +03:00
config.c Merge pull request #8121 from opensourcerouting/macro-cleanup 2021-03-22 11:00:34 +02:00
control.c bfdd: Do not explicitly set the thread pointer to NULL 2021-10-04 19:24:28 +03:00
dplane.c *: frr-format with unmodified GCC 2021-09-28 11:20:32 +02:00
event.c bfdd: remove time calculation debugs 2020-04-14 09:35:08 -03:00
Makefile bfdd: Add some code so we can compile from w/ in the bfdd dir 2019-02-13 23:23:48 -05:00
ptm_adapter.c *: cleanup ifp->vrf_id 2021-11-22 20:47:23 +03:00
subdir.am *: remove *.conf.sample files 2021-04-09 13:14:30 -04:00