diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-10-21 18:55:09 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-21 18:55:09 -0400 | 
| commit | 37b4b3cc340e8198c8a45700ef981b79084913af (patch) | |
| tree | 3ea024bd677829a4455b5428bbcaea207cd41f46 /eigrpd/eigrp_vty.c | |
| parent | 719e0a6a6c4af04d1e9f4ef4bcc1855fc35fda6c (diff) | |
eigrpd: Replace inet_ntoa with %pI4
Search and destroy the inet_ntoa usage in eigrp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'eigrpd/eigrp_vty.c')
| -rw-r--r-- | eigrpd/eigrp_vty.c | 21 | 
1 files changed, 11 insertions, 10 deletions
diff --git a/eigrpd/eigrp_vty.c b/eigrpd/eigrp_vty.c index 4426cf67e9..66dfbaa538 100644 --- a/eigrpd/eigrp_vty.c +++ b/eigrpd/eigrp_vty.c @@ -360,14 +360,14 @@ DEFPY (clear_ip_eigrp_neighbors,  		for (ALL_LIST_ELEMENTS(ei->nbrs, node2, nnode2, nbr)) {  			if (nbr->state != EIGRP_NEIGHBOR_DOWN) {  				zlog_debug( -					"Neighbor %s (%s) is down: manually cleared", -					inet_ntoa(nbr->src), +					"Neighbor %pI4 (%s) is down: manually cleared", +					&nbr->src,  					ifindex2ifname(nbr->ei->ifp->ifindex,  						       eigrp->vrf_id));  				vty_time_print(vty, 0);  				vty_out(vty, -					"Neighbor %s (%s) is down: manually cleared\n", -					inet_ntoa(nbr->src), +					"Neighbor %pI4 (%s) is down: manually cleared\n", +					&nbr->src,  					ifindex2ifname(nbr->ei->ifp->ifindex,  						       eigrp->vrf_id)); @@ -420,14 +420,15 @@ DEFPY (clear_ip_eigrp_neighbors_int,  	/* iterate over all neighbors on eigrp interface */  	for (ALL_LIST_ELEMENTS(ei->nbrs, node2, nnode2, nbr)) {  		if (nbr->state != EIGRP_NEIGHBOR_DOWN) { -			zlog_debug("Neighbor %s (%s) is down: manually cleared", -				   inet_ntoa(nbr->src), -				   ifindex2ifname(nbr->ei->ifp->ifindex, -						  eigrp->vrf_id)); +			zlog_debug( +				"Neighbor %pI4 (%s) is down: manually cleared", +				&nbr->src, +				ifindex2ifname(nbr->ei->ifp->ifindex, +					       eigrp->vrf_id));  			vty_time_print(vty, 0);  			vty_out(vty, -				"Neighbor %s (%s) is down: manually cleared\n", -				inet_ntoa(nbr->src), +				"Neighbor %pI4 (%s) is down: manually cleared\n", +				&nbr->src,  				ifindex2ifname(nbr->ei->ifp->ifindex,  					       eigrp->vrf_id));  | 
