diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-10-21 13:57:06 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-10-22 13:37:25 -0400 | 
| commit | 9bcef951be1db4f94eb985c007e4b563657af20e (patch) | |
| tree | d818389f6d611c47770f002fbada358260cb43e6 /zebra/connected.c | |
| parent | 96b663a381c2e90fa663d69fce4e40f0be698e58 (diff) | |
zebra: replace inet_ntoa
Stop using inet_ntoa - use %pI4 or inet_ntop instead
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/connected.c')
| -rw-r--r-- | zebra/connected.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index cd42b5b250..6a1efc3e65 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -308,8 +308,8 @@ void connected_add_ipv4(struct interface *ifp, int flags, struct in_addr *addr,  			if (IPV4_ADDR_SAME(addr, dest))  				flog_warn(  					EC_ZEBRA_IFACE_SAME_LOCAL_AS_PEER, -					"warning: interface %s has same local and peer address %s, routing protocols may malfunction", -					ifp->name, inet_ntoa(*addr)); +					"warning: interface %s has same local and peer address %pI4, routing protocols may malfunction", +					ifp->name, addr);  		} else {  			zlog_debug(  				"warning: %s called for interface %s with peer flag set, but no peer address supplied", @@ -322,8 +322,8 @@ void connected_add_ipv4(struct interface *ifp, int flags, struct in_addr *addr,  	if (!dest && (prefixlen == IPV4_MAX_PREFIXLEN)  		&& if_is_pointopoint(ifp))  		zlog_debug( -			"warning: PtP interface %s with addr %s/%d needs a peer address", -			ifp->name, inet_ntoa(*addr), prefixlen); +			"warning: PtP interface %s with addr %pI4/%d needs a peer address", +			ifp->name, addr, prefixlen);  	/* Label of this address. */  	if (label)  | 
