summaryrefslogtreecommitdiffstats
path: root/iptables/nft-cmd.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-05-12 12:59:42 +0200
committerPhil Sutter <phil@nwl.cc>2020-06-09 00:16:34 +0200
commitb40b7d976fe144d14421bb441f55ffdc11a4b442 (patch)
tree732401c5353525c314512c0d1ff608b7d168c7a3 /iptables/nft-cmd.h
parentd4ed0c741fc789bb09d977d74d30875fdd50d08b (diff)
xtables-restore: Fix verbose mode table flushing
When called with --verbose mode, iptables-nft-restore did not print anything when flushing the table. Fix this by adding a "manual" mode to nft_cmd_table_flush(), turning it into a wrapper around '-F' and '-X' commands, which is exactly what iptables-legacy-restore does to flush a table. This though requires a real cache, so don't set NFT_CL_FAKE then. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-cmd.h')
-rw-r--r--iptables/nft-cmd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-cmd.h b/iptables/nft-cmd.h
index 0e1776ce..ecf7655a 100644
--- a/iptables/nft-cmd.h
+++ b/iptables/nft-cmd.h
@@ -65,7 +65,7 @@ int nft_cmd_chain_user_rename(struct nft_handle *h,const char *chain,
int nft_cmd_rule_replace(struct nft_handle *h, const char *chain,
const char *table, void *data, int rulenum,
bool verbose);
-int nft_cmd_table_flush(struct nft_handle *h, const char *table);
+int nft_cmd_table_flush(struct nft_handle *h, const char *table, bool verbose);
int nft_cmd_chain_restore(struct nft_handle *h, const char *chain,
const char *table);
int nft_cmd_rule_zero_counters(struct nft_handle *h, const char *chain,