netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH 0/3] Implement 'reset {set,map,element}' commands
@ 2023-06-15 14:44 Phil Sutter
  2023-06-15 14:44 ` [nft PATCH 1/3] evaluate: Merge some cases in cmd_evaluate_list() Phil Sutter
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Phil Sutter @ 2023-06-15 14:44 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-13 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-15 14:44 [nft PATCH 0/3] Implement 'reset {set,map,element}' commands Phil Sutter
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

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).