From 15a1754e74639dbc4736efe7843610776533759a Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Tue, 1 Jun 2021 17:59:24 +0300 Subject: [PATCH] lib: fix default ttl for single-hop bfd sessions The TTL field is actually the number of hops, not a TTL. Signed-off-by: Igor Ryzhov --- lib/bfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bfd.c b/lib/bfd.c index 4327f7c28d..1a45ea1ff5 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -393,7 +393,7 @@ struct bfd_session_params *bfd_sess_new(bsp_status_update updatecb, void *arg) /* Set defaults. */ bsp->args.detection_multiplier = BFD_DEF_DETECT_MULT; - bsp->args.ttl = BFD_SINGLE_HOP_TTL; + bsp->args.ttl = 1; bsp->args.min_rx = BFD_DEF_MIN_RX; bsp->args.min_tx = BFD_DEF_MIN_TX; bsp->args.vrf_id = VRF_DEFAULT; -- 2.39.5