From 1e984079817a3c804eae25dea937d63d18c57a6c Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 27 Apr 2021 10:02:34 +0200 Subject: nft-arp: Make use of ipv4_addr_to_string() This eliminates quite a bit of redundant code apart from also dropping use of obsolete function gethostbyaddr(). Signed-off-by: Phil Sutter --- iptables/xshared.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iptables/xshared.h') diff --git a/iptables/xshared.h b/iptables/xshared.h index 9159b2b1..1e86aba8 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -206,6 +206,9 @@ void debug_print_argv(struct argv_store *store); # define debug_print_argv(...) /* nothing */ #endif +const char *ipv4_addr_to_string(const struct in_addr *addr, + const struct in_addr *mask, + unsigned int format); void print_ipv4_addresses(const struct ipt_entry *fw, unsigned int format); void print_ipv6_addresses(const struct ip6t_entry *fw6, unsigned int format); -- cgit v1.2.3