Skip to contentSkip to conversation

ip6: Add tests for icmpv6 packet types

PATCH Applied Shivani Bhardwaj 2 participants 2 messages Jan 18, 2016 – Jan 20, 2016 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip6: Add tests for icmpv6 packet types

Add tests for the icmpv6 packet types policy-fail and reject-route to be used with REJECT target.

---
 tests/regression/ip6/reject.t             | 2 ++
 tests/regression/ip6/reject.t.payload.ip6 | 8 ++++++++
 2 files changed, 10 insertions(+)
tests/regression/ip6/reject.t +2 -0
index 60dec90..925c976 100644
@@ -6,6 +6,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
tests/regression/ip6/reject.t.payload.ip6 +8 -0
index aa0b9ff..fcae382 100644
@@ -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 ]
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Shivani Bhardwaj

Add tests for the icmpv6 packet types policy-fail and reject-route to be used with REJECT target.

Applied, thanks Shivani.