Files
linux/include/uapi/linux
Jiri Bohac d3f24f9bb0 ICMPv6: treat dest unreachable codes 5 and 6 as EACCES, not EPROTO
[ Upstream commit 61e76b178d ]

RFC 4443 has defined two additional codes for ICMPv6 type 1 (destination
unreachable) messages:
        5 - Source address failed ingress/egress policy
	6 - Reject route to destination

Now they are treated as protocol error and icmpv6_err_convert() converts them
to EPROTO.

RFC 4443 says:
	"Codes 5 and 6 are more informative subsets of code 1."

Treat codes 5 and 6 as code 1 (EACCES)

Btw, connect() returning -EPROTO confuses firefox, so that fallback to
other/IPv4 addresses does not work:
https://bugzilla.mozilla.org/show_bug.cgi?id=910773

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2013-09-30 15:57:52 -07:00
..
2012-12-21 20:23:36 +00:00
2012-10-16 18:49:15 -07:00
2012-10-31 14:00:15 -04:00
2012-10-16 13:36:58 -04:00
2013-07-30 11:31:25 -07:00
2012-12-03 15:07:36 -05:00
2012-11-15 10:13:52 +01:00
2012-11-16 10:15:35 -08:00
2013-04-05 09:26:18 -07:00
2012-12-17 17:15:22 -08:00
2012-10-22 15:16:06 -04:00
2013-04-05 09:26:18 -07:00