summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-09-19 15:17:00 +0200
committerFlorian Westphal <fw@strlen.de>2018-09-24 11:24:17 +0200
commit80aae9b3b784ffdea3624117c548d500c56f24d9 (patch)
treef1f3ae0a9f8ed001f0f49ad8a0bce4f1cec6ff3e /iptables/nft-shared.h
parent8da04ffdca1931402a6bc22c43c1a2fa1c6f1e14 (diff)
iptables: Use print_ifaces() from xtables
Move the function to xshared.c for common use between legacy and xtables sources. While being at it, silence a covscan warning triggered by that function as it couldn't verify input buffers won't exceed IFNAMSIZ. Therefore use snprintf() when writing to the local buffer. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index 59e1062a..1281f080 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -155,8 +155,6 @@ void print_rule_details(const struct iptables_command_state *cs,
const char *targname, uint8_t flags,
uint8_t invflags, uint8_t proto,
unsigned int num, unsigned int format);
-void print_ifaces(const char *iniface, const char *outiface, uint8_t invflags,
- unsigned int format);
void print_matches_and_target(struct iptables_command_state *cs,
unsigned int format);
void save_rule_details(const struct iptables_command_state *cs,