summaryrefslogtreecommitdiff
path: root/bgpd/bgp_bfd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-06-07 09:39:10 -0400
committerDonald Sharp <sharpd@nvidia.com>2021-06-07 10:48:36 -0400
commitfeb172384663a38b35d170a86dcfd147bd21efe6 (patch)
tree6e99af8779634dcb333961410c4af45e569630c1 /bgpd/bgp_bfd.c
parent455d14ae317c461febc02d3731bf8691c2f2ee5f (diff)
bgpd: Convert to using peer_established(peer) function
We are inconsistently using peer_establiahed(peer) with sometimes using `peer->status == Established`. Just Convert over to using the function for consistency. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_bfd.c')
-rw-r--r--bgpd/bgp_bfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c
index 6004070e68..f6f2f5f6e4 100644
--- a/bgpd/bgp_bfd.c
+++ b/bgpd/bgp_bfd.c
@@ -72,7 +72,7 @@ static void bfd_session_status_update(struct bfd_session_params *bsp,
}
if (bss->state == BSS_UP && bss->previous_state != BSS_UP
- && peer->status != Established) {
+ && !peer_established(peer)) {
if (!BGP_PEER_START_SUPPRESSED(peer)) {
bgp_fsm_nht_update(peer, true);
BGP_EVENT_ADD(peer, BGP_Start);