diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-10-30 21:00:46 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-10-31 15:35:01 +0100 |
commit | 5592aecefd624637756ba7c6eec41dc65035283e (patch) | |
tree | aef3846f05c17a8f37fe6030f85a811616ec2561 /bgpd/bgp_route.c | |
parent | bgpd: Refactor bgp_update some for nexthop reachability (diff) | |
download | frr-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.c | 6 |
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, |