diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-04-09 09:43:11 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-04-09 13:37:54 +0200 |
commit | e9e1890ba5a4dfd11df158ec5b065cacbbe3d508 (patch) | |
tree | 643d596ec1c09c7bf6f1d9efa6523a8df58f15ee /bgpd/bgp_attr.c | |
parent | Merge pull request #8430 from ton31337/fix/revert_0b6d35324ef3fd2b4d599710379... (diff) | |
download | frr-e9e1890ba5a4dfd11df158ec5b065cacbbe3d508.tar.xz frr-e9e1890ba5a4dfd11df158ec5b065cacbbe3d508.zip |
bgpd: Use bool type to check if use32bit ASN
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index f658b0d0f..71e4b56a0 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -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; |