]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
ip6: Add tests for icmpv6 packet types
authorShivani Bhardwaj <shivanib134@gmail.com>
Mon, 18 Jan 2016 19:14:48 +0000 (00:44 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 31 Jan 2016 21:32:18 +0000 (22:32 +0100)
Add tests for the icmpv6 packet types policy-fail and reject-route to be
used with REJECT target.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/ip6/reject.t
tests/py/ip6/reject.t.payload.ip6

index 2979956598ac89cc7989a1f575016d55151d43ef..7d21aa8ef1602394e3d5fefac5ad382f16675dc0 100644 (file)
@@ -7,6 +7,8 @@ reject with icmpv6 type no-route;ok
 reject with icmpv6 type admin-prohibited;ok
 reject with icmpv6 type addr-unreachable;ok
 reject with icmpv6 type port-unreachable;ok;reject
+reject with icmpv6 type policy-fail;ok
+reject with icmpv6 type reject-route;ok
 reject with tcp reset;ok;ip6 nexthdr 6 reject with tcp reset
 
 reject with icmpv6 type host-unreachable;fail
index aa0b9ff2dbd34b349efd5a23a2575f772ae375f5..fcae382b89c665fbe986cbd16f6572a999d7d44d 100644 (file)
@@ -18,6 +18,14 @@ ip6 test-ip6 output
 ip6 test-ip6 output
   [ reject type 0 code 4 ]
 
+# reject with icmpv6 type policy-fail
+ip6 test-ip6 output
+  [ reject type 0 code 5 ]
+
+# reject with icmpv6 type reject-route
+ip6 test-ip6 output
+  [ reject type 0 code 6 ]
+
 # reject with tcp reset
 ip6 test-ip6 output
   [ payload load 1b @ network header + 6 => reg 1 ]