Skip to content

Implement 'reset {set,map,element}' commands

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3evaluate: Merge some cases in cmd_evaluate_list()src/evaluate.c+4 -320 replies
2/3evaluate: Cache looked up set for list commandssrc/evaluate.c src/json.c src/rule.c+15 -70 replies
3/3Implement 'reset {set,map,element}' commandsdoc/libnftables-json.adoc doc/nft.txt include/linux/netfilter/nf_tables.h +10 more+162 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [nft PATCH 0/3] Implement 'reset {set,map,element}' commands

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
Signature · 1 line
2.40.0