]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: don't print rule counters unless verbose
authorEric Garver <e@erig.me>
Wed, 1 Aug 2018 19:36:26 +0000 (15:36 -0400)
committerFlorian Westphal <fw@strlen.de>
Wed, 1 Aug 2018 20:06:50 +0000 (22:06 +0200)
commited30b9311d2bf3758463a353bf8a9dbb42a4e1cb
treea9c4f8ae31ea010c1731b9ed0da840a75d9f4398
parent31e4b5906ff676a3c13060d6f456d72b7f6c90c2
nft: don't print rule counters unless verbose

Currently rule counters are always printed, but that's not the desired
behavior. We should only print them with the verbose flag. This broke
when the arguments of nft_rule_print_save() were changed to accept the
format instead of a counters flag.

Fixes: cdc78b1d6bd7 ("nft: convert rule into a command state structure")
Signed-off-by: Eric Garver <e@erig.me>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft.c
iptables/tests/shell/testcases/ipt-save/0005iptables_0 [new file with mode: 0755]