summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_attr.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-10-15 21:33:09 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-10-18 10:22:30 +0200
commit23d0a75356214bd6ca8a6e19f0a6748b38629309 (patch)
treee99e49caabf7bfb54fd6ac366400f8b5a2ad98b6 /bgpd/bgp_attr.c
parentMerge pull request #7267 from donaldsharp/plist_relaxer (diff)
downloadfrr-23d0a75356214bd6ca8a6e19f0a6748b38629309.tar.xz
frr-23d0a75356214bd6ca8a6e19f0a6748b38629309.zip
bgpd: Convert inet_ntoa to %pI4/inet_ntop
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_attr.c')
-rw-r--r--bgpd/bgp_attr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 0821a724a..429a68d19 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -763,8 +763,7 @@ static void attr_show_all_iterator(struct hash_bucket *bucket, struct vty *vty)
struct attr *attr = bucket->data;
char sid_str[BUFSIZ];
- vty_out(vty, "attr[%ld] nexthop %s\n", attr->refcnt,
- inet_ntoa(attr->nexthop));
+ vty_out(vty, "attr[%ld] nexthop %pI4\n", attr->refcnt, &attr->nexthop);
sid_str[0] = '\0';
if (attr->srv6_l3vpn)