aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeliang Tang <tanggeliang@kylinos.cn>2024-04-21 19:58:13 +0800
committerGeliang Tang <tanggeliang@kylinos.cn>2024-04-21 20:27:37 +0800
commitbeec38433e788567defbaafe91481e7bfe69976f (patch)
tree5403e478f4f73195e21b2628a423cf1b3c3885c4
parent3096999b91cbf6a86e35aa5057551498edb5d510 (diff)
downloadmptcp_net-next-beec38433e788567defbaafe91481e7bfe69976f.tar.gz
selftests/bpf: Drop start_server_proto helper
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
-rw-r--r--tools/testing/selftests/bpf/network_helpers.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/testing/selftests/bpf/network_helpers.c b/tools/testing/selftests/bpf/network_helpers.c
index 4f16f7d6ce3fb3..1519f02f80909c 100644
--- a/tools/testing/selftests/bpf/network_helpers.c
+++ b/tools/testing/selftests/bpf/network_helpers.c
@@ -120,12 +120,11 @@ error_close:
return -1;
}
-static int start_server_proto(int family, int type, int protocol,
- const char *addr_str, __u16 port, int timeout_ms)
+int start_server(int family, int type, const char *addr_str, __u16 port,
+ int timeout_ms)
{
struct network_helper_opts opts = {
.timeout_ms = timeout_ms,
- .proto = protocol,
};
struct sockaddr_storage addr;
socklen_t addrlen;
@@ -136,12 +135,6 @@ static int start_server_proto(int family, int type, int protocol,
return __start_server(type, (struct sockaddr *)&addr, addrlen, false, &opts);
}
-int start_server(int family, int type, const char *addr_str, __u16 port,
- int timeout_ms)
-{
- return start_server_proto(family, type, 0, addr_str, port, timeout_ms);
-}
-
int *start_reuseport_server(int family, int type, const char *addr_str,
__u16 port, int timeout_ms, unsigned int nr_listens)
{