]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Use do_parse() from xshared
authorPhil Sutter <phil@nwl.cc>
Thu, 9 Nov 2023 15:59:51 +0000 (16:59 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 5 Dec 2023 15:35:37 +0000 (16:35 +0100)
commit58d364c7120b515d80482c99586dd815653be59c
tree47bf49aa4942bfd1f0716ef60cc54ef1142f3a6c
parent12d780775b5e34bcc2e0c34c550a6d5d96028628
ebtables: Use do_parse() from xshared

Drop the custom commandline parsers from ebtables and
ebtables-translate, extend and use the shared one instead.

ebtables gains a few new features from doing this:

- Rule counters may be specified in the '-c N,M' syntax
- Support for --replace command
- Support for --list-rules command
- Zero individual rules

There is one known regression in this patch, namely maximum chain name
length shrinks to 28 characters (from 32). Since this limit changed for
iptables in the past as well (e.g. with commit 5429b41c2bb4a), assume
nobody really relies upon it anyway.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-bridge.c
iptables/nft-bridge.h
iptables/nft.h
iptables/xshared.c
iptables/xshared.h
iptables/xtables-eb-translate.c
iptables/xtables-eb.c