summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-08-30 11:47:42 +0200
committerPhil Sutter <phil@nwl.cc>2019-09-23 13:05:05 +0200
commit3897b008281888f7905cc1857ccb316cdf686061 (patch)
tree77822e93ce2e27510ee379efd1e5f43778206981 /iptables/xtables-restore.c
parent1d05b989b3ec774c52cdb1fee41d8ee5f382b756 (diff)
nft: Introduce nft_bridge_commit()
No need to check family value from nft_commit() if we can have a dedicated callback for bridge family. Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index 601c842f..f930f5ba 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -463,7 +463,7 @@ static int ebt_table_flush(struct nft_handle *h, const char *table)
struct nft_xt_restore_cb ebt_restore_cb = {
.chain_list = get_chain_list,
- .commit = nft_commit,
+ .commit = nft_bridge_commit,
.table_new = nft_table_new,
.table_flush = ebt_table_flush,
.do_command = do_commandeb,