diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-04 11:25:00 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-05 10:05:44 +0200 |
commit | 09f0d47b213de944303a320a70bf57e143bfed62 (patch) | |
tree | ef510269f7c362031464ca8779f5cd94e0a9a9d0 /iptables/nft-shared.h | |
parent | 8798eb8f48434b1a764788c8a0c133a983bc39e6 (diff) |
iptables-compat: do not fail on restore if user chain exists
The following snippet fails if user chain FOO exists, but it should not fail:
iptables-compat -F
iptables-compat -N FOO
iptables-compat-save > foo
iptables-compat-restore < foo
Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 525f3f0e..089828a3 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -256,7 +256,7 @@ struct nft_xt_restore_cb { int (*chain_user_add)(struct nft_handle *h, const char *chain, const char *table); - int (*rule_flush)(struct nft_handle *h, const char *chain, const char *table); + int (*table_flush)(struct nft_handle *h, const char *table); int (*do_command)(struct nft_handle *h, int argc, char *argv[], char **table, bool restore); |