bpf: selftests: Support not connecting client socket
authorDaniel Xu <dxu@dxuuu.xyz>
Fri, 21 Jul 2023 20:22:47 +0000 (14:22 -0600)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 28 Jul 2023 23:52:08 +0000 (16:52 -0700)
commit3495e89cdc3ab71719bd88c03dbd624c49ee70d2
tree727640b34ec95de06b64d149ed1b96d2581fd984
parent91721c2d02d3a0141df8a4787c7079b89b0d0607
bpf: selftests: Support not connecting client socket

For connectionless protocols or raw sockets we do not want to actually
connect() to the server.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/525c13d66dac2d640a1db922546842c051c6f2e6.1689970773.git.dxu@dxuuu.xyz
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/network_helpers.c
tools/testing/selftests/bpf/network_helpers.h