Lines Matching refs:AF_INET

37 	res = zsock_inet_pton(AF_INET, "127.0.0.1", buf);  in ZTEST_USER()
40 res = zsock_inet_pton(AF_INET, "127.0.0.1a", buf); in ZTEST_USER()
301 .sin_family = AF_INET, in test_ipv4_so_bindtodevice()
306 .sin_family = AF_INET, in test_ipv4_so_bindtodevice()
311 .sin_family = AF_INET, in test_ipv4_so_bindtodevice()
316 sock_c = zsock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_ipv4_so_bindtodevice()
318 sock_s = zsock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_ipv4_so_bindtodevice()
358 #define ADDR_SIZE(family) ((family == AF_INET) ? \
372 if (family == AF_INET) { in test_getpeername()
374 ret = zsock_inet_pton(AF_INET, TEST_MY_IPV4_ADDR, in test_getpeername()
443 test_getpeername(AF_INET); in test_ipv4_getpeername()
461 if (family == AF_INET) { in test_getsockname_tcp()
463 ret = zsock_inet_pton(AF_INET, TEST_MY_IPV4_ADDR, in test_getsockname_tcp()
530 if (family == AF_INET) { in test_getsockname_udp()
532 ret = zsock_inet_pton(AF_INET, TEST_MY_IPV4_ADDR, in test_getsockname_udp()
597 srv_addr4.sa_family = AF_INET; in test_ipv4_mapped_to_ipv6_disabled()
599 ret = zsock_inet_pton(AF_INET, TEST_MY_IPV4_ADDR, in test_ipv4_mapped_to_ipv6_disabled()
609 sock_s4 = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_disabled()
612 ret = zsock_bind(sock_s4, &srv_addr4, ADDR_SIZE(AF_INET)); in test_ipv4_mapped_to_ipv6_disabled()
646 srv_addr4.sa_family = AF_INET; in test_ipv4_mapped_to_ipv6_enabled()
648 ret = zsock_inet_pton(AF_INET, "0.0.0.0", in test_ipv4_mapped_to_ipv6_enabled()
669 sock_s4 = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_enabled()
673 ret = zsock_bind(sock_s4, &srv_addr4, ADDR_SIZE(AF_INET)); in test_ipv4_mapped_to_ipv6_enabled()
689 sock_s4 = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_enabled()
693 ret = zsock_bind(sock_s4, &srv_addr4, ADDR_SIZE(AF_INET)); in test_ipv4_mapped_to_ipv6_enabled()
730 srv_addr.sa_family = AF_INET; in test_ipv4_mapped_to_ipv6_server()
732 ret = zsock_inet_pton(AF_INET, "192.0.1.1", in test_ipv4_mapped_to_ipv6_server()
781 sock_c4 = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_server()
784 ret = zsock_connect(sock_c4, &srv_addr, ADDR_SIZE(AF_INET)); in test_ipv4_mapped_to_ipv6_server()
845 test_getsockname_tcp(AF_INET); in ZTEST_USER()
850 test_getsockname_udp(AF_INET); in ZTEST_USER()
904 sock_t = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in ZTEST()
911 zassert_equal(domain, AF_INET, "Mismatch domain value %d vs %d", in ZTEST()
912 AF_INET, domain); in ZTEST()
920 domain = AF_INET; in ZTEST()