Skip to content

Restore rule counter zeroing

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nft: CMD_ZERO needs a rule cacheiptables/nft.c iptables/xtables-restore.c+3 -02 replies
2/2nft: Fix -Z for rules with NFTA_RULE_COMPATiptables/nft.c+39 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchFlorian WestphalPablo Neira Ayuso
1/2R-b A-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [iptables PATCH 0/2] Restore rule counter zeroing

Zeroing rule counters was broken in two ways: On one hand, cache optimizations went a little too far (actually I missed that rule cache is required for CMD_ZERO). On the other, rule replace logic was insufficient with regards to NFTA_RULE_COMPAT attribute (elaborate details in second patch).

Phil Sutter (2):
nft: CMD_ZERO needs a rule cache
nft: Fix -Z for rules with NFTA_RULE_COMPAT

 iptables/nft.c             | 41 ++++++++++++++++++++++++++++++++++++++
 iptables/xtables-restore.c |  1 +
 2 files changed, 42 insertions(+)
Signature · 1 line
2.24.0