summaryrefslogtreecommitdiff
path: root/bgpd/bgp_updgrp.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-06-20 11:46:15 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-06-20 20:21:26 +0300
commit0ebabd4107bae8e37a7331b3a095839bec378cee (patch)
tree0268832bc309929878f9cea389968f97976c264b /bgpd/bgp_updgrp.c
parent2af482767c9197646e21dbb605ab12e690b8a266 (diff)
bgpd: Increase peer->flags to uint64_t
We will hit the limit soon, let's increase this in advance. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_updgrp.c')
-rw-r--r--bgpd/bgp_updgrp.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c
index c5d049f363..443c5d8a13 100644
--- a/bgpd/bgp_updgrp.c
+++ b/bgpd/bgp_updgrp.c
@@ -414,8 +414,10 @@ static unsigned int updgrp_hash_key_make(const void *p)
if (bgp_debug_neighbor_events(peer)) {
zlog_debug(
- "%pBP Update Group Hash: sort: %d UpdGrpFlags: %u UpdGrpAFFlags: %u",
- peer, peer->sort, peer->flags & PEER_UPDGRP_FLAGS,
+ "%pBP Update Group Hash: sort: %d UpdGrpFlags: %" PRIu64
+ " UpdGrpAFFlags: %u",
+ peer, peer->sort,
+ (uint64_t)(peer->flags & PEER_UPDGRP_FLAGS),
flags & PEER_UPDGRP_AF_FLAGS);
zlog_debug(
"%pBP Update Group Hash: addpath: %u UpdGrpCapFlag: %u UpdGrpCapAFFlag: %u route_adv: %u change local as: %u",
@@ -455,8 +457,10 @@ static unsigned int updgrp_hash_key_make(const void *p)
peer->shared_network &&
peer_afi_active_nego(peer, AFI_IP6));
zlog_debug(
- "%pBP Update Group Hash: Lonesoul: %u ORF prefix: %u ORF old: %u max prefix out: %u",
- peer, CHECK_FLAG(peer->flags, PEER_FLAG_LONESOUL),
+ "%pBP Update Group Hash: Lonesoul: %" PRIu64
+ " ORF prefix: %u ORF old: %u max prefix out: %u",
+ peer,
+ (uint64_t)CHECK_FLAG(peer->flags, PEER_FLAG_LONESOUL),
CHECK_FLAG(peer->af_cap[afi][safi],
PEER_CAP_ORF_PREFIX_SM_RCV),
CHECK_FLAG(peer->af_cap[afi][safi],