]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Convert peer_af_flag_check() to bool
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 23 Feb 2023 20:54:12 +0000 (22:54 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 23 Feb 2023 20:54:12 +0000 (22:54 +0200)
commit2c722516c3b8cf3fe63853ed8cae2d518ec62f59
tree5397b50193caf5874bb01f61c8d543526a7cb507
parent4b0d6b4244aff02be34c5b416b25b7259bf66350
bgpd: Convert peer_af_flag_check() to bool

Since we increased peer->af_flags from uint32_t to uint64_t,
peer_af_flag_check() was historically returning integer, and not bool
as should be.

The bug was that if we have af_flags higher than uint32_t it will never
returned a right value.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_vty.c
bgpd/bgpd.c
bgpd/bgpd.h