Searched refs:srv_fd (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | tcp_hdr_options.c | 36 int srv_fd; member 92 close(sk_fds->srv_fd); in sk_fds_close() 124 sk_fds->srv_fd = start_server(AF_INET6, SOCK_STREAM, LO_ADDR6, 0, 0); in sk_fds_connect() 125 if (CHECK(sk_fds->srv_fd == -1, "start_server", "%s (%d)\n", in sk_fds_connect() 130 sk_fds->active_fd = fastopen_connect(sk_fds->srv_fd, fast, in sk_fds_connect() 133 sk_fds->active_fd = connect_to_fd(sk_fds->srv_fd, 0); in sk_fds_connect() 136 close(sk_fds->srv_fd); in sk_fds_connect() 141 if (CHECK(getsockname(sk_fds->srv_fd, (struct sockaddr *)&addr6, in sk_fds_connect() 154 sk_fds->passive_fd = accept(sk_fds->srv_fd, NULL, 0); in sk_fds_connect() 175 close(sk_fds->srv_fd); in sk_fds_connect()
|
D | select_reuseport.c | 408 int nev, srv_fd, cli_fd; in do_test() local 437 srv_fd = sk_fds[ev.data.u32]; in do_test() 439 int new_fd = accept(srv_fd, NULL, 0); in do_test() 453 nread = recv(srv_fd, &rcv_cmd, sizeof(rcv_cmd), MSG_DONTWAIT); in do_test()
|