Searched refs:passive_fd (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
| D | sk_storage_tracing.c | 50 int listen_fd = -1, passive_fd = -1, active_fd = -1, value = 1, err; in do_test() local 68 passive_fd = accept(listen_fd, NULL, 0); in do_test() 69 if (CHECK(passive_fd == -1, "accept", "passive_fd:%d errno:%d\n", in do_test() 70 passive_fd, errno)) in do_test() 74 err = read(passive_fd, &abyte, 1); in do_test() 78 shutdown(passive_fd, SHUT_WR); in do_test() 96 err = check_sk_stg(passive_fd, BPF_TCP_LAST_ACK); in do_test() 102 if (passive_fd != -1) in do_test() 103 close(passive_fd); in do_test()
|
| D | tcp_hdr_options.c | 37 int passive_fd; member 93 close(sk_fds->passive_fd); in sk_fds_close() 102 ret = read(sk_fds->passive_fd, &abyte, sizeof(abyte)); in sk_fds_shutdown() 108 shutdown(sk_fds->passive_fd, SHUT_WR); in sk_fds_shutdown() 154 sk_fds->passive_fd = accept(sk_fds->srv_fd, NULL, 0); in sk_fds_connect() 155 if (CHECK(sk_fds->passive_fd == -1, "accept(srv_fd)", "%s (%d)\n", in sk_fds_connect() 163 ret = read(sk_fds->passive_fd, bytes_in, sizeof(bytes_in)); in sk_fds_connect() 166 close(sk_fds->passive_fd); in sk_fds_connect() 256 if (check_hdr_stg(&exp_passive_hdr_stg, sk_fds->passive_fd, in check_hdr_and_close_fds() 524 ret = read(sk_fds.passive_fd, recv_msg, sizeof(recv_msg)); in misc()
|