Searched refs:client_fd (Results 1 – 6 of 6) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
| D | sockopt_inherit.c | 70 int client_fd; in server_thread() local 88 client_fd = accept(fd, (struct sockaddr *)&addr, &len); in server_thread() 89 if (CHECK_FAIL(client_fd < 0)) { in server_thread() 94 err += verify_sockopt(client_fd, CUSTOM_INHERIT1, "accept", 1); in server_thread() 95 err += verify_sockopt(client_fd, CUSTOM_INHERIT2, "accept", 1); in server_thread() 96 err += verify_sockopt(client_fd, CUSTOM_LISTENER, "accept", 0); in server_thread() 98 close(client_fd); in server_thread() 173 int server_fd = -1, client_fd; in run_test() local 204 client_fd = connect_to_server(server_fd); in run_test() 205 if (CHECK_FAIL(client_fd < 0)) in run_test() [all …]
|
| D | tcp_rtt.c | 45 static int verify_sk(int map_fd, int client_fd, const char *msg, __u32 invoked, in verify_sk() argument 52 if (CHECK_FAIL(bpf_map_lookup_elem(map_fd, &client_fd, &val) < 0)) { in verify_sk() 128 int client_fd; in run_test() local 148 client_fd = connect_to_server(server_fd); in run_test() 149 if (client_fd < 0) { in run_test() 154 err += verify_sk(map_fd, client_fd, "syn-ack", in run_test() 161 send_byte(client_fd); in run_test() 162 if (wait_for_ack(client_fd, 100) < 0) { in run_test() 168 err += verify_sk(map_fd, client_fd, "first payload byte", in run_test() 176 close(client_fd); in run_test() [all …]
|
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | test_socket_cookie.c | 92 static int validate_map(struct bpf_map *map, int client_fd) in validate_map() argument 108 err = bpf_map_lookup_elem(map_fd, &client_fd, &val); in validate_map() 110 err = getsockname(client_fd, (struct sockaddr *)&addr, &len); in validate_map() 138 int client_fd = -1; in run_test() local 171 client_fd = connect_to_server(server_fd); in run_test() 172 if (client_fd == -1) in run_test() 175 if (validate_map(bpf_map__next(NULL, pobj), client_fd)) in run_test() 182 close(client_fd); in run_test()
|
| /Linux-v5.4/tools/testing/selftests/android/ion/ |
| D | ionapp_export.c | 32 int sockfd, client_fd, shared_fd; in main() local 102 client_fd = info.ionfd; in main() 109 printf("Sharing fd: %d, Client fd: %d\n", shared_fd, client_fd); in main()
|
| /Linux-v5.4/tools/testing/vsock/ |
| D | vsock_diag_test.c | 453 int client_fd; in test_connect_server() local 471 client_fd = accept(fd, &clientaddr.sa, &clientaddr_len); in test_connect_server() 473 } while (client_fd < 0 && errno == EINTR); in test_connect_server() 476 if (client_fd < 0) { in test_connect_server() 495 st = find_vsock_stat(&sockets, client_fd); in test_connect_server() 501 close(client_fd); in test_connect_server()
|
| /Linux-v5.4/fs/notify/fanotify/ |
| D | fanotify_user.c | 103 int client_fd; in create_fd() local 108 client_fd = get_unused_fd_flags(group->fanotify_data.f_flags); in create_fd() 109 if (client_fd < 0) in create_fd() 110 return client_fd; in create_fd() 132 put_unused_fd(client_fd); in create_fd() 133 client_fd = PTR_ERR(new_file); in create_fd() 138 return client_fd; in create_fd()
|