path: root/iptables/xshared.h
diff options
authorPhil Sutter <>2021-04-27 10:02:34 +0200
committerPhil Sutter <>2021-04-30 03:40:07 +0200
commit1e984079817a3c804eae25dea937d63d18c57a6c (patch)
treeb6ef80bd349ecb6d1da0529cad8943fd3419f4c4 /iptables/xshared.h
parentacac2dbe64e5120394fa715bb5fe95c42d08b8b3 (diff)
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 <>
Diffstat (limited to 'iptables/xshared.h')
1 files changed, 3 insertions, 0 deletions
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 */
+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);