summaryrefslogtreecommitdiffstats
path: root/ripngd/ripng_peer.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-03-31 14:28:30 +0200
committerMark Stapp <mjs@voltanet.io>2021-03-31 14:32:48 +0200
commit2e5b3f37b0b696e37645ce28f5fd69268b1b1daa (patch)
tree267e0e77916a990b6d9c3f47d7c74080fba7775a /ripngd/ripng_peer.c
parentMerge pull request #8058 from rgirada/ospf-ecmp (diff)
downloadfrr-2e5b3f37b0b696e37645ce28f5fd69268b1b1daa.tar.xz
frr-2e5b3f37b0b696e37645ce28f5fd69268b1b1daa.zip
ripngd: use pI6 instead of inet6_ntoa
Stop using unsafe inet6_ntoa(), just use %pI6. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'ripngd/ripng_peer.c')
-rw-r--r--ripngd/ripng_peer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ripngd/ripng_peer.c b/ripngd/ripng_peer.c
index 479fcaeb5..554b1d68f 100644
--- a/ripngd/ripng_peer.c
+++ b/ripngd/ripng_peer.c
@@ -163,8 +163,8 @@ void ripng_peer_display(struct vty *vty, struct ripng *ripng)
char timebuf[RIPNG_UPTIME_LEN];
for (ALL_LIST_ELEMENTS(ripng->peer_list, node, nnode, peer)) {
- vty_out(vty, " %s \n%14s %10d %10d %10d %s\n",
- inet6_ntoa(peer->addr), " ", peer->recv_badpackets,
+ vty_out(vty, " %pI6 \n%14s %10d %10d %10d %s\n",
+ &peer->addr, " ", peer->recv_badpackets,
peer->recv_badroutes, ZEBRA_RIPNG_DISTANCE_DEFAULT,
ripng_peer_uptime(peer, timebuf, RIPNG_UPTIME_LEN));
}