From: Donatas Abraitis Date: Tue, 23 Jan 2024 13:17:23 +0000 (+0200) Subject: bgpd: Do not send dynamic capability if both peers do not have it exchanged X-Git-Tag: base_10.1~300^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=13c5d0e708013b88341cd5246b1e7f0293e002c4;p=matthieu%2Ffrr.git bgpd: Do not send dynamic capability if both peers do not have it exchanged Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 9d484d901a..203201d2c1 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -1224,7 +1224,7 @@ void bgp_capability_send(struct peer *peer, afi_t afi, safi_t safi, if (!peer_established(peer->connection)) return; - if (!CHECK_FLAG(peer->cap, PEER_CAP_DYNAMIC_RCV) && + if (!CHECK_FLAG(peer->cap, PEER_CAP_DYNAMIC_RCV) || !CHECK_FLAG(peer->cap, PEER_CAP_DYNAMIC_ADV)) return;