From 69b34634ec225a5a09f4a06ac21ee4f89286773b Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 31 Mar 2021 15:54:34 +0300 Subject: [PATCH] ospfd: fix building with --disable-bfdd Signed-off-by: Igor Ryzhov --- ospfd/ospf_bfd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ospfd/ospf_bfd.c b/ospfd/ospf_bfd.c index b202cd01f1..2ab7db68bd 100644 --- a/ospfd/ospf_bfd.c +++ b/ospfd/ospf_bfd.c @@ -166,7 +166,9 @@ void ospf_bfd_write_config(struct vty *vty, const struct ospf_if_params *params __attribute__((unused))) { #if HAVE_BFDD == 0 - if (CHECK_FLAG(bfd_info->flags, BFD_FLAG_PARAM_CFG)) + if (params->bfd_config->detection_multiplier != BFD_DEF_DETECT_MULT + || params->bfd_config->min_rx != BFD_DEF_MIN_RX + || params->bfd_config->min_tx != BFD_DEF_MIN_TX) vty_out(vty, " ip ospf bfd %d %d %d\n", params->bfd_config->detection_multiplier, params->bfd_config->min_rx, params->bfd_config->min_tx); -- 2.39.5