]> git.puffer.fish Git - matthieu/frr.git/commit
lib: remove confusing bfd TTL API
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 4 Nov 2021 12:11:18 +0000 (15:11 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 11 Nov 2021 11:56:04 +0000 (14:56 +0300)
commit92f85e656b0814181eb8a473e642b8989086339d
treec109b33ff5bac16de33d9675ddac90d05d5f591e
parent0ac8055ca1a9662d6e8197dff9a91759331991e7
lib: remove confusing bfd TTL API

There are two APIs to control the expected number of hops for a BFD
session – `bfd_sess_set_mininum_ttl` and `bfd_sess_set_hop_count`.
The former is very confusing, as it takes an expected TTL in the
BFD packet which is actually a protocol internal value. The latter is
simple and straightforward – it takes an expected number of hops, which
is always 1 for single-hop and >1 for multi-hop.

As the former API is not used anywhere, just remove it to avoid any
confusion.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/bfd.c
lib/bfd.h