Home
last modified time | relevance | path

Searched refs:server_fd (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/tools/testing/selftests/net/
Dtcp_inq.c71 int server_fd = (int)(unsigned long)arg; in start_server() local
81 fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen); in start_server()
102 close(server_fd); in start_server()
115 int server_fd, fd; in main() local
134 server_fd = socket(family, SOCK_STREAM, 0); in main()
135 if (server_fd < 0) in main()
138 if (setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, in main()
141 if (bind(server_fd, (const struct sockaddr *)&listen_addr, in main()
144 if (listen(server_fd, 128) == -1) in main()
147 (void *)(unsigned long)server_fd) != 0) in main()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_socket_cookie.c56 static int connect_to_server(int server_fd) in connect_to_server() argument
68 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
143 int server_fd = -1; in run_test() local
178 server_fd = start_server(); in run_test()
179 if (server_fd == -1) in run_test()
182 client_fd = connect_to_server(server_fd); in run_test()
194 close(server_fd); in run_test()