netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ] ipv6: handle the update of the NDISC_REDIRECT error code in icmpv6_err_convert
@ 2013-09-18 12:04 Duan Jiong
  2013-09-18 16:36 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Duan Jiong @ 2013-09-18 12:04 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, hannes

From: Duan Jiong <duanj.fnst@cn.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@cn.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

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

end of thread, other threads:[~2013-09-19 18:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18 12:04 [PATCH ] ipv6: handle the update of the NDISC_REDIRECT error code in icmpv6_err_convert Duan Jiong
2013-09-18 16:36 ` David Miller
2013-09-18 18:00   ` Hannes Frederic Sowa
2013-09-19  5:24   ` Duan Jiong
2013-09-19 18:02     ` 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).