ebtables: Use the shared commandline parser
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest13 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | xshared: do_parse: Skip option checking for CMD_DELETE_NUMiptables/ | +0 | 0 replies | |
| 2/13 | xshared: Perform protocol value parsing in callbackiptables/ iptables/ | +14 | 0 replies | |
| 3/13 | xshared: Turn command_default() into a callbackiptables/ iptables/ iptables/ +4 more | +12 | 0 replies | |
| 4/13 | xshared: Introduce print_help callback (again)iptables/ iptables/ iptables/ +4 more | +10 | 0 replies | |
| 5/13 | xshared: Support rule range deletion in do_parse()iptables/ iptables/ | +35 | 0 replies | |
| 6/13 | xshared: Support for ebtables' --change-counters commandiptables/ iptables/ iptables/ | +66 | 0 replies | |
| 7/13 | ebtables{,-translate}: Convert if-clause to switch()iptables/ iptables/ | +41 | 0 replies | |
| 8/13 | ebtables: Change option values to avoid clashesiptables/ iptables/ | +19 | 0 replies | |
| 9/13 | ebtables: Pass struct iptables_command_state to print_help()iptables/ | +5 | 0 replies | |
| 10/13 | ebtables: Make 'h' case just a call to print_help()iptables/ iptables/ | +31 | 0 replies | |
| 11/13 | ebtables: Use struct xt_cmd_parseiptables/ | +36 | 0 replies | |
| 12/13 | xshared: Introduce option_test_and_reject()iptables/ | +11 | 0 replies | |
| 13/13 | ebtables: Use do_parse() from xsharediptables/ iptables/ iptables/ +4 more | +341 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [iptables PATCH 00/13] ebtables: Use the shared commandline parser
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(-)
Signature · 1 line
2.41.0