]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables-nft: fix -Z option
authorFlorian Westphal <fw@strlen.de>
Wed, 24 Feb 2021 10:08:02 +0000 (11:08 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 24 Feb 2021 12:57:34 +0000 (13:57 +0100)
commit5f1fcacebf9b4529950b6e3f88327049a0ea7cd2
tree2b621a177172a62f288b9b82f0fc073311cdef95
parentc94416573d8a97830aa1c9f8ea1bbbd17d4fddbe
iptables-nft: fix -Z option

it zeroes the rule counters, so it needs fully populated cache.
Add a test case to cover this.

Fixes: 9d07514ac5c7a ("nft: calculate cache requirements from list of commands")
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Phil Sutter <phil@nwl.cc>
iptables/nft-cmd.c
iptables/tests/shell/testcases/iptables/0007-zero-counters_0 [new file with mode: 0755]