]> www.infradead.org Git - users/dwmw2/linux.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)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 17 Jul 2024 20:51:45 +0000 (22:51 +0200)
commit1b0ad43177c097d38b967b99c2b71d8be28b0223
treed761807f5083c5ee76e7ade2d22fc81d146d8b0f
parent638f32604385fd23059985da8de918e9c18f0b98
selftests/bpf: Support SOCK_STREAM in unix_inet_redir_to_connected()

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
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c