summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-04-24 15:25:26 +0200
committerPhil Sutter <phil@nwl.cc>2020-05-11 14:28:28 +0200
commit0c3aded0b6d587b962be66b54bdc050d3b3cfdcb (patch)
tree63d6defff5c7b6406e98552e51602f0efac01901 /iptables/xtables-restore.c
parent1fd8d5f2e1577496f5431099589bd638ef5d5997 (diff)
ebtables-restore: Drop custom table flush routine
At least since flushing xtables-restore doesn't fetch chains from kernel anymore, problems with pending policy rule delete jobs can't happen anymore. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index 8c25e5b2..bef0dd22 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -486,17 +486,10 @@ int xtables_ip6_restore_main(int argc, char *argv[])
argc, argv);
}
-static int ebt_table_flush(struct nft_handle *h, const char *table)
-{
- /* drop any pending policy rule add/removal jobs */
- nft_abort_policy_rule(h, table);
- return nft_table_flush(h, table);
-}
-
static const struct nft_xt_restore_cb ebt_restore_cb = {
.commit = nft_bridge_commit,
.table_new = nft_table_new,
- .table_flush = ebt_table_flush,
+ .table_flush = nft_table_flush,
.do_command = do_commandeb,
.chain_set = nft_chain_set,
.chain_restore = nft_chain_restore,