summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-10-14 17:07:57 +0200
committerDonald Sharp <sharpd@nvidia.com>2020-10-17 14:52:35 +0200
commit8228a9a7a5f915835bc00ef829be761269ec1826 (patch)
treec10f8e806ad59622efd78023268da7a3d2a51b03 /bgpd/bgp_zebra.c
parentbgpd: add `%pBD` for printing `struct bgp_dest *` (diff)
downloadfrr-8228a9a7a5f915835bc00ef829be761269ec1826.tar.xz
frr-8228a9a7a5f915835bc00ef829be761269ec1826.zip
bgpd: Convert to %pFX or %pBD where possible
Search and destroy places where we used prefix2str that could be replaced with %pFX or %pBD in bgpd. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_zebra.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index a32e47f44..1ee8a1a50 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -944,10 +944,8 @@ static bool bgp_table_map_apply(struct route_map *map, const struct prefix *p,
if (p->family == AF_INET) {
char buf[2][INET_ADDRSTRLEN];
zlog_debug(
- "Zebra rmap deny: IPv4 route %s/%d nexthop %s",
- inet_ntop(AF_INET, &p->u.prefix4, buf[0],
- sizeof(buf[0])),
- p->prefixlen,
+ "Zebra rmap deny: IPv4 route %pFX nexthop %s",
+ p,
inet_ntop(AF_INET, &path->attr->nexthop, buf[1],
sizeof(buf[1])));
}
@@ -958,12 +956,10 @@ static bool bgp_table_map_apply(struct route_map *map, const struct prefix *p,
nexthop = bgp_path_info_to_ipv6_nexthop(path, &ifindex);
zlog_debug(
- "Zebra rmap deny: IPv6 route %s/%d nexthop %s",
- inet_ntop(AF_INET6, &p->u.prefix6, buf[0],
- sizeof(buf[0])),
- p->prefixlen,
- inet_ntop(AF_INET6, nexthop,
- buf[1], sizeof(buf[1])));
+ "Zebra rmap deny: IPv6 route %pFX nexthop %s",
+ p,
+ inet_ntop(AF_INET6, nexthop, buf[1],
+ sizeof(buf[1])));
}
}
return false;