forked from luck/tmp_suning_uos_patched
rxrpc: Map the EACCES error produced by some ICMP6 to EHOSTUNREACH
Map the EACCES error that is produced by some ICMP6 packets to EHOSTUNREACH when we get them as EACCES has other meanings within a filesystem context. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
3f19b2ab97
commit
23e2db311a
|
@ -271,6 +271,9 @@ static void rxrpc_store_error(struct rxrpc_peer *peer,
|
|||
break;
|
||||
|
||||
case SO_EE_ORIGIN_ICMP6:
|
||||
if (err == EACCES)
|
||||
err = EHOSTUNREACH;
|
||||
/* Fall through */
|
||||
default:
|
||||
_proto("Rx Received error report { orig=%u }", ee->ee_origin);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user