[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <523996E0.9080702@cn.fujitsu.com>
Date: Wed, 18 Sep 2013 20:04:48 +0800
From: Duan Jiong <duanj.fnst@...fujitsu.com>
To: David Miller <davem@...emloft.net>
CC: netdev@...r.kernel.org, hannes@...essinduktion.org
Subject: [PATCH ] ipv6: handle the update of the NDISC_REDIRECT error code
in icmpv6_err_convert
From: Duan Jiong <duanj.fnst@...fujitsu.com>
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 <duanj.fnst@...fujitsu.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists