summaryrefslogtreecommitdiffstats
path: root/tests/shell
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2024-01-11 13:11:22 +0100
committerFlorian Westphal <fw@strlen.de>2024-01-12 13:04:28 +0100
commit9cc41467c75ab6beb35e0d7c34d04acd1a44861b (patch)
treeaea4dd6859153168a4e6514b50e32f3f9879e0c8 /tests/shell
parent172b660843501463a0894b0d2ca1dd48c898dc4d (diff)
payload: only assert if l2 header base has no length
nftables will assert in some cases because the sanity check is done even for network and transport header bases. However, stacked headers are only supported for the link layer. Move the assertion around and add a test case for this. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell')
-rw-r--r--tests/shell/testcases/bogons/nft-f/payload_expr_pctx_update_assert1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/nft-f/payload_expr_pctx_update_assert b/tests/shell/testcases/bogons/nft-f/payload_expr_pctx_update_assert
new file mode 100644
index 00000000..64bd596a
--- /dev/null
+++ b/tests/shell/testcases/bogons/nft-f/payload_expr_pctx_update_assert
@@ -0,0 +1 @@
+x x comp nexthdr comp