netfilter: nf_tables: Introduce NFT_MSG_GETSETELEM_RESET
authorPhil Sutter <phil@nwl.cc>
Thu, 15 Jun 2023 14:31:40 +0000 (16:31 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Jun 2023 06:05:57 +0000 (08:05 +0200)
commit079cd633219d7298d087cd115c17682264244c18
treeb8c1750e04f34eba9d0edc21aa264639abf73aec
parent4589725502871e77d06464f731f92fd9173e2be6
netfilter: nf_tables: Introduce NFT_MSG_GETSETELEM_RESET

Analogous to NFT_MSG_GETOBJ_RESET, but for set elements with a timeout
or attached stateful expressions like counters or quotas - reset them
all at once. Respect a per element timeout value if present to reset the
'expires' value to.

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