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_zebra.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_zebra.c')
| -rw-r--r-- | ripd/rip_zebra.c | 10 | 
1 files changed, 4 insertions, 6 deletions
diff --git a/ripd/rip_zebra.c b/ripd/rip_zebra.c index e07d218860..074370dc26 100644 --- a/ripd/rip_zebra.c +++ b/ripd/rip_zebra.c @@ -88,18 +88,16 @@ static void rip_zebra_ipv4_send(struct rip *rip, struct route_node *rp,  	if (IS_RIP_DEBUG_ZEBRA) {  		if (rip->ecmp) -			zlog_debug("%s: %s/%d nexthops %d", +			zlog_debug("%s: %pFX nexthops %d",  				   (cmd == ZEBRA_ROUTE_ADD)  					   ? "Install into zebra"  					   : "Delete from zebra", -				   inet_ntoa(rp->p.u.prefix4), rp->p.prefixlen, -				   count); +				   &rp->p, count);  		else -			zlog_debug("%s: %s/%d", +			zlog_debug("%s: %pFX",  				   (cmd == ZEBRA_ROUTE_ADD)  					   ? "Install into zebra" -					   : "Delete from zebra", -				   inet_ntoa(rp->p.u.prefix4), rp->p.prefixlen); +					   : "Delete from zebra", &rp->p);  	}  	rip->counters.route_changes++;  | 
