netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] icmp6: Add new icmpv6 type for RPL control message
@ 2014-10-06 10:37 Simon Vincent
  2014-10-06 22:13 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Vincent @ 2014-10-06 10:37 UTC (permalink / raw)
  To: netdev; +Cc: Simon Vincent

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-07 20:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-06 10:37 [PATCH net-next] icmp6: Add new icmpv6 type for RPL control message Simon Vincent
2014-10-06 22:13 ` 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

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).