Home
last modified time | relevance | path

Searched refs:active_fd (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsk_storage_tracing.c50 int listen_fd = -1, passive_fd = -1, active_fd = -1, value = 1, err; in do_test() local
58 active_fd = connect_to_fd(listen_fd, 0); in do_test()
59 if (CHECK(active_fd == -1, "connect_to_fd", "active_fd:%d errno:%d\n", in do_test()
60 active_fd, errno)) in do_test()
64 &active_fd, &value, 0); in do_test()
73 shutdown(active_fd, SHUT_WR); in do_test()
79 err = read(active_fd, &abyte, 1); in do_test()
84 &active_fd, &value); in do_test()
92 err = check_sk_stg(active_fd, BPF_TCP_FIN_WAIT2); in do_test()
100 if (active_fd != -1) in do_test()
[all …]
Dtcp_hdr_options.c38 int active_fd; member
71 close(sk_fds->active_fd); in sk_fds_close()
78 shutdown(sk_fds->active_fd, SHUT_WR); in sk_fds_shutdown()
84 ret = read(sk_fds->active_fd, &abyte, sizeof(abyte)); in sk_fds_shutdown()
102 sk_fds->active_fd = fastopen_connect(sk_fds->srv_fd, fast, in sk_fds_connect()
105 sk_fds->active_fd = connect_to_fd(sk_fds->srv_fd, 0); in sk_fds_connect()
107 if (!ASSERT_NEQ(sk_fds->active_fd, -1, "")) { in sk_fds_connect()
119 if (!ASSERT_OK(getsockname(sk_fds->active_fd, (struct sockaddr *)&addr6, in sk_fds_connect()
142 close(sk_fds->active_fd); in sk_fds_connect()
224 if (check_hdr_stg(&exp_active_hdr_stg, sk_fds->active_fd, in check_hdr_and_close_fds()
[all …]