From 9e62dc8637f210cdeaed784396fecab9b6e5f043 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 20 Jan 2013 20:19:20 +0100 Subject: 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 --- iptables/xtables-standalone.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables/xtables-standalone.c') 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) { -- cgit v1.2.3