From 1e173590ef999f110f90112573f5c590088165b0 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 28 Mar 2018 10:38:06 +0200 Subject: 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 Signed-off-by: Florian Westphal --- tests/py/ip/meta.t.payload | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/py/ip/meta.t.payload') 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 ] + -- cgit v1.2.3