diff options
author | David Howells <dhowells@redhat.com> | 2018-05-10 23:26:00 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-05-10 23:26:00 +0100 |
commit | f2aeed3a591ff29a82495eeaa92ac4780bad7487 (patch) | |
tree | c92adff145aee3ca0a9b29400171eedb6f98210d /scripts | |
parent | c54e43d752c7187595c8c62a231e0b0d53c7fded (diff) | |
download | linux-f2aeed3a591ff29a82495eeaa92ac4780bad7487.tar.bz2 |
rxrpc: Fix error reception on AF_INET6 sockets
AF_RXRPC tries to turn on IP_RECVERR and IP_MTU_DISCOVER on the UDP socket
it just opened for communications with the outside world, regardless of the
type of socket. Unfortunately, this doesn't work with an AF_INET6 socket.
Fix this by turning on IPV6_RECVERR and IPV6_MTU_DISCOVER instead if the
socket is of the AF_INET6 family.
Without this, kAFS server and address rotation doesn't work correctly
because the algorithm doesn't detect received network errors.
Fixes: 75b54cb57ca3 ("rxrpc: Add IPv6 support")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions