Searched refs:clientfd (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/tools/testing/selftests/bpf/ |
D | test_sock_addr.c | 1173 int clientfd = -1; in run_bind_test_case() local 1188 clientfd = connect_to_server(test->type, &expected_addr, addr_len); in run_bind_test_case() 1189 if (clientfd == -1) in run_bind_test_case() 1196 close(clientfd); in run_bind_test_case() 1207 int clientfd = -1; in run_connect_test_case() local 1220 clientfd = connect_to_server(test->type, &requested_addr, addr_len); in run_connect_test_case() 1221 if (clientfd == -1) in run_connect_test_case() 1225 if (cmp_peer_addr(clientfd, &expected_addr)) in run_connect_test_case() 1228 if (cmp_local_ip(clientfd, &expected_src_addr)) in run_connect_test_case() 1233 clientfd = fastconnect_to_server(&requested_addr, addr_len); in run_connect_test_case() [all …]
|
/Linux-v6.6/samples/bpf/ |
D | test_probe_write_user_user.c | 15 int serverfd, serverconnfd, clientfd, map_fd; in main() local 60 assert((clientfd = socket(AF_INET, SOCK_STREAM, 0)) > 0); in main() 87 assert(connect(clientfd, &mapped_addr, sizeof(mapped_addr)) == 0); in main() 96 assert(getpeername(clientfd, &tmp_addr, &sockaddr_len) == 0); in main()
|