All of lore.kernel.org
 help / color / mirror / Atom feed
* [iptables PATCH 00/13] ebtables: Use the shared commandline parser
@ 2023-11-29 13:28 Phil Sutter
  2023-11-29 13:28 ` [iptables PATCH 01/13] xshared: do_parse: Skip option checking for CMD_DELETE_NUM Phil Sutter
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Phil Sutter @ 2023-11-29 13:28 UTC (permalink / raw)
  To: netfilter-devel

This series converts do_commandeb() and do_commandeb_xlate() to call
do_parse() from xshared.c instead of iterating over argv themselves.

Patches 1-6 prepare the shared (parser) code for use by ebtables.
Patches 7-11 prepare ebtables code for the following integration in
patch 13. Patch 12 is a minor refactoring in xshared but fits fine right
before the merge as the introduced helper function is called two more
times by it.

Phil Sutter (13):
  xshared: do_parse: Skip option checking for CMD_DELETE_NUM
  xshared: Perform protocol value parsing in callback
  xshared: Turn command_default() into a callback
  xshared: Introduce print_help callback (again)
  xshared: Support rule range deletion in do_parse()
  xshared: Support for ebtables' --change-counters command
  ebtables{,-translate}: Convert if-clause to switch()
  ebtables: Change option values to avoid clashes
  ebtables: Pass struct iptables_command_state to print_help()
  ebtables: Make 'h' case just a call to print_help()
  ebtables: Use struct xt_cmd_parse
  xshared: Introduce option_test_and_reject()
  ebtables: Use do_parse() from xshared

 iptables/ip6tables.c            |   2 +
 iptables/iptables.c             |   2 +
 iptables/nft-arp.c              |   2 +
 iptables/nft-bridge.c           | 121 +++++
 iptables/nft-bridge.h           |  13 +-
 iptables/nft-cmd.h              |   7 -
 iptables/nft-ipv4.c             |   2 +
 iptables/nft-ipv6.c             |   2 +
 iptables/nft.h                  |   1 -
 iptables/xshared.c              | 218 +++++++--
 iptables/xshared.h              |  36 +-
 iptables/xtables-eb-translate.c | 491 +++----------------
 iptables/xtables-eb.c           | 839 ++++++--------------------------
 13 files changed, 567 insertions(+), 1169 deletions(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-12-05 16:25 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-29 13:28 [iptables PATCH 00/13] ebtables: Use the shared commandline parser Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 01/13] xshared: do_parse: Skip option checking for CMD_DELETE_NUM Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 02/13] xshared: Perform protocol value parsing in callback Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 03/13] xshared: Turn command_default() into a callback Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 04/13] xshared: Introduce print_help callback (again) Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 05/13] xshared: Support rule range deletion in do_parse() Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 06/13] xshared: Support for ebtables' --change-counters command Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 07/13] ebtables{,-translate}: Convert if-clause to switch() Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 08/13] ebtables: Change option values to avoid clashes Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 09/13] ebtables: Pass struct iptables_command_state to print_help() Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 10/13] ebtables: Make 'h' case just a call " Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 11/13] ebtables: Use struct xt_cmd_parse Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 12/13] xshared: Introduce option_test_and_reject() Phil Sutter
2023-11-29 13:28 ` [iptables PATCH 13/13] ebtables: Use do_parse() from xshared Phil Sutter
2023-12-05 16:25 ` [iptables PATCH 00/13] ebtables: Use the shared commandline parser Phil Sutter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.