diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-04 11:41:10 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-05 10:05:44 +0200 |
commit | d1eb4d58729736773d1c5cc106451e2851427850 (patch) | |
tree | 8afb1a872df21b1bcf1f012ccac2586f16258bb7 /iptables/xtables-restore.c | |
parent | 09f0d47b213de944303a320a70bf57e143bfed62 (diff) |
iptables-compat: chains are purge out already from table flush
Remove dead code that uses the ancient non-batch netlink API. Chains
are already purged out from table flush.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r-- | iptables/xtables-restore.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index 3de496f8..a33a6593 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -190,7 +190,6 @@ struct nft_xt_restore_cb restore_cb = { .chain_list = get_chain_list, .commit = nft_commit, .abort = nft_abort, - .chains_purge = nft_table_purge_chains, .table_flush = nft_table_flush, .chain_del = chain_delete, .do_command = do_commandx, @@ -245,10 +244,6 @@ void xtables_restore_parse(struct nft_handle *h, } in_table = 0; - /* Purge out unused chains in this table */ - if (!p->testing && cb->chains_purge) - cb->chains_purge(h, curtable, chain_list); - } else if ((buffer[0] == '*') && (!in_table)) { /* New table */ char *table; |