diff options
author | Florian Westphal <fw@strlen.de> | 2023-09-01 14:05:05 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-09-10 14:38:11 +0200 |
commit | b90b2482aa026ffbc9105348098094c4b09c1dc4 (patch) | |
tree | 8541681df16fbea35cba9dd30dfd05113f3188a4 /tests/shell/testcases/sets | |
parent | a270a354a2effbf0efd558e013be16b10658d8b6 (diff) |
tests/shell: typeof_integer/raw: prefer @nh for payload matching
@ih fails on kernels where payload expression doesn't support the 'inner'
base offset.
This test isn't about inner headers, so just use @nh which is
universally available.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/sets')
-rw-r--r-- | tests/shell/testcases/sets/dumps/typeof_raw_0.nft | 4 | ||||
-rwxr-xr-x | tests/shell/testcases/sets/typeof_raw_0 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/shell/testcases/sets/dumps/typeof_raw_0.nft b/tests/shell/testcases/sets/dumps/typeof_raw_0.nft index 499ff167..4d6abaaa 100644 --- a/tests/shell/testcases/sets/dumps/typeof_raw_0.nft +++ b/tests/shell/testcases/sets/dumps/typeof_raw_0.nft @@ -6,7 +6,7 @@ table inet t { } chain y { - ip saddr . @ih,32,32 { 1.1.1.1 . 0x14, 2.2.2.2 . 0x1e } - ip daddr . @ih,32,32 @y + ip saddr . @nh,32,32 { 1.1.1.1 . 0x14, 2.2.2.2 . 0x1e } + ip daddr . @nh,32,32 @y } } diff --git a/tests/shell/testcases/sets/typeof_raw_0 b/tests/shell/testcases/sets/typeof_raw_0 index 36396b5c..66042eb4 100755 --- a/tests/shell/testcases/sets/typeof_raw_0 +++ b/tests/shell/testcases/sets/typeof_raw_0 @@ -7,8 +7,8 @@ EXPECTED="table inet t { } chain y { - ip saddr . @ih,32,32 { 1.1.1.1 . 0x14, 2.2.2.2 . 0x1e } - ip daddr . @ih,32,32 @y + ip saddr . @nh,32,32 { 1.1.1.1 . 0x14, 2.2.2.2 . 0x1e } + ip daddr . @nh,32,32 @y } }" |