Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsk_assign.c146 rcv_msg(int srv_client, int type) in rcv_msg() argument
151 return read(srv_client, &buf, sizeof(buf)); in rcv_msg()
153 return recvfrom(srv_client, &buf, sizeof(buf), 0, NULL, NULL); in rcv_msg()
159 int client = -1, srv_client = -1; in run_test() local
171 srv_client = accept(server_fd, NULL, NULL); in run_test()
172 if (CHECK_FAIL(srv_client == -1)) { in run_test()
177 srv_client = server_fd; in run_test()
183 if (CHECK_FAIL(rcv_msg(srv_client, type) != sizeof(buf))) { in run_test()
188 port = get_port(srv_client); in run_test()
209 if (srv_client != server_fd) in run_test()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A 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()