netfilter: nf_tables: Introduce NFT_MSG_GETRULE_RESET
authorPhil Sutter <phil@nwl.cc>
Fri, 14 Oct 2022 21:45:59 +0000 (23:45 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 15 Nov 2022 09:53:17 +0000 (10:53 +0100)
commit8daa8fde3fc3f069ff0b5c87079a5c1df7743113
tree211a951a755672710e6ab79026e016aacd28a587
parent7d34aa3e03b6a56306296bd98b26c6a1710cd57b
netfilter: nf_tables: Introduce NFT_MSG_GETRULE_RESET

Analogous to NFT_MSG_GETOBJ_RESET, but for rules: Reset stateful
expressions like counters or quotas. The latter two are the only
consumers, adjust their 'dump' callbacks to respect the parameter
introduced earlier.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_counter.c
net/netfilter/nft_dynset.c
net/netfilter/nft_inner.c
net/netfilter/nft_quota.c