From: Donatas Abraitis Date: Thu, 27 Jun 2024 19:46:58 +0000 (+0300) Subject: bgpd: Ignore RFC8212 for BGP Confederations X-Git-Tag: docker/9.0.4~14^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=18574ffed4f8f1ec013f1cb87aaaceb89f137211;p=matthieu%2Ffrr.git bgpd: Ignore RFC8212 for BGP Confederations RFC 8212 should be restricted for eBGP peers. Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 3c4367cdac..39009146f7 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5878,7 +5878,7 @@ void bgp_set_stale_route(struct peer *peer, afi_t afi, safi_t safi) bool bgp_outbound_policy_exists(struct peer *peer, struct bgp_filter *filter) { - if (peer->sort == BGP_PEER_IBGP) + if (peer->sort == BGP_PEER_CONFED || peer->sort == BGP_PEER_IBGP) return true; if (peer->sort == BGP_PEER_EBGP && @@ -5891,7 +5891,7 @@ bool bgp_outbound_policy_exists(struct peer *peer, struct bgp_filter *filter) bool bgp_inbound_policy_exists(struct peer *peer, struct bgp_filter *filter) { - if (peer->sort == BGP_PEER_IBGP) + if (peer->sort == BGP_PEER_CONFED || peer->sort == BGP_PEER_IBGP) return true; if (peer->sort == BGP_PEER_EBGP