diff options
author | Alexey Kodanev <alexey.kodanev@oracle.com> | 2019-01-16 17:17:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-18 00:01:08 +0100 |
commit | f7c46156f4a9d6ba5c6bcc5c48945e87b0f08c65 (patch) | |
tree | e7bbbab79031f9e37fd7473a8db98fe73be118b5 /net/ipv6/udplite.c | |
parent | udp: add missing rehash callback to udplite (diff) | |
download | linux-f7c46156f4a9d6ba5c6bcc5c48945e87b0f08c65.tar.xz linux-f7c46156f4a9d6ba5c6bcc5c48945e87b0f08c65.zip |
udp6: add missing rehash callback to udplite
After commit 23b0269e58ae ("net: udp6: prefer listeners bound to an
address"), UDP-Lite only works when specifying a local address for
the sockets.
This is related to the problem addressed in the commit 719f835853a9
("udp: add rehash on connect()"). Moreover, __udp6_lib_lookup() now
looks for a socket immediately in the secondary hash table.
And this issue was found with LTP/network tests as well.
Fixes: 23b0269e58ae ("net: udp6: prefer listeners bound to an address")
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udplite.c')
-rw-r--r-- | net/ipv6/udplite.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/udplite.c b/net/ipv6/udplite.c index a125aebc29e5..f35907836444 100644 --- a/net/ipv6/udplite.c +++ b/net/ipv6/udplite.c @@ -49,6 +49,7 @@ struct proto udplitev6_prot = { .recvmsg = udpv6_recvmsg, .hash = udp_lib_hash, .unhash = udp_lib_unhash, + .rehash = udp_v6_rehash, .get_port = udp_v6_get_port, .memory_allocated = &udp_memory_allocated, .sysctl_mem = sysctl_udp_mem, |