]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: remove fake stateless output of named counters
authorJeremy Sowden <jeremy@azazel.net>
Thu, 7 Oct 2021 20:12:20 +0000 (21:12 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 11 Oct 2021 23:06:51 +0000 (01:06 +0200)
commitb487f4d0e436522acbef938ff4751626406b24c8
tree52a2993f679d89fb932b284aa6a770d5b1e82b87
parentad5669a40381e8cc30c459c1a06a6f736677dfc6
rule: remove fake stateless output of named counters

When `-s` is passed, no state is output for named quotas and counter and
quota rules, but fake zero state is output for named counters.  Remove
the output of named counters to match the remaining stateful objects.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/rule.c