]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Support SOCK_STREAM in unix_inet_redir_to_connected()
authorMichal Luczaj <mhal@rbox.co>
Sat, 13 Jul 2024 19:41:39 +0000 (21:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:35 +0000 (15:10 +0200)
commit87bd31cb7e7ad081e024dcf60cfdf23223a179f3
tree57f41b6ceb13260d30aba222d148eb6f8af3219d
parent47c5117ac52668de6e4f62654766319edb8c967a
selftests/bpf: Support SOCK_STREAM in unix_inet_redir_to_connected()

[ Upstream commit 1b0ad43177c097d38b967b99c2b71d8be28b0223 ]

Function ignores the AF_UNIX socket type argument, SOCK_DGRAM is hardcoded.
Fix to respect the argument provided.

Fixes: 75e0e27db6cf ("selftest/bpf: Change udp to inet in some function names")
Suggested-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Jakub Sitnicki <jakub@cloudflare.com>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/20240713200218.2140950-3-mhal@rbox.co
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c