summaryrefslogtreecommitdiffstats
path: root/iptables/nft.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-04-07 00:44:49 +0200
committerFlorian Westphal <fw@strlen.de>2018-04-09 22:53:09 +0200
commit9d9b724cab2276a1ffa43e8376f2ed10282d07da (patch)
tree331175080abfab6cdbdecd23f3484620e75577f0 /iptables/nft.h
parent59d15cfb8998074b2f6077fb5a4a5aea6a002bc7 (diff)
xtables-compat: skip unsupported tables
Instead of not listing anything at all if an unknown table name exists, just skip them. Output a small comment that the listing doesn't include the (unrecognized, nft-created) tables. Next patch will restrict 'is this table printable in xtables syntax' check to the "builtin" tables. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r--iptables/nft.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft.h b/iptables/nft.h
index 41265930..310cedec 100644
--- a/iptables/nft.h
+++ b/iptables/nft.h
@@ -183,5 +183,6 @@ int nft_arp_rule_insert(struct nft_handle *h, const char *chain,
void nft_rule_to_arpt_entry(struct nftnl_rule *r, struct arpt_entry *fw);
int nft_is_ruleset_compatible(struct nft_handle *h);
+bool nft_is_table_compatible(struct nft_handle *h, const char *name);
#endif