summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-10-30 21:00:46 +0100
committerDonald Sharp <sharpd@nvidia.com>2024-10-31 15:35:01 +0100
commit5592aecefd624637756ba7c6eec41dc65035283e (patch)
treeaef3846f05c17a8f37fe6030f85a811616ec2561 /bgpd/bgp_route.c
parentbgpd: Refactor bgp_update some for nexthop reachability (diff)
downloadfrr-5592aecefd624637756ba7c6eec41dc65035283e.tar.xz
frr-5592aecefd624637756ba7c6eec41dc65035283e.zip
bgpd: Convert rcvd_attr_printed to a bool
No need for a integer to store this, use a bool Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index b5ef7bd07..f07a8730c 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -5063,7 +5063,7 @@ void bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id,
"%pBP rcvd UPDATE w/ attr: %s",
peer,
peer->rcvd_attr_str);
- peer->rcvd_attr_printed = 1;
+ peer->rcvd_attr_printed = true;
}
bgp_debug_rdpfxpath2str(
@@ -5346,7 +5346,7 @@ void bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id,
if (!peer->rcvd_attr_printed) {
zlog_debug("%pBP rcvd UPDATE w/ attr: %s", peer,
peer->rcvd_attr_str);
- peer->rcvd_attr_printed = 1;
+ peer->rcvd_attr_printed = true;
}
bgp_debug_rdpfxpath2str(afi, safi, prd, p, label, num_labels,
@@ -5450,7 +5450,7 @@ filtered:
if (!peer->rcvd_attr_printed) {
zlog_debug("%pBP rcvd UPDATE w/ attr: %s", peer,
peer->rcvd_attr_str);
- peer->rcvd_attr_printed = 1;
+ peer->rcvd_attr_printed = true;
}
bgp_debug_rdpfxpath2str(afi, safi, prd, p, label, num_labels,