diff options
author | Phil Sutter <phil@nwl.cc> | 2019-01-31 16:12:51 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-01-31 22:53:07 +0100 |
commit | f7fa88020f3bc4ec646ce2a48731a1f5fa2aa0a9 (patch) | |
tree | 59e2a861245a433237c1956639f96ab0e50685b7 /iptables/tests | |
parent | 043bf38bc9ee020bbf1a9789773050d47f83b807 (diff) |
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>
Diffstat (limited to 'iptables/tests')
-rwxr-xr-x | iptables/tests/shell/testcases/arptables/0001-arptables-save-restore_0 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/tests/shell/testcases/arptables/0001-arptables-save-restore_0 b/iptables/tests/shell/testcases/arptables/0001-arptables-save-restore_0 index 73b3b0cf..f8629551 100755 --- a/iptables/tests/shell/testcases/arptables/0001-arptables-save-restore_0 +++ b/iptables/tests/shell/testcases/arptables/0001-arptables-save-restore_0 @@ -47,7 +47,7 @@ DUMP='*filter -A OUTPUT -o eth432 --h-length 6 --opcode 1 --h-type 1 -j CLASSIFY --set-class feed:babe -A foo -i lo --h-length 6 --h-type 1 -j ACCEPT -A foo --h-length 6 --h-type 1 -j ACCEPT --A foo --h-length 6 --h-type 1 -j MARK --set-xmark 0x3039/0xffffffff +-A foo --h-length 6 --h-type 1 -j MARK --set-mark 12345 -A foo --h-length 6 --opcode 1 --h-type 1 -j ACCEPT -A foo --h-length 6 --h-type 1 --proto-type 0x800 -j ACCEPT -A foo -i lo --h-length 6 --opcode 1 --h-type 1 --proto-type 0x800 -j ACCEPT |