]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-arp: Don't use ARPT_INV_*
authorPhil Sutter <phil@nwl.cc>
Tue, 3 Nov 2020 11:21:29 +0000 (12:21 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 2 Dec 2020 23:27:51 +0000 (00:27 +0100)
commit44457c0805905ea22b4ecf9156648e774dd29155
tree644a0370fe42b930d5d6e333fadd80a9581b5d2d
parent1bdb5535f561a4e065d766f0f4f41067e31c7281
xtables-arp: Don't use ARPT_INV_*

Arptables invflags are partly identical to IPT_INV_* ones but the bits
are differently assigned. Eliminate this incompatibility by definition
of the unique invflags in nft-arp.h on bits that don't collide with
IPT_INV_* ones, then use those in combination with IPT_INV_* ones in
arptables-specific code.

Note that ARPT_INV_ARPPRO is replaced by IPT_INV_PROTO although these
are in fact different options - yet since '-p' option is not supported
by arptables, this does not lead to a collision.

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