summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-save.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-24 17:57:34 +0200
committerFlorian Westphal <fw@strlen.de>2018-05-25 23:37:55 +0200
commit49709e2ac6cf778e8732e9b0ca124da556ed6a91 (patch)
tree2791569381bcf135746147894ff42b1b06ebe385 /iptables/xtables-save.c
parent03e1377b38af45292a3a55828ee8e7c7e41ae64c (diff)
xtables-compat: remove nft_is_ruleset_compatible
Use nft_is_table_compatible instead as only helper to a 'skip' decision. Custom tables, tables that have extra base chains that iptables syntax doesn't allow or rules that have special constructs line nftables set lookups or verdict maps are not listed, but a message is provided to show that such table exists. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-save.c')
-rw-r--r--iptables/xtables-save.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c
index 2305e878..be98b835 100644
--- a/iptables/xtables-save.c
+++ b/iptables/xtables-save.c
@@ -182,13 +182,6 @@ xtables_save_main(int family, const char *progname, int argc, char *argv[])
exit(EXIT_FAILURE);
}
-
- ret = nft_is_ruleset_compatible(&h);
- if (ret) {
- printf("ERROR: You're using nft features that cannot be mapped to iptables, please keep using nft.\n");
- exit(EXIT_FAILURE);
- }
-
if (dump) {
do_output(&h, tablename, show_counters);
exit(0);