Searched refs:accept_fd (Results 1 - 4 of 4) sorted by relevance
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | tcpbpf_user.c | 49 int listen_fd = -1, cli_fd = -1, accept_fd = -1; local 62 accept_fd = accept(listen_fd, NULL, NULL); 63 if (!ASSERT_NEQ(accept_fd, -1, "accept(listen_fd)")) 66 /* Send 1000B of '+'s from cli_fd -> accept_fd */ 74 rv = recv(accept_fd, buf, 1000, 0); 75 if (!ASSERT_EQ(rv, 1000, "recv(accept_fd)")) 78 /* Send 500B of '.'s from accept_fd ->cli_fd */ 82 rv = send(accept_fd, buf, 500, 0); 83 if (!ASSERT_EQ(rv, 500, "send(accept_fd)")) 94 shutdown(accept_fd, SHUT_W [all...] |
H A D | sock_fields.c | 211 static void check_sk_pkt_out_cnt(int accept_fd, int cli_fd) argument 218 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &accept_fd, &pkt_out_cnt); 220 err = bpf_map_lookup_elem(sk_pkt_out_cnt10_fd, &accept_fd, 230 "bpf_map_lookup_elem(sk_pkt_out_cnt, &accept_fd)", 276 int listen_fd = -1, cli_fd = -1, accept_fd = -1, err, i; local 301 accept_fd = accept(listen_fd, NULL, NULL); 302 if (CHECK(accept_fd == -1, "accept(listen_fd)", 303 "accept_fd:%d errno:%d\n", 304 accept_fd, errno)) 307 if (init_sk_storage(accept_fd, [all...] |
H A D | tc_redirect.c | 394 int listen_fd = -1, accept_fd = -1, client_fd = -1; local 416 accept_fd = accept(listen_fd, NULL, NULL); 417 if (!ASSERT_GE(accept_fd, 0, "accept")) 420 if (!ASSERT_OK(settimeo(accept_fd, TIMEOUT_MILLIS), "settimeo")) 427 n = read(accept_fd, buf, sizeof(buf)); 435 if (accept_fd >= 0) 436 close(accept_fd); 610 int opt = 1, accept_fd = -1, client_fd = -1, listen_fd, err; local 651 accept_fd = accept(listen_fd, NULL, NULL); 652 if (!ASSERT_GE(accept_fd, [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | udpgso_bench_rx.c | 145 int accept_fd = fd; local 147 if (listen(accept_fd, 1)) 150 do_poll(accept_fd, cfg_connect_timeout_ms); 154 fd = accept(accept_fd, NULL, NULL); 157 if (close(accept_fd))
|
Completed in 108 milliseconds