Lines Matching refs:accept_fd
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()
330 shutdown(accept_fd, SHUT_WR); in test()
335 check_sk_pkt_out_cnt(accept_fd, cli_fd); in test()
339 if (accept_fd != -1) in test()
340 close(accept_fd); in test()