Lines Matching refs:sockaddr
75 int *sock, struct sockaddr *addr) in prepare_sock_tcp()
91 int *sock, struct sockaddr *addr) in prepare_sock_udp()
152 static void test_bind_success(int sock, const struct sockaddr *addr, socklen_t addrlen) in test_bind_success()
160 static void test_bind_fail(int sock, const struct sockaddr *addr, socklen_t addrlen) in test_bind_fail()
177 static void test_connect_success(int sock, const struct sockaddr *addr, socklen_t addrlen) in test_connect_success()
190 static void test_connect_fail(int sock, const struct sockaddr *addr, socklen_t addrlen) in test_connect_fail()
200 static int test_accept(int sock, struct sockaddr *addr, socklen_t *addrlen) in test_accept()
210 const struct sockaddr *dest_addr, socklen_t addrlen) in test_sendto()
219 struct sockaddr *src_addr, socklen_t *addrlen) in test_recvfrom_success()
228 struct sockaddr *src_addr, socklen_t *addrlen) in test_recvfrom_fail()
306 struct sockaddr bind_addr1; in test_reuseaddr_unspecified_specified_common()
307 struct sockaddr bind_addr2; in test_reuseaddr_unspecified_specified_common()
389 struct sockaddr bind_addr1; in test_reuseaddr_tcp_listening_common()
390 struct sockaddr bind_addr2; in test_reuseaddr_tcp_listening_common()
406 test_bind_fail(server_sock2, (struct sockaddr *) &bind_addr2, sizeof(bind_addr2)); in test_reuseaddr_tcp_listening_common()
449 struct sockaddr bind_addr; in test_reuseaddr_tcp_tcp_time_wait_common()
450 struct sockaddr conn_addr; in test_reuseaddr_tcp_tcp_time_wait_common()
452 struct sockaddr accept_addr; in test_reuseaddr_tcp_tcp_time_wait_common()
459 test_bind_success(server_sock, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in test_reuseaddr_tcp_tcp_time_wait_common()
483 test_bind_fail(server_sock, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in test_reuseaddr_tcp_tcp_time_wait_common()
489 test_bind_success(server_sock, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in test_reuseaddr_tcp_tcp_time_wait_common()
583 struct sockaddr bind_addr1; in test_reuseport_unspecified_specified_common()
584 struct sockaddr bind_addr2; in test_reuseport_unspecified_specified_common()
759 struct sockaddr server_addr; in test_reuseport_udp_server_client_common()
760 struct sockaddr client_addr; in test_reuseport_udp_server_client_common()
762 struct sockaddr accept_addr; in test_reuseport_udp_server_client_common()
778 test_bind_success(server_sock, (struct sockaddr *) &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common()
781 test_bind_success(client_sock, (struct sockaddr *) &client_addr, sizeof(client_addr)); in test_reuseport_udp_server_client_common()
807 test_bind_success(accept_sock, (struct sockaddr *) &server_addr, in test_reuseport_udp_server_client_common()
811 test_bind_fail(accept_sock, (struct sockaddr *) &server_addr, in test_reuseport_udp_server_client_common()
915 struct sockaddr server_addr; in test_reuseport_tcp_identical_clients_common()
916 struct sockaddr client_addr; in test_reuseport_tcp_identical_clients_common()
917 struct sockaddr connect_addr; in test_reuseport_tcp_identical_clients_common()
919 struct sockaddr accept_addr; in test_reuseport_tcp_identical_clients_common()
948 test_connect_fail(client_sock2, (struct sockaddr *)&connect_addr, sizeof(connect_addr)); in test_reuseport_tcp_identical_clients_common()