Subject: [PATCH ] ipv6: handle the update of the NDISC_REDIRECT error code in icmpv6_err_convert

From: Duan Jiong <[email-masked]>
Date: Wed, 18 Sep 2013 20:04:48 +0800

From: Duan Jiong <[email-masked]>

when dealing with redirect message in udpv6_err() and
rawv6_err() the err shoud be assigned to 0, not EPROTO.

Signed-off-by: Duan Jiong <[email-masked]>
---
 net/ipv6/icmp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index eef8d94..795f348 100644
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -977,6 +977,9 @@ int icmpv6_err_convert(u8 type, u8 code, int *err)
 	case ICMPV6_TIME_EXCEED:
 		*err = EHOSTUNREACH;
 		break;
+	case NDISC_REDIRECT:
+		*err = 0;
+		break;
 	}
 
 	return fatal;
-- 
1.8.3.1