summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/icmpX.t.payload
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-10-19 01:58:47 +0200
committerFlorian Westphal <fw@strlen.de>2017-10-26 23:46:10 +0200
commitf94c2f69102fc5249ee18565fa6ad3bd4b82441e (patch)
treee353e179d9b1e62728008e2ce7c2db105e11c4e3 /tests/py/inet/icmpX.t.payload
parent07da331f27f9331475cdf685ec27fef42a6887d5 (diff)
tests: add test case that checks icmp6 in-ipv4
nft does not handle this correctly. This test fails. In: inet input ip protocol ipv6-icmp meta l4proto ipv6-icmp icmpv6 type 1 Out: meta l4proto 58 icmpv6 type destination-unreachable which loses the "ipv4" dependency, i.e. listing should show the rule as-is. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/inet/icmpX.t.payload')
-rw-r--r--tests/py/inet/icmpX.t.payload10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/inet/icmpX.t.payload b/tests/py/inet/icmpX.t.payload
index 7c5f6f01..9a761eef 100644
--- a/tests/py/inet/icmpX.t.payload
+++ b/tests/py/inet/icmpX.t.payload
@@ -34,3 +34,13 @@ inet test-inet input
[ payload load 1b @ transport header + 0 => reg 1 ]
[ cmp eq reg 1 0x00000080 ]
+# ip protocol ipv6-icmp meta l4proto ipv6-icmp icmpv6 type 1
+inet filter input
+ [ meta load nfproto => reg 1 ]
+ [ cmp eq reg 1 0x00000002 ]
+ [ payload load 1b @ network header + 9 => reg 1 ]
+ [ cmp eq reg 1 0x0000003a ]
+ [ meta load l4proto => reg 1 ]
+ [ cmp eq reg 1 0x0000003a ]
+ [ payload load 1b @ transport header + 0 => reg 1 ]
+ [ cmp eq reg 1 0x00000001 ]