Searched refs:accept_fd (Results 1 – 5 of 5) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tcpbpf_user.c | 49 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()
|
H A D | sock_fields.c | 211 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 …]
|
H A D | xdp_synproxy.c | 60 int server_fd = -1, client_fd = -1, accept_fd = -1; in test_synproxy() local 139 accept_fd = accept(server_fd, NULL, NULL); in test_synproxy() 140 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_synproxy() 159 if (accept_fd >= 0) in test_synproxy() 160 close(accept_fd); in test_synproxy()
|
H A D | tc_redirect.c | 409 int listen_fd = -1, accept_fd = -1, client_fd = -1; in test_tcp() local 431 accept_fd = accept(listen_fd, NULL, NULL); in test_tcp() 432 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_tcp() 435 if (!ASSERT_OK(settimeo(accept_fd, TIMEOUT_MILLIS), "settimeo")) in test_tcp() 442 n = read(accept_fd, buf, sizeof(buf)); in test_tcp() 450 if (accept_fd >= 0) in test_tcp() 451 close(accept_fd); in test_tcp() 625 int opt = 1, accept_fd = -1, client_fd = -1, listen_fd, err; in test_inet_dtime() local 666 accept_fd = accept(listen_fd, NULL, NULL); in test_inet_dtime() 667 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_inet_dtime() [all …]
|
/linux/tools/testing/selftests/net/ |
H A 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()
|