From: Donatas Abraitis Date: Thu, 27 Jun 2024 19:46:58 +0000 (+0300) Subject: bgpd: Ignore RFC8212 for BGP Confederations X-Git-Tag: docker/8.5.6~5^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cdf7dcf00949f5088983b7faefe9c5e6e6edc1ec;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 56cdae0fa2..6df6abce69 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5837,7 +5837,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 && @@ -5850,7 +5850,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