Searched refs:accept_fd (Results 1 – 4 of 4) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | tcpbpf_user.c | 53 int listen_fd = -1, cli_fd = -1, accept_fd = -1; in run_test() local 68 accept_fd = accept(listen_fd, NULL, NULL); in run_test() 69 if (CHECK(accept_fd == -1, "accept(listen_fd)", in run_test() 70 "accept_fd:%d errno:%d\n", accept_fd, errno)) in run_test() 81 rv = recv(accept_fd, buf, 1000, 0); in run_test() 89 rv = send(accept_fd, buf, 500, 0); in run_test() 101 shutdown(accept_fd, SHUT_WR); in run_test() 107 err = recv(accept_fd, buf, 1, 0); in run_test() 110 if (accept_fd != -1) in run_test() 111 close(accept_fd); in run_test()
|
D | sock_fields.c | 212 static void check_sk_pkt_out_cnt(int accept_fd, int cli_fd) in check_sk_pkt_out_cnt() argument 219 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &accept_fd, &pkt_out_cnt); in check_sk_pkt_out_cnt() 221 err = bpf_map_lookup_elem(sk_pkt_out_cnt10_fd, &accept_fd, in check_sk_pkt_out_cnt() 277 int listen_fd = -1, cli_fd = -1, accept_fd = -1, err, i; in test() local 302 accept_fd = accept(listen_fd, NULL, NULL); in test() 303 if (CHECK(accept_fd == -1, "accept(listen_fd)", in test() 305 accept_fd, errno)) in test() 308 if (init_sk_storage(accept_fd, 0xeB9F)) in test() 315 err = send(accept_fd, DATA, DATA_LEN, MSG_EOR); in test() 327 err = recv(accept_fd, buf, 1, 0); in test() [all …]
|
D | tc_redirect.c | 353 int listen_fd = -1, accept_fd = -1, client_fd = -1; in test_tcp() local 375 accept_fd = accept(listen_fd, NULL, NULL); in test_tcp() 376 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_tcp() 379 if (!ASSERT_OK(settimeo(accept_fd, TIMEOUT_MILLIS), "settimeo")) in test_tcp() 386 n = read(accept_fd, buf, sizeof(buf)); in test_tcp() 394 if (accept_fd >= 0) in test_tcp() 395 close(accept_fd); in test_tcp()
|
/tools/testing/selftests/net/ |
D | udpgso_bench_rx.c | 145 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()
|