]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: MARK: fix arptables support
authorFlorian Westphal <fw@strlen.de>
Tue, 7 Nov 2023 11:15:40 +0000 (12:15 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 7 Nov 2023 22:40:14 +0000 (23:40 +0100)
commita3ae0dc4b34046e0d7893841e86b93c4c010632f
tree36aaee979fcb94cd57b932773d376356e0648bfa
parent50f40b2c05e11ab0276b2dd6d860855968358bb5
extensions: MARK: fix arptables support

arptables "--set-mark" is really just "--or-mark".
This bug is also in arptables-legacy.

Fix this and add test cases.
Note that the test for "16" vs. "0x16" is intentional,
arptables parser is buggy and always uses "%x".

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_MARK.c
extensions/libxt_MARK.txlate