Searched refs:accept_fd (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | sock_fields.c | 196 static void check_sk_pkt_out_cnt(int accept_fd, int cli_fd) in check_sk_pkt_out_cnt() argument 203 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &accept_fd, &pkt_out_cnt); in check_sk_pkt_out_cnt() 205 err = bpf_map_lookup_elem(sk_pkt_out_cnt10_fd, &accept_fd, in check_sk_pkt_out_cnt() 261 int listen_fd = -1, cli_fd = -1, accept_fd = -1, err, i; in test() local 286 accept_fd = accept(listen_fd, NULL, NULL); in test() 287 if (CHECK(accept_fd == -1, "accept(listen_fd)", in test() 289 accept_fd, errno)) in test() 292 if (init_sk_storage(accept_fd, 0xeB9F)) in test() 299 err = send(accept_fd, DATA, DATA_LEN, MSG_EOR); in test() 311 err = recv(accept_fd, buf, 1, 0); in test() [all …]
|
/Linux-v5.10/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()
|