diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-11-05 18:05:21 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-11-05 18:05:21 -0400 | 
| commit | 38c848c9bdcc00f17eeb60aafc5f158264a19d5a (patch) | |
| tree | 243366a15670fb06af9187de560b118086aef40a /pimd/pim_register.c | |
| parent | 77c657fb1f54da2d1c8aed40ef377ae2beaf8ddd (diff) | |
pimd: remove usage of inet_ntop
We should not be using inet_ntop. and should be using
the appropriate %pI4 instead.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_register.c')
| -rw-r--r-- | pimd/pim_register.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/pimd/pim_register.c b/pimd/pim_register.c index fc464753e0..e2538da36f 100644 --- a/pimd/pim_register.c +++ b/pimd/pim_register.c @@ -323,7 +323,6 @@ int pim_register_recv(struct interface *ifp, struct in_addr dest_addr,  	int i_am_rp = 0;  	struct pim_interface *pim_ifp = ifp->info;  	struct pim_instance *pim = pim_ifp->pim; -	char buf[PREFIX_STRLEN];  #define PIM_MSG_REGISTER_BIT_RESERVED_LEN 4  	ip_hdr = (struct ip *)(tlv_buf + PIM_MSG_REGISTER_BIT_RESERVED_LEN); @@ -385,9 +384,8 @@ int pim_register_recv(struct interface *ifp, struct in_addr dest_addr,  	if (pim_is_grp_ssm(pim_ifp->pim, sg.grp)) {  		if (sg.src.s_addr == INADDR_ANY) {  			zlog_warn( -				"%s: Received Register message for Group(%s) is now in SSM, dropping the packet", -				__func__, -				inet_ntop(AF_INET, &sg.grp, buf, sizeof(buf))); +				"%s: Received Register message for Group(%pI4) is now in SSM, dropping the packet", +				__func__, &sg.grp);  			/* Drop Packet Silently */  			return 0;  		}  | 
