Lines Matching full:sockets

135 		fprintf(stderr, "expected no sockets\n");  in check_no_sockets()
150 fprintf(stderr, "expected %d sockets, found %d\n", in check_num_sockets()
238 static void add_vsock_stat(struct list_head *sockets, in add_vsock_stat() argument
250 list_add_tail(&st->list, sockets); in add_vsock_stat()
256 static void read_vsock_stat(struct list_head *sockets) in read_vsock_stat() argument
311 add_vsock_stat(sockets, NLMSG_DATA(h)); in read_vsock_stat()
321 static void free_sock_stat(struct list_head *sockets) in free_sock_stat() argument
326 list_for_each_entry_safe(st, next, sockets, list) in free_sock_stat()
332 LIST_HEAD(sockets); in test_no_sockets()
334 read_vsock_stat(&sockets); in test_no_sockets()
336 check_no_sockets(&sockets); in test_no_sockets()
351 LIST_HEAD(sockets); in test_listen_socket_server()
367 read_vsock_stat(&sockets); in test_listen_socket_server()
369 check_num_sockets(&sockets, 1); in test_listen_socket_server()
370 st = find_vsock_stat(&sockets, fd); in test_listen_socket_server()
374 free_sock_stat(&sockets); in test_listen_socket_server()
380 LIST_HEAD(sockets); in test_connect_client()
389 read_vsock_stat(&sockets); in test_connect_client()
391 check_num_sockets(&sockets, 1); in test_connect_client()
392 st = find_vsock_stat(&sockets, fd); in test_connect_client()
399 free_sock_stat(&sockets); in test_connect_client()
405 LIST_HEAD(sockets); in test_connect_server()
414 read_vsock_stat(&sockets); in test_connect_server()
416 check_num_sockets(&sockets, 1); in test_connect_server()
417 st = find_vsock_stat(&sockets, client_fd); in test_connect_server()
424 free_sock_stat(&sockets); in test_connect_server()
429 .name = "No sockets",