diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-02-05 07:22:46 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-02-05 07:22:46 +0100 |
commit | 3e99dcc62667bdf5d72c9ba06af894b17679532d (patch) | |
tree | dab906510d534bc4471c85669322e94ba2fe9dc7 /bgpd/bgp_packet.c | |
parent | Merge pull request #15298 from donaldsharp/rcu_bites_the_bitey_thing (diff) | |
download | frr-3e99dcc62667bdf5d72c9ba06af894b17679532d.tar.xz frr-3e99dcc62667bdf5d72c9ba06af894b17679532d.zip |
bgpd: Send FQDN capability via dynamic capability if enabled
Since we have a knob to disable sending FQDN capability, it MUST be checked
before sending it using dynamic capabilities.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r-- | bgpd/bgp_packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index f94b64d0b..9d484d901 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -1534,7 +1534,8 @@ void bgp_capability_send(struct peer *peer, afi_t afi, safi_t safi, iana_safi2str(pkt_safi)); break; case CAPABILITY_CODE_FQDN: - if (hostname) { + if (CHECK_FLAG(peer->flags, PEER_FLAG_CAPABILITY_FQDN) && + hostname) { SET_FLAG(peer->cap, PEER_CAP_HOSTNAME_ADV); stream_putc(s, action); stream_putc(s, CAPABILITY_CODE_FQDN); |