From: Phil Sutter <phil@nwl.cc>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: [nft PATCH 0/3] Implement 'reset {set,map,element}' commands
Date: Thu, 15 Jun 2023 16:44:11 +0200 [thread overview]
Message-ID: <20230615144414.1393-1-phil@nwl.cc> (raw)
This series makes use of the new NFT_MSG_GETSETELEM_RESET message type
to reset state in set elements.
Patches one and two are fallout from working on the actual
implementation in patch three.
Phil Sutter (3):
evaluate: Merge some cases in cmd_evaluate_list()
evaluate: Cache looked up set for list commands
Implement 'reset {set,map,element}' commands
doc/libnftables-json.adoc | 2 +-
doc/nft.txt | 13 ++--
include/linux/netfilter/nf_tables.h | 2 +
include/mnl.h | 6 +-
include/netlink.h | 5 +-
src/cache.c | 9 ++-
src/evaluate.c | 42 +++--------
src/json.c | 9 ++-
src/mnl.c | 22 ++++--
src/netlink.c | 8 +--
src/parser_bison.y | 12 ++++
src/parser_json.c | 4 ++
src/rule.c | 27 +++++--
tests/shell/testcases/sets/reset_command_0 | 82 ++++++++++++++++++++++
14 files changed, 181 insertions(+), 62 deletions(-)
create mode 100755 tests/shell/testcases/sets/reset_command_0
--
2.40.0
next reply other threads:[~2023-06-15 14:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 14:44 Phil Sutter [this message]
2023-06-15 14:44 ` [nft PATCH 1/3] evaluate: Merge some cases in cmd_evaluate_list() Phil Sutter
2023-06-15 14:44 ` [nft PATCH 2/3] evaluate: Cache looked up set for list commands Phil Sutter
2023-06-15 14:44 ` [nft PATCH 3/3] Implement 'reset {set,map,element}' commands Phil Sutter
2023-07-13 15:12 ` [nft PATCH 0/3] " Phil Sutter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230615144414.1393-1-phil@nwl.cc \
--to=phil@nwl.cc \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).