diff options
author | 2023-12-19 09:18:22 +0900 | |
---|---|---|
committer | 2023-12-22 22:15:34 +0000 | |
commit | 5e07e672412bed473122813ab35d4f7d42fd9635 (patch) | |
tree | 2e6ba8fd7d45e569c3a9cdc024c31983835d823f /.gitignore | |
parent | selftests/net: Fix various spelling mistakes in TCP-AO tests (diff) | |
download | linux-5e07e672412bed473122813ab35d4f7d42fd9635.tar.gz linux-5e07e672412bed473122813ab35d4f7d42fd9635.tar.bz2 linux-5e07e672412bed473122813ab35d4f7d42fd9635.zip |
tcp: Use bhash2 for v4-mapped-v6 non-wildcard address.
While checking port availability in bind() or listen(), we used only
bhash for all v4-mapped-v6 addresses. But there is no good reason not
to use bhash2 for v4-mapped-v6 non-wildcard addresses.
Let's do it by returning true in inet_use_bhash2_on_bind(). Then, we
also need to add a test in inet_bind2_bucket_match_addr_any() so that
::ffff:X.X.X.X will match with 0.0.0.0.
Note that sk->sk_rcv_saddr is initialised for v4-mapped-v6 sk in
__inet6_bind().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions