Home
last modified time | relevance | path

Searched refs:accept_fd (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dtcpbpf_user.c49 int listen_fd = -1, cli_fd = -1, accept_fd = -1; in run_test() local
62 accept_fd = accept(listen_fd, NULL, NULL); in run_test()
63 if (!ASSERT_NEQ(accept_fd, -1, "accept(listen_fd)")) in run_test()
74 rv = recv(accept_fd, buf, 1000, 0); in run_test()
82 rv = send(accept_fd, buf, 500, 0); in run_test()
94 shutdown(accept_fd, SHUT_WR); in run_test()
100 err = recv(accept_fd, buf, 1, 0); in run_test()
103 if (accept_fd != -1) in run_test()
104 close(accept_fd); in run_test()
Dsock_fields.c211 static void check_sk_pkt_out_cnt(int accept_fd, int cli_fd) in check_sk_pkt_out_cnt() argument
218 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &accept_fd, &pkt_out_cnt); in check_sk_pkt_out_cnt()
220 err = bpf_map_lookup_elem(sk_pkt_out_cnt10_fd, &accept_fd, in check_sk_pkt_out_cnt()
276 int listen_fd = -1, cli_fd = -1, accept_fd = -1, err, i; in test() local
301 accept_fd = accept(listen_fd, NULL, NULL); in test()
302 if (CHECK(accept_fd == -1, "accept(listen_fd)", in test()
304 accept_fd, errno)) in test()
307 if (init_sk_storage(accept_fd, 0xeB9F)) in test()
314 err = send(accept_fd, DATA, DATA_LEN, MSG_EOR); in test()
326 err = recv(accept_fd, buf, 1, 0); in test()
[all …]
Dxdp_synproxy.c65 int server_fd = -1, client_fd = -1, accept_fd = -1; in test_synproxy() local
144 accept_fd = accept(server_fd, NULL, NULL); in test_synproxy()
145 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_synproxy()
164 if (accept_fd >= 0) in test_synproxy()
165 close(accept_fd); in test_synproxy()
Dtc_redirect.c284 int listen_fd = -1, accept_fd = -1, client_fd = -1; in test_tcp() local
306 accept_fd = accept(listen_fd, NULL, NULL); in test_tcp()
307 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_tcp()
310 if (!ASSERT_OK(settimeo(accept_fd, TIMEOUT_MILLIS), "settimeo")) in test_tcp()
317 n = read(accept_fd, buf, sizeof(buf)); in test_tcp()
325 if (accept_fd >= 0) in test_tcp()
326 close(accept_fd); in test_tcp()
440 int opt = 1, accept_fd = -1, client_fd = -1, listen_fd, err; in test_inet_dtime() local
481 accept_fd = accept(listen_fd, NULL, NULL); in test_inet_dtime()
482 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_inet_dtime()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Dudpgso_bench_rx.c145 int accept_fd = fd; in do_socket() local
147 if (listen(accept_fd, 1)) in do_socket()
150 do_poll(accept_fd, cfg_connect_timeout_ms); in do_socket()
154 fd = accept(accept_fd, NULL, NULL); in do_socket()
157 if (close(accept_fd)) in do_socket()