Skip to content

Merge some common code

Phil Sutter netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xtables: Make invflags 16bit wideiptables/nft-shared.h iptables/xtables.c+3 -30 replies
2/5xshared: Eliminate iptables_command_state->invertiptables/ip6tables.c iptables/iptables.c iptables/xshared.c +4 more+113 -1330 replies
3/5xshared: Merge invflags handling codeiptables/ip6tables.c iptables/iptables.c iptables/nft-arp.h +4 more+88 -1990 replies
4/5ebtables-translate: Use shared ebt_get_current_chain() functioniptables/xtables-eb-translate.c+1 -170 replies
5/5Use proto_to_name() from xshared in more placesinclude/xtables.h iptables/ip6tables.c iptables/iptables.c +3 more+16 -380 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/5] Merge some common code

This is more or less fallout from a local branch merging arptables code into xtables:

Patches 1 and 2 are dependencies of patch 3 which combines invflags handling everywhere else than in ebtables as that is always a bit more "special" than the others.

Patch 4 fixes an actual bug as a side-effect of removing redundant code.

Patch 5 might change iptables-nft output slightly in corner-cases but makes it consistent with legacy.

Phil Sutter (5):
xtables: Make invflags 16bit wide
xshared: Eliminate iptables_command_state->invert
xshared: Merge invflags handling code
ebtables-translate: Use shared ebt_get_current_chain() function Use proto_to_name() from xshared in more places

 include/xtables.h               |   2 +-
 iptables/ip6tables.c            | 161 +++++++++++---------------------
 iptables/iptables.c             | 160 +++++++++++--------------------
 iptables/nft-arp.h              |   7 --
 iptables/nft-shared.c           |   6 +-
 iptables/nft-shared.h           |   2 +-
 iptables/xshared.c              |  55 +++++++++--
 iptables/xshared.h              |  18 +++-
 iptables/xtables-arp.c          |  44 ---------
 iptables/xtables-eb-translate.c |  19 +---
 iptables/xtables-eb.c           |   1 -
 iptables/xtables.c              | 114 +++++++---------------
 12 files changed, 210 insertions(+), 379 deletions(-)
Signature · 1 line
2.31.0