diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-10-22 14:16:33 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-10-22 16:25:41 -0400 | 
| commit | 53bb7f9bb3a16a7e178f047620f3bcd0ec7b6934 (patch) | |
| tree | 2730990b1a13075add547c19c5f443568e1b5c84 /ripd/rip_peer.c | |
| parent | 84de5a245a3eb17619588a535b9f408ce802a8c9 (diff) | |
ripd: replace inet_ntoa
Replace all uses of inet_ntoa, using pI4, pFX, or inet_pton.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'ripd/rip_peer.c')
| -rw-r--r-- | ripd/rip_peer.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ripd/rip_peer.c b/ripd/rip_peer.c index 77c73ab398..4c5233c82c 100644 --- a/ripd/rip_peer.c +++ b/ripd/rip_peer.c @@ -155,8 +155,8 @@ void rip_peer_display(struct vty *vty, struct rip *rip)  	char timebuf[RIP_UPTIME_LEN];  	for (ALL_LIST_ELEMENTS(rip->peer_list, node, nnode, peer)) { -		vty_out(vty, "    %-16s %9d %9d %9d   %s\n", -			inet_ntoa(peer->addr), peer->recv_badpackets, +		vty_out(vty, "    %-16pI4 %9d %9d %9d   %s\n", +			&peer->addr, peer->recv_badpackets,  			peer->recv_badroutes, ZEBRA_RIP_DISTANCE_DEFAULT,  			rip_peer_uptime(peer, timebuf, RIP_UPTIME_LEN));  	}  | 
