]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7df4bf0ea3616f9b8a63d642c63ac8db0f5df0f
tree7900ce31700b2b9c23528fd844f65c10c6010bb6
parent5b6e3a2310f204dd187f5bd1b0da756948786474
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: 9b81238618bc ("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