summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/meta.t.payload
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-03-28 10:38:06 +0200
committerFlorian Westphal <fw@strlen.de>2018-03-28 11:24:23 +0200
commit1e173590ef999f110f90112573f5c590088165b0 (patch)
tree407c9628114593fc8599d7e3c4cecad3814079a6 /tests/py/ip/meta.t.payload
parent126706c23c0458b07d54550dc27561b30f8a43f2 (diff)
proto: permit icmp-in-ipv6 and icmpv6-in-ipv4
Jozsef points out that meta l4proto icmp icmp type destination-unreachable is hard to read. So, lets just add icmp/icmpv6 to ip/ip6 protocol base so users can just go with icmp type destination-unreachable and let nft fill in needed dependency. After this patch, the recent patch to not remove the dependency can be reverted again. Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip/meta.t.payload')
-rw-r--r--tests/py/ip/meta.t.payload7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/py/ip/meta.t.payload b/tests/py/ip/meta.t.payload
index b186b4b5..322c0878 100644
--- a/tests/py/ip/meta.t.payload
+++ b/tests/py/ip/meta.t.payload
@@ -26,3 +26,10 @@ ip test-ip4 input
[ payload load 1b @ transport header + 0 => reg 1 ]
[ cmp eq reg 1 0x00000086 ]
+# icmpv6 type nd-router-advert
+ip test-ip4 input
+ [ meta load l4proto => reg 1 ]
+ [ cmp eq reg 1 0x0000003a ]
+ [ payload load 1b @ transport header + 0 => reg 1 ]
+ [ cmp eq reg 1 0x00000086 ]
+