]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Merge xtables-arp-standalone.c into xtables-standalone.c
authorPhil Sutter <phil@nwl.cc>
Mon, 27 Sep 2021 14:59:49 +0000 (16:59 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 20 Oct 2021 09:32:54 +0000 (11:32 +0200)
commit0af80a91b0a98891d3cbc891a7377281b4080035
tree75bb9416ae047dc947fd0dd35f850bc55f7b73f9
parent142cf72442760ae8fc377bbfb54a913baf84742e
nft: Merge xtables-arp-standalone.c into xtables-standalone.c

By declaring the relevant family_ops callbacks for arptables, the code
becomes ready to just use do_commandx() instead of a dedicated parser.

As a side-effect, this enables a bunch of new features in arptables-nft:

* Support '-C' command
* Support '-S' command
* Support rule indexes just like xtables, e.g. in '-I' or '-R' commands
* Reject chain names starting with '!'
* Support '-c N,M' counter syntax

Since arptables still accepts intrapositioned negations, add code to
cover that but print a warning like iptables did 12 years ago prior to
removing the functionality.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/Makefile.am
iptables/nft-arp.c
iptables/xtables-arp-standalone.c [deleted file]
iptables/xtables-arp.c
iptables/xtables-restore.c
iptables/xtables-standalone.c
iptables/xtables.c