From 94829b2cbe8b84f403306ee909418d9112cff832 Mon Sep 17 00:00:00 2001 From: Hideaki Yoshifuji Date: Thu, 29 Jul 2004 20:07:10 +0900 Subject: [PATCH] [IPV6] add missing known icmpv6 types. Signed-off-by: Hideaki YOSHIFUJI --- include/linux/icmpv6.h | 9 +++++++++ net/ipv6/icmp.c | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/include/linux/icmpv6.h b/include/linux/icmpv6.h index ed8f6848f48c5..0cf6c8b12caf3 100644 --- a/include/linux/icmpv6.h +++ b/include/linux/icmpv6.h @@ -85,8 +85,17 @@ struct icmp6hdr { #define ICMPV6_MGM_QUERY 130 #define ICMPV6_MGM_REPORT 131 #define ICMPV6_MGM_REDUCTION 132 + +#define ICMPV6_NI_QUERY 139 +#define ICMPV6_NI_REPLY 140 + #define ICMPV6_MLD2_REPORT 143 +#define ICMPV6_DHAAD_REQUEST 144 +#define ICMPV6_DHAAD_REPLY 145 +#define ICMPV6_MOBILE_PREFIX_SOL 146 +#define ICMPV6_MOBILE_PREFIX_ADV 147 + /* * Codes for Destination Unreachable */ diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 739b490531560..4faafff32e7bc 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c @@ -646,7 +646,13 @@ static int icmpv6_rcv(struct sk_buff **pskb, unsigned int *nhoffp) break; case ICMPV6_MGM_REDUCTION: + case ICMPV6_NI_QUERY: + case ICMPV6_NI_REPLY: case ICMPV6_MLD2_REPORT: + case ICMPV6_DHAAD_REQUEST: + case ICMPV6_DHAAD_REPLY: + case ICMPV6_MOBILE_PREFIX_SOL: + case ICMPV6_MOBILE_PREFIX_ADV: break; default: -- 2.53.0