diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-06-07 15:39:10 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-06-07 16:48:36 +0200 |
commit | feb172384663a38b35d170a86dcfd147bd21efe6 (patch) | |
tree | 6e99af8779634dcb333961410c4af45e569630c1 /bgpd/bgp_nexthop.c | |
parent | Merge pull request #8778 from idryzhov/fix-zebra-vrf (diff) | |
download | frr-feb172384663a38b35d170a86dcfd147bd21efe6.tar.xz frr-feb172384663a38b35d170a86dcfd147bd21efe6.zip |
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_nexthop.c')
-rw-r--r-- | bgpd/bgp_nexthop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index 46942a0be..c417dda39 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c @@ -414,7 +414,7 @@ void bgp_connected_add(struct bgp *bgp, struct connected *ifc) for (ALL_LIST_ELEMENTS(bgp->peer, node, nnode, peer)) { if (peer->conf_if && (strcmp(peer->conf_if, ifc->ifp->name) == 0) - && peer->status != Established + && !peer_established(peer) && !CHECK_FLAG(peer->flags, PEER_FLAG_IFPEER_V6ONLY)) { if (peer_active(peer)) |