Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dbtf_skc_cls_ingress.c93 int listen_fd = -1, cli_fd = -1, err; in test_conn() local
100 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_conn()
101 if (CHECK_FAIL(listen_fd == -1)) in test_conn()
104 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_conn()
111 cli_fd = connect_to_fd(listen_fd, 0); in test_conn()
133 if (listen_fd != -1) in test_conn()
134 close(listen_fd); in test_conn()
141 int listen_fd = -1, cli_fd = -1, err; in test_syncookie() local
149 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_syncookie()
150 if (CHECK_FAIL(listen_fd == -1)) in test_syncookie()
[all …]
Dsock_fields.c261 int listen_fd = -1, cli_fd = -1, accept_fd = -1, err, i; in test() local
266 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test()
268 if (CHECK_FAIL(listen_fd == -1)) in test()
271 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test()
277 cli_fd = connect_to_fd(listen_fd, 0); in test()
286 accept_fd = accept(listen_fd, NULL, NULL); in test()
328 if (listen_fd != -1) in test()
329 close(listen_fd); in test()