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>
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
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 ]