]> git.ipfire.org Git - thirdparty/iptables.git/commit
arptables-nft: Fix MARK target parsing and printing
authorPhil Sutter <phil@nwl.cc>
Thu, 31 Jan 2019 15:12:51 +0000 (16:12 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 31 Jan 2019 21:53:07 +0000 (22:53 +0100)
commitf7fa88020f3bc4ec646ce2a48731a1f5fa2aa0a9
tree59e2a861245a433237c1956639f96ab0e50685b7
parent043bf38bc9ee020bbf1a9789773050d47f83b807
arptables-nft: Fix MARK target parsing and printing

Legacy arptables parses mark values in hex no matter if prefixed with
'0x' or not. Sadly, this is not easily achievable with guided option
parser. Hence fall back to the old 'parse' callback. The introduced
target definition is valid only for revision 2, but that's consistent
with legacy arptables.

When printing, use --set-mark option instead of --set-xmark.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libxt_MARK.c
iptables/tests/shell/testcases/arptables/0001-arptables-save-restore_0