diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-08-02 16:37:11 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-08-02 16:37:55 +0200 |
commit | 0418cf2e2651d86b69df63be05659e4938fecbed (patch) | |
tree | 0ffb35f40b14b97b37952e7a6d87113524adb9e9 /lib/sockopt.c | |
parent | Merge pull request #11684 from donaldsharp/cleanup_for_dev_builds (diff) | |
download | frr-0418cf2e2651d86b69df63be05659e4938fecbed.tar.xz frr-0418cf2e2651d86b69df63be05659e4938fecbed.zip |
lib: Remove usage of inet_ntop in lib/sockopt.c
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r-- | lib/sockopt.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c index 5bdd506a7..7a2b8a1c8 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -306,12 +306,9 @@ int setsockopt_ipv4_multicast(int sock, int optname, struct in_addr if_addr, && (errno == EADDRINUSE)) { /* see above: handle possible problem when interface comes back * up */ - char buf[1][INET_ADDRSTRLEN]; zlog_info( - "setsockopt_ipv4_multicast attempting to drop and re-add (fd %d, mcast %s, ifindex %u)", - sock, inet_ntop(AF_INET, &mreq.imr_multiaddr, buf[0], - sizeof(buf[0])), - ifindex); + "setsockopt_ipv4_multicast attempting to drop and re-add (fd %d, mcast %pI4, ifindex %u)", + sock, &mreq.imr_multiaddr, ifindex); setsockopt(sock, IPPROTO_IP, IP_DROP_MEMBERSHIP, (void *)&mreq, sizeof(mreq)); ret = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, |