netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Vincent <simon.vincent@xsilon.com>
To: netdev@vger.kernel.org
Cc: Simon Vincent <simon.vincent@xsilon.com>
Subject: [PATCH net-next] icmp6: Add new icmpv6 type for RPL control message
Date: Mon,  6 Oct 2014 11:37:06 +0100	[thread overview]
Message-ID: <1412591826-32037-1-git-send-email-simon.vincent@xsilon.com> (raw)

IANA has defined a type value of 155 for RPL control messages.
We do nothing if we recieve one of these messages. This patch is to
avoid getting lots of icmpv6 unknown type messages when using RPL.

Signed-off-by: Simon Vincent <simon.vincent@xsilon.com>
---
 include/uapi/linux/icmpv6.h | 2 ++
 net/ipv6/icmp.c             | 1 +
 2 files changed, 3 insertions(+)

diff --git a/include/uapi/linux/icmpv6.h b/include/uapi/linux/icmpv6.h
index 590beda..0d493c1 100644
--- a/include/uapi/linux/icmpv6.h
+++ b/include/uapi/linux/icmpv6.h
@@ -107,6 +107,8 @@ struct icmp6hdr {
 #define ICMPV6_MOBILE_PREFIX_SOL	146
 #define ICMPV6_MOBILE_PREFIX_ADV	147
 
+#define ICMPV6_RPL_CONTROL		155
+
 /*
  *	Codes for Destination Unreachable
  */
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index 141e1f3..525ad3c 100644
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -774,6 +774,7 @@ static int icmpv6_rcv(struct sk_buff *skb)
 	case ICMPV6_DHAAD_REPLY:
 	case ICMPV6_MOBILE_PREFIX_SOL:
 	case ICMPV6_MOBILE_PREFIX_ADV:
+	case ICMPV6_RPL_CONTROL:
 		break;
 
 	default:
-- 
1.9.1

             reply	other threads:[~2014-10-06 10:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-06 10:37 Simon Vincent [this message]
2014-10-06 22:13 ` [PATCH net-next] icmp6: Add new icmpv6 type for RPL control message David Miller
2014-10-06 23:53   ` Hannes Frederic Sowa
2014-10-07 19:55     ` David Miller
2014-10-07 20:26       ` Hannes Frederic Sowa
2014-10-07 20:35         ` David Miller

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=1412591826-32037-1-git-send-email-simon.vincent@xsilon.com \
    --to=simon.vincent@xsilon.com \
    --cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).