Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dsk_assign.c130 rcv_msg(int srv_client, int type) in rcv_msg() argument
137 return read(srv_client, &buf, sizeof(buf)); in rcv_msg()
139 return recvfrom(srv_client, &buf, sizeof(buf), 0, in rcv_msg()
146 int client = -1, srv_client = -1; in run_test() local
158 srv_client = accept(server_fd, NULL, NULL); in run_test()
159 if (CHECK_FAIL(srv_client == -1)) { in run_test()
164 srv_client = server_fd; in run_test()
170 if (CHECK_FAIL(rcv_msg(srv_client, type) != sizeof(buf))) { in run_test()
175 port = get_port(srv_client); in run_test()
196 if (srv_client != server_fd) in run_test()
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/
Dtest_tcp_check_syncookie_user.c123 int client = -1, srv_client = -1; in run_test() local
151 srv_client = accept(server_fd, NULL, 0); in run_test()
152 if (srv_client == -1) { in run_test()
200 close(srv_client); in run_test()