Lines Matching full:family

36 static void test_add_local_ip_address(sa_family_t family, const char *ip)  in test_add_local_ip_address()  argument
38 if (family == AF_INET) { in test_add_local_ip_address()
50 } else if (family == AF_INET6) { in test_add_local_ip_address()
74 static inline void prepare_sock_tcp(sa_family_t family, const char *ip, uint16_t port, in prepare_sock_tcp() argument
77 if (family == AF_INET) { in prepare_sock_tcp()
82 } else if (family == AF_INET6) { in prepare_sock_tcp()
90 static inline void prepare_sock_udp(sa_family_t family, const char *ip, uint16_t port, in prepare_sock_udp() argument
93 if (family == AF_INET) { in prepare_sock_udp()
98 } else if (family == AF_INET6) { in prepare_sock_udp()
298 static void test_reuseaddr_unspecified_specified_common(sa_family_t family, in test_reuseaddr_unspecified_specified_common() argument
310 prepare_sock_tcp(family, first_ip, LOCAL_PORT, &server_sock1, &bind_addr1); in test_reuseaddr_unspecified_specified_common()
311 prepare_sock_tcp(family, second_ip, LOCAL_PORT, &server_sock2, &bind_addr2); in test_reuseaddr_unspecified_specified_common()
382 static void test_reuseaddr_tcp_listening_common(sa_family_t family, in test_reuseaddr_tcp_listening_common() argument
393 prepare_sock_tcp(family, first_ip, LOCAL_PORT, &server_sock1, &bind_addr1); in test_reuseaddr_tcp_listening_common()
394 prepare_sock_tcp(family, second_ip, LOCAL_PORT, &server_sock2, &bind_addr2); in test_reuseaddr_tcp_listening_common()
441 static void test_reuseaddr_tcp_tcp_time_wait_common(sa_family_t family, in test_reuseaddr_tcp_tcp_time_wait_common() argument
455 prepare_sock_tcp(family, first_ip, LOCAL_PORT, &server_sock, &bind_addr); in test_reuseaddr_tcp_tcp_time_wait_common()
456 prepare_sock_tcp(family, second_ip, LOCAL_PORT, &client_sock, &conn_addr); in test_reuseaddr_tcp_tcp_time_wait_common()
480 prepare_sock_tcp(family, first_ip, LOCAL_PORT, &server_sock, &bind_addr); in test_reuseaddr_tcp_tcp_time_wait_common()
575 static void test_reuseport_unspecified_specified_common(sa_family_t family, in test_reuseport_unspecified_specified_common() argument
587 prepare_sock_tcp(family, first_ip, LOCAL_PORT, &server_sock1, &bind_addr1); in test_reuseport_unspecified_specified_common()
588 prepare_sock_tcp(family, second_ip, LOCAL_PORT, &server_sock2, &bind_addr2); in test_reuseport_unspecified_specified_common()
751 static void test_reuseport_udp_server_client_common(sa_family_t family, in test_reuseport_udp_server_client_common() argument
769 prepare_sock_udp(family, ip, LOCAL_PORT, &server_sock, &server_addr); in test_reuseport_udp_server_client_common()
770 prepare_sock_udp(family, ip, 0, &client_sock, &client_addr); in test_reuseport_udp_server_client_common()
796 accept_sock = zsock_socket(family, SOCK_DGRAM, IPPROTO_UDP); in test_reuseport_udp_server_client_common()
906 static void test_reuseport_tcp_identical_clients_common(sa_family_t family, in test_reuseport_tcp_identical_clients_common() argument
923 prepare_sock_tcp(family, server_ip, LOCAL_PORT, &server_sock, &server_addr); in test_reuseport_tcp_identical_clients_common()
924 prepare_sock_tcp(family, client_ip, LOCAL_PORT + 1, &client_sock1, &client_addr); in test_reuseport_tcp_identical_clients_common()
925 prepare_sock_tcp(family, client_ip, LOCAL_PORT, &client_sock2, &connect_addr); in test_reuseport_tcp_identical_clients_common()