diff options
author | Phil Sutter <phil@nwl.cc> | 2020-05-12 12:59:42 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-06-09 00:16:34 +0200 |
commit | b40b7d976fe144d14421bb441f55ffdc11a4b442 (patch) | |
tree | 732401c5353525c314512c0d1ff608b7d168c7a3 /iptables/xtables-eb.c | |
parent | d4ed0c741fc789bb09d977d74d30875fdd50d08b (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/xtables-eb.c')
-rw-r--r-- | iptables/xtables-eb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 375a95d1..6641a21a 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -1155,7 +1155,7 @@ print_zero: /*case 7 :*/ /* atomic-init */ /*case 10:*/ /* atomic-save */ case 11: /* init-table */ - nft_cmd_table_flush(h, *table); + nft_cmd_table_flush(h, *table, false); return 1; /* replace->command = c; |