mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
bgpd: Do not send dynamic capability if both peers do not have it exchanged
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
e74c3b0746
commit
13c5d0e708
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user