mbox series

[iptables,00/11] Share do_parse() between nft and legacy

Message ID 20211224171754.14210-1-phil@nwl.cc
Headers show
Series Share do_parse() between nft and legacy | expand

Message

Phil Sutter Dec. 24, 2021, 5:17 p.m. UTC
Patch 1 removes remains of an unused (and otherwise dropped) feature,
yet the change is necessary for the following ones. Patches 2-6 prepare
for patch 7 which moves do_parse() to xshared.c. Patches 8 and 9 prepare
for use of do_parse() from legacy code, Patches 10 and 11 finally drop
legacy ip(6)tables' rule parsing code.

Merry Xmas!

Phil Sutter (11):
  xtables: Drop xtables' family on demand feature
  xtables: Pull table validity check out of do_parse()
  xtables: Move struct nft_xt_cmd_parse to xshared.h
  xtables: Pass xtables_args to check_empty_interface()
  xtables: Pass xtables_args to check_inverse()
  xtables: Do not pass nft_handle to do_parse()
  xshared: Move do_parse to shared space
  xshared: Store parsed wait and wait_interval in xtables_args
  nft: Move proto_parse and post_parse callbacks to xshared
  iptables: Use xtables' do_parse() function
  ip6tables: Use the shared do_parse, too

 iptables/ip6tables.c            | 499 ++---------------------
 iptables/iptables.c             | 484 ++--------------------
 iptables/nft-ipv4.c             |  59 +--
 iptables/nft-ipv6.c             |  76 +---
 iptables/nft-shared.h           |  49 ---
 iptables/xshared.c              | 684 ++++++++++++++++++++++++++++++++
 iptables/xshared.h              |  66 +++
 iptables/xtables-eb-translate.c |   4 +-
 iptables/xtables-translate.c    |  13 +-
 iptables/xtables.c              | 573 +-------------------------
 10 files changed, 839 insertions(+), 1668 deletions(-)