mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-09 19:56:16 +00:00
Merge pull request #8432 from ton31337/fix/use_bool_for_use32bit_asn
bgpd: Use bool type to check if use32bit ASN
This commit is contained in:
commit
f99b9d6eb1
@ -3734,7 +3734,7 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer,
|
||||
struct aspath *aspath;
|
||||
int send_as4_path = 0;
|
||||
int send_as4_aggregator = 0;
|
||||
int use32bit = (CHECK_FLAG(peer->cap, PEER_CAP_AS4_RCV)) ? 1 : 0;
|
||||
bool use32bit = CHECK_FLAG(peer->cap, PEER_CAP_AS4_RCV);
|
||||
|
||||
if (!bgp)
|
||||
bgp = peer->bgp;
|
||||
|
Loading…
Reference in New Issue
Block a user