diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-06 15:37:20 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-06 16:11:38 +0100 |
commit | 892fedb611bd1d0ee5c4674069baa8666f7d0255 (patch) | |
tree | 57ab49d2884dab757f2cc1d88d332ca2be3ecbfc /bgpd/bgp_bfd.c | |
parent | tools: Add coccinelle script to replace all bgp_flag_* functions (diff) | |
download | frr-892fedb611bd1d0ee5c4674069baa8666f7d0255.tar.xz frr-892fedb611bd1d0ee5c4674069baa8666f7d0255.zip |
bgpd: Replace bgp_flag_* to [UN]SET/CHECK_FLAG macros
Most of the code uses macros, thus let's keep the code unified.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_bfd.c')
-rw-r--r-- | bgpd/bgp_bfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c index 0ed6057ea..80ef43f0d 100644 --- a/bgpd/bgp_bfd.c +++ b/bgpd/bgp_bfd.c @@ -116,10 +116,10 @@ static void bgp_bfd_peer_sendmsg(struct peer *peer, int command) * and bfd controlplane check not configured is not kept * keep bfd independent controlplane bit set to 1 */ - if (!bgp_flag_check(peer->bgp, BGP_FLAG_GRACEFUL_RESTART) - && !bgp_flag_check(peer->bgp, BGP_FLAG_GR_PRESERVE_FWD) + if (!CHECK_FLAG(peer->bgp->flags, BGP_FLAG_GRACEFUL_RESTART) + && !CHECK_FLAG(peer->bgp->flags, BGP_FLAG_GR_PRESERVE_FWD) && !CHECK_FLAG(bfd_info->flags, BFD_FLAG_BFD_CHECK_CONTROLPLANE)) - SET_FLAG(bfd_info->flags, BFD_FLAG_BFD_CBIT_ON); + SET_FLAG(bfd_info->flags, BFD_FLAG_BFD_CBIT_ON); cbit = CHECK_FLAG(bfd_info->flags, BFD_FLAG_BFD_CBIT_ON); |