Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dcgroup_skb_sk_lookup.c11 int serv_sk = -1, in_sk = -1, serv_in_sk = -1, err; in run_lookup_test() local
16 serv_sk = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in run_lookup_test()
17 if (CHECK(serv_sk < 0, "start_server", "failed to start server\n")) in run_lookup_test()
20 err = getsockname(serv_sk, (struct sockaddr *)&addr, &addr_len); in run_lookup_test()
27 err = connect_fd_to_fd(out_sk, serv_sk, 1000); in run_lookup_test()
33 in_sk = connect_to_fd(serv_sk, 0); in run_lookup_test()
37 serv_in_sk = accept(serv_sk, NULL, NULL); in run_lookup_test()
44 close(serv_sk); in run_lookup_test()
Dtest_local_storage.c94 int err, serv_sk = -1, task_fd = -1, rm_fd = -1; in test_test_local_storage() local
154 serv_sk = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in test_test_local_storage()
155 if (!ASSERT_GE(serv_sk, 0, "start_server")) in test_test_local_storage()
161 serv_sk)) in test_test_local_storage()
168 close(serv_sk); in test_test_local_storage()