[iptables PATCH 0/5] Merge some common code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
2.31.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux