]> 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)
commit798b8920e7ff5bc170561ad6f7c273953696957e
tree7900ce31700b2b9c23528fd844f65c10c6010bb6
parent421a5f7f580b62c1850ae956d94fac516ae9a408
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: 99c81b0df6ef ("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