diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-01-20 20:19:20 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:23 +0100 |
commit | 9e62dc8637f210cdeaed784396fecab9b6e5f043 (patch) | |
tree | e53163246d426495c972e8176f6c681067ecddec /iptables/xtables-standalone.c | |
parent | 0aad20f3979e3b6becd40e4ed5bba8d09d90706e (diff) |
xtables-restore: support atomic commit
Use new services in nf_tables to support atomic commit.
Commit per table, although we support global commit at once,
call commit for each table to emulate iptables-restore
behaviour by now.
Keep table dormant/wake up code in iptables/nft.c as it can
be used in the future.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-standalone.c')
-rw-r--r-- | iptables/xtables-standalone.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iptables/xtables-standalone.c b/iptables/xtables-standalone.c index f746c902..28416117 100644 --- a/iptables/xtables-standalone.c +++ b/iptables/xtables-standalone.c @@ -46,6 +46,8 @@ xtables_main(int argc, char *argv[]) char *table = "filter"; struct nft_handle h; + memset(&h, 0, sizeof(h)); + iptables_globals.program_name = "xtables"; ret = xtables_init_all(&xtables_globals, NFPROTO_IPV4); if (ret < 0) { |