From: Igor Ryzhov Date: Wed, 31 Mar 2021 12:54:34 +0000 (+0300) Subject: ospfd: fix building with --disable-bfdd X-Git-Tag: base_8.0~194^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F8377%2Fhead;p=mirror%2Ffrr.git ospfd: fix building with --disable-bfdd Signed-off-by: Igor Ryzhov --- 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);