diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-01 17:59:24 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-01 18:08:29 +0300 |
| commit | 7bb5c50c83a3bc8e870398f087f9347aed99b04c (patch) | |
| tree | 910ef45b953dc59b5416354662fc11b9c225950b /lib/bfd.c | |
| parent | b6c87c35768477e5b2442e12956dafc9d9b112e8 (diff) | |
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 <iryzhov@nfware.com>
Diffstat (limited to 'lib/bfd.c')
| -rw-r--r-- | lib/bfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
