Searched refs:passive_fd (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
H A D | tcp_hdr_options.c | 37 int passive_fd; member 70 close(sk_fds->passive_fd); in sk_fds_close() 79 ret = read(sk_fds->passive_fd, &abyte, sizeof(abyte)); in sk_fds_shutdown() 83 shutdown(sk_fds->passive_fd, SHUT_WR); in sk_fds_shutdown() 124 sk_fds->passive_fd = accept(sk_fds->srv_fd, NULL, 0); in sk_fds_connect() 125 if (!ASSERT_NEQ(sk_fds->passive_fd, -1, "accept(srv_fd)")) in sk_fds_connect() 132 ret = read(sk_fds->passive_fd, bytes_in, sizeof(bytes_in)); in sk_fds_connect() 134 close(sk_fds->passive_fd); in sk_fds_connect() 220 if (check_hdr_stg(&exp_passive_hdr_stg, sk_fds->passive_fd, in check_hdr_and_close_fds() 487 ret = read(sk_fds.passive_fd, recv_msg, sizeof(recv_msg)); in misc()
|