rxrpc: Use IPv4 addresses throught the IPv6
authorDavid Howells <dhowells@redhat.com>
Thu, 4 Oct 2018 08:32:28 +0000 (09:32 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 4 Oct 2018 08:32:28 +0000 (09:32 +0100)
commit46894a13599a977ac35411b536fb3e0b2feefa95
tree7900ce31700b2b9c23528fd844f65c10c6010bb6
parent66be646bd9a7d50961afbf48c1d0df148e37d416
rxrpc: Use IPv4 addresses throught the IPv6

AF_RXRPC opens an IPv6 socket through which to send and receive network
packets, both IPv6 and IPv4.  It currently turns AF_INET addresses into
AF_INET-as-AF_INET6 addresses based on an assumption that this was
necessary; on further inspection of the code, however, it turns out that
the IPv6 code just farms packets aimed at AF_INET addresses out to the IPv4
code.

Fix AF_RXRPC to use AF_INET addresses directly when given them.

Fixes: 7b674e390e51 ("rxrpc: Fix IPv6 support")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/addr_list.c
net/rxrpc/af_rxrpc.c
net/rxrpc/conn_object.c
net/rxrpc/peer_event.c
net/rxrpc/utils.c