Skip to content

Review interface parsing and printing

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/3xshared: Entirely ignore interface masks when saving rulesiptables/ip6tables.c iptables/iptables.c iptables/nft-ipv4.c +3 more+12 -380 replies
2/3xshared: Do not populate interface masks per defaultiptables/ip6tables.c iptables/iptables.c iptables/xshared.c +1 more+48 -110 replies
3/3nft: Leave interface masks alone when parsing from kerneliptables/nft-ruleparse-arp.c iptables/nft-ruleparse-bridge.c iptables/nft-ruleparse-ipv4.c +3 more+16 -360 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [iptables PATCH 0/3] Review interface parsing and printing

Take advantage of the fact that interface name masks are needed only when submitting a legacy rule to the kernel. Drop all the code dealing with them and instead introduce a function to call from legacy variants if needed.

Phil Sutter (3):
xshared: Entirely ignore interface masks when saving rules
xshared: Do not populate interface masks per default
nft: Leave interface masks alone when parsing from kernel

 iptables/ip6tables.c            |  6 ++-
 iptables/iptables.c             |  6 ++-
 iptables/nft-ipv4.c             |  3 +-
 iptables/nft-ipv6.c             |  3 +-
 iptables/nft-ruleparse-arp.c    |  5 +-
 iptables/nft-ruleparse-bridge.c |  3 +-
 iptables/nft-ruleparse-ipv4.c   |  5 +-
 iptables/nft-ruleparse-ipv6.c   |  3 +-
 iptables/nft-ruleparse.c        | 33 ++++---------
 iptables/nft-ruleparse.h        |  3 +-
 iptables/xshared.c              | 83 ++++++++++++++++++---------------
 iptables/xshared.h              |  8 ++--
 12 files changed, 76 insertions(+), 85 deletions(-)
Signature · 1 line
2.41.0