All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shivani Bhardwaj <shivanib134@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH] ip6: Add tests for icmpv6 packet types
Date: Tue, 19 Jan 2016 00:44:48 +0530	[thread overview]
Message-ID: <20160118191448.GA10814@gmail.com> (raw)

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>
---
 tests/regression/ip6/reject.t             | 2 ++
 tests/regression/ip6/reject.t.payload.ip6 | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/tests/regression/ip6/reject.t b/tests/regression/ip6/reject.t
index 60dec90..925c976 100644
--- a/tests/regression/ip6/reject.t
+++ b/tests/regression/ip6/reject.t
@@ -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
diff --git a/tests/regression/ip6/reject.t.payload.ip6 b/tests/regression/ip6/reject.t.payload.ip6
index aa0b9ff..fcae382 100644
--- a/tests/regression/ip6/reject.t.payload.ip6
+++ b/tests/regression/ip6/reject.t.payload.ip6
@@ -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 ]
-- 
1.9.1


             reply	other threads:[~2016-01-18 19:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-18 19:14 Shivani Bhardwaj [this message]
2016-01-20 13:54 ` [PATCH] ip6: Add tests for icmpv6 packet types Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160118191448.GA10814@gmail.com \
    --to=shivanib134@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.