diff options
author | Daniel Xu <dxu@dxuuu.xyz> | 2023-07-21 14:22:47 -0600 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-07-28 16:52:08 -0700 |
commit | 3495e89cdc3ab71719bd88c03dbd624c49ee70d2 (patch) | |
tree | 727640b34ec95de06b64d149ed1b96d2581fd984 /tools/testing/selftests/bpf/network_helpers.h | |
parent | 91721c2d02d3a0141df8a4787c7079b89b0d0607 (diff) |
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>
Diffstat (limited to 'tools/testing/selftests/bpf/network_helpers.h')
-rw-r--r-- | tools/testing/selftests/bpf/network_helpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/network_helpers.h b/tools/testing/selftests/bpf/network_helpers.h index 694185644da6..87894dc984dd 100644 --- a/tools/testing/selftests/bpf/network_helpers.h +++ b/tools/testing/selftests/bpf/network_helpers.h @@ -21,6 +21,7 @@ struct network_helper_opts { const char *cc; int timeout_ms; bool must_fail; + bool noconnect; }; /* ipv4 test vector */ |