]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: icmpX: fix expected output
authorFlorian Westphal <fw@strlen.de>
Thu, 26 Oct 2017 12:26:41 +0000 (14:26 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 26 Oct 2017 21:46:10 +0000 (23:46 +0200)
both of these rules succeed, but they should fail instead.
nft removes the ip6 nexthdr' clause, but this is not correct, it is an
explicit test for the ipv6 nexthdr value.

Implicit dependencies use meta l4proto to skip extension headers
(if any), ipv6 nexthdr does not.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/py/bridge/icmpX.t
tests/py/inet/icmpX.t

index 8c0a5979987162ad2e18a8181c1b8aca9d329bd0..4d7b9b0637aae456cbe56f8570a0f441dae202b1 100644 (file)
@@ -4,5 +4,5 @@
 
 ip protocol icmp icmp type echo-request;ok;icmp type echo-request
 icmp type echo-request;ok
-ip6 nexthdr icmpv6 icmpv6 type echo-request;ok;icmpv6 type echo-request
+ip6 nexthdr icmpv6 icmpv6 type echo-request;ok;ip6 nexthdr 58 icmpv6 type echo-request
 icmpv6 type echo-request;ok
index 1b467a18e764dae7343e6b8939a6ab73b27b24b3..aebaf0991d0c111ceea1ee8d9703d311fcc4c956 100644 (file)
@@ -4,5 +4,5 @@
 
 ip protocol icmp icmp type echo-request;ok;icmp type echo-request
 icmp type echo-request;ok
-ip6 nexthdr icmpv6 icmpv6 type echo-request;ok;icmpv6 type echo-request
+ip6 nexthdr icmpv6 icmpv6 type echo-request;ok;ip6 nexthdr 58 icmpv6 type echo-request
 icmpv6 type echo-request;ok