/third_party/libuv/test/ |
D | test-ip6-addr.c | 59 if (address->address.address6.sin6_family != AF_INET6) in TEST_IMPL() 62 ASSERT(0 == uv_inet_ntop(AF_INET6, in TEST_IMPL() 140 ASSERT(0 == uv_inet_pton(AF_INET6, ADDR, &addr)); \ 141 ASSERT(0 == uv_inet_pton(AF_INET6, ADDR "%en1", &addr)); \ 142 ASSERT(0 == uv_inet_pton(AF_INET6, ADDR "%%%%", &addr)); \ 143 ASSERT(0 == uv_inet_pton(AF_INET6, ADDR "%en1:1.2.3.4", &addr)); \ 146 ASSERT(0 != uv_inet_pton(AF_INET6, ADDR, &addr)); \ 147 ASSERT(0 != uv_inet_pton(AF_INET6, ADDR "%en1", &addr)); \ 148 ASSERT(0 != uv_inet_pton(AF_INET6, ADDR "%%%%", &addr)); \ 149 ASSERT(0 != uv_inet_pton(AF_INET6, ADDR "%en1:1.2.3.4", &addr)); \
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | inet_ntop.c | 46 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0200() 47 const char *ptr = inet_ntop(AF_INET6, &sin_addr, ip6test, sizeof(ip6test)); in inet_ntop_0200() 62 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0300() 63 const char *ptr = inet_ntop(AF_INET6, &sin_addr, ip6test, sizeof(ip6test)); in inet_ntop_0300() 78 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0400() 79 const char *ptr = inet_ntop(AF_INET6, &sin_addr, ip6test, sizeof(ip6test)); in inet_ntop_0400() 107 inet_pton(AF_INET6, ip6test, &sin_addr); in inet_ntop_0600() 108 const char *ptr = inet_ntop(AF_INET6, &sin_addr, ip6test, sizeof(ip6test)); in inet_ntop_0600()
|
/third_party/node/deps/cares/src/lib/ |
D | ares__addrinfo_localhost.c | 88 if (aftype == AF_INET6) { in ares_append_ai_node() 96 sin6->sin6_family = AF_INET6; in ares_append_ai_node() 100 node->ai_family = AF_INET6; in ares_append_ai_node() 115 if (aftype == AF_UNSPEC || aftype == AF_INET6) { in ares__default_loopback_addrs() 117 ares_inet_pton(AF_INET6, "::1", &addr6); in ares__default_loopback_addrs() 118 status = ares_append_ai_node(AF_INET6, port, 0, &addr6, nodes); in ares__default_loopback_addrs() 162 } else if (table->Table[i].Address.si_family == AF_INET6) { in ares__system_loopback_addrs() 209 case AF_INET6: in ares__addrinfo_localhost()
|
D | ares__addrinfo2hostent.c | 80 if (family != AF_INET && family != AF_INET6) { in ares__addrinfo2hostent() 153 if (family == AF_INET6) { in ares__addrinfo2hostent() 169 if (family == AF_INET6) { in ares__addrinfo2hostent() 213 if (family != AF_INET && family != AF_INET6) { in ares__addrinfo2addrttl() 225 if (family == AF_INET6 && addr6ttls == NULL) { in ares__addrinfo2addrttl() 252 if (family == AF_INET6) { in ares__addrinfo2addrttl()
|
D | ares__sortaddrinfo.c | 93 if (addr->sa_family == AF_INET6) { in get_scope() 139 } else if (addr->sa_family == AF_INET6) { in get_label() 179 } else if (addr->sa_family == AF_INET6) { in get_precedence() 318 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && in rfc6724_compare() 319 a2->has_src_addr && a2->ai->ai_addr->sa_family == AF_INET6) { in rfc6724_compare() 359 case AF_INET6: in find_src_addr()
|
/third_party/cares/ |
D | backport-001-CVE-2023-31130.patch | 269 case AF_INET6: 301 EXPECT_EQ(0, ares_inet_net_pton(AF_INET6, "12:34::ff/0", &a6, sizeof(a6))); 302 EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "12:34::ffff:0.2", &a6, sizeof(a6))); 303 …EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "1234:1234:1234:1234:1234:1234:1234:1234", &a6, siz… 304 + EXPECT_EQ(2, ares_inet_net_pton(AF_INET6, "0::00:00:00/2", &a6, sizeof(a6))); 309 …EXPECT_EQ(-1, ares_inet_net_pton(AF_INET6, ":1234:1234:1234:1234:1234:1234:1234:1234", &a6, sizeof… 310 …EXPECT_EQ(-1, ares_inet_net_pton(AF_INET6, ":1234:1234:1234:1234:1234:1234:1234:1234:", &a6, sizeo… 311 …EXPECT_EQ(-1, ares_inet_net_pton(AF_INET6, "1234:1234:1234:1234:1234:1234:1234:1234:5678", &a6, si… 313 - EXPECT_EQ(0, ares_inet_net_pton(AF_INET6, "1234:1234:1234:1234:1234:1234:1234:1234:5678:5678", &… 314 - EXPECT_EQ(0, ares_inet_net_pton(AF_INET6, "1234:1234:1234:1234:1234:1234:1234:1234:5678:5678:567… [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
D | ip_addr.c | 26 if (addr->af == AF_INET6) { in hostapd_ip_txt() 27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL) in hostapd_ip_txt() 45 if (inet_pton(AF_INET6, txt, &addr->u.v6) > 0) { in hostapd_parse_ip_addr() 46 addr->af = AF_INET6; in hostapd_parse_ip_addr()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
D | ip_addr.c | 26 if (addr->af == AF_INET6) { in hostapd_ip_txt() 27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL) in hostapd_ip_txt() 45 if (inet_pton(AF_INET6, txt, &addr->u.v6) > 0) { in hostapd_parse_ip_addr() 46 addr->af = AF_INET6; in hostapd_parse_ip_addr()
|
/third_party/ltp/testcases/network/lib6/ |
D | in6_01.c | 80 sin6.sin6_family = AF_INET6; in test_sockaddr_in6() 86 sd = SAFE_SOCKET(AF_INET6, SOCK_STREAM, 0); in test_sockaddr_in6() 115 if (inet_pton(AF_INET6, "::1", &inl6) <= 0) in test_global_in6_def() 135 if (inet_pton(AF_INET6, maptab[i].addr, &in6) <= 0) in test_in6_is_addr_v4mapped() 172 af = psin6->sin6_family = AF_INET6; in test_sockaddr_storage() 173 rv = inet_pton(AF_INET6, sstab[i].addr, in test_sockaddr_storage()
|
/third_party/libwebsockets/lib/core-net/ |
D | network.c | 58 if (!lws_plat_inet_ntop(AF_INET6, in lws_get_addresses() 258 case AF_INET6: in lws_socket_bind() 263 serv_addr6.sin6_family = AF_INET6; in lws_socket_bind() 384 port = (sin.ss_family == AF_INET6) ? in lws_socket_bind() 542 addr->ifa_addr->sa_family != AF_INET6) in lws_get_addr_scope() 565 ret = GetAdaptersAddresses(AF_INET6, GAA_FLAG_INCLUDE_PREFIX, in lws_get_addr_scope() 588 AF_INET6) { in lws_get_addr_scope() 797 sa46->sa6.sin6_family = AF_INET6; in lws_sa46_parse_numeric_address() 888 if (sa46->sa4.sin_family == AF_INET6) in lws_sa46_write_numeric_address() 904 if (sa46->sa4.sin_family == AF_INET6) in lws_sa46_write_numeric_address() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/bio/ |
D | bio_addr.c | 86 #ifdef AF_INET6 in BIO_ADDR_make() 87 if (sa->sa_family == AF_INET6) { in BIO_ADDR_make() 125 #ifdef AF_INET6 in BIO_ADDR_rawmake() 126 if (family == AF_INET6) { in BIO_ADDR_rawmake() 154 #ifdef AF_INET6 in BIO_ADDR_rawaddress() 155 else if (ap->sa.sa_family == AF_INET6) { in BIO_ADDR_rawaddress() 183 #ifdef AF_INET6 in BIO_ADDR_rawport() 184 if (ap->sa.sa_family == AF_INET6) in BIO_ADDR_rawport() 337 #ifdef AF_INET6 in BIO_ADDR_sockaddr_size() 338 if (ap->sa.sa_family == AF_INET6) in BIO_ADDR_sockaddr_size() [all …]
|
/third_party/openssl/crypto/bio/ |
D | bio_addr.c | 86 #ifdef AF_INET6 in BIO_ADDR_make() 87 if (sa->sa_family == AF_INET6) { in BIO_ADDR_make() 125 #ifdef AF_INET6 in BIO_ADDR_rawmake() 126 if (family == AF_INET6) { in BIO_ADDR_rawmake() 154 #ifdef AF_INET6 in BIO_ADDR_rawaddress() 155 else if (ap->sa.sa_family == AF_INET6) { in BIO_ADDR_rawaddress() 183 #ifdef AF_INET6 in BIO_ADDR_rawport() 184 if (ap->sa.sa_family == AF_INET6) in BIO_ADDR_rawport() 337 #ifdef AF_INET6 in BIO_ADDR_sockaddr_size() 338 if (ap->sa.sa_family == AF_INET6) in BIO_ADDR_sockaddr_size() [all …]
|
/third_party/lwip/src/api/ |
D | netdb.c | 295 && (ai_family != AF_INET6) in lwip_getaddrinfo() 326 (IP_IS_V4_VAL(addr) && ai_family == AF_INET6)) { in lwip_getaddrinfo() 336 } else if (ai_family == AF_INET6) { in lwip_getaddrinfo() 348 ip_addr_set_any_val(ai_family == AF_INET6, addr); in lwip_getaddrinfo() 350 ip_addr_set_loopback_val(ai_family == AF_INET6, addr); in lwip_getaddrinfo() 379 sa6->sin6_family = AF_INET6; in lwip_getaddrinfo() 383 ai->ai_family = AF_INET6; in lwip_getaddrinfo()
|
/third_party/pulseaudio/src/pulsecore/ |
D | ipacl.c | 104 } else if (inet_pton(AF_INET6, a, &e.address_ipv6) > 0) { in pa_ip_acl_new() 112 e.family = AF_INET6; in pa_ip_acl_new() 180 if (sa.ss_family != AF_INET && sa.ss_family != AF_INET6) in pa_ip_acl_check() 190 if (sa.ss_family == AF_INET6 && salen != sizeof(struct sockaddr_in6)) in pa_ip_acl_check() 206 } else if (e->family == AF_INET6) { in pa_ip_acl_check()
|
/third_party/musl/src/network/ |
D | getaddrinfo.c | 43 case AF_INET6: in getaddrinfo() 61 .sin6_family = AF_INET6, .sin6_port = 65535, in getaddrinfo() 64 int tf[2] = { AF_INET, AF_INET6 }; in getaddrinfo() 131 case AF_INET6: in getaddrinfo() 132 out[k].sa.sin6.sin6_family = AF_INET6; in getaddrinfo()
|
D | lookup_name.c | 44 if (family != AF_INET6) in name_from_null() 47 buf[cnt++] = (struct address){ .family = AF_INET6 }; in name_from_null() 49 if (family != AF_INET6) in name_from_null() 52 buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; in name_from_null() 147 ctx->addrs[ctx->cnt].family = AF_INET6; in dns_parse_callback() 196 { .af = AF_INET6, .rr = RR_A }, in name_from_dns() 199 { .af = AF_INET6, .rr = RR_A }, in name_from_dns() 204 if (family == AF_INET6) { in name_from_dns() 397 if (family == AF_INET6) family = AF_UNSPEC; in lookup_name_ext() 415 for (i=0; i<cnt && buf[i].family != AF_INET6; i++); in lookup_name_ext() [all …]
|
D | lookup_ipliteral.c | 17 if (family == AF_INET6) /* wrong family */ in __lookup_ipliteral() 34 if (inet_pton(AF_INET6, name, &a6) <= 0) in __lookup_ipliteral() 40 buf[0].family = AF_INET6; in __lookup_ipliteral()
|
/third_party/node/src/ |
D | node_sockaddr-inl.h | 29 is_numeric_host(hostname, AF_INET6); in is_numeric_host() 38 CHECK(addr->sa_family == AF_INET || addr->sa_family == AF_INET6); in GetPort() 49 CHECK(addr->sa_family == AF_INET || addr->sa_family == AF_INET6); in GetAddress() 128 if (family() != AF_INET6) in flow_label() 135 if (family() != AF_INET6) in set_flow_label() 143 if (family() != AF_INET && family() != AF_INET6) return ""; in ToString() 144 return (family() == AF_INET6 ? in ToString()
|
/third_party/node/deps/openssl/openssl/apps/lib/ |
D | s_socket.c | 178 #ifdef AF_INET6 in init_client() 179 BIO_ADDRINFO_family(res) == AF_INET6 ? "IPv6 " : in init_client() 295 #ifdef AF_INET6 in do_server() 296 if (sock_family == AF_INET6) in do_server() 302 && BIO_ADDRINFO_family(next) == AF_INET6) { in do_server() 307 sock_family = AF_INET6; in do_server() 309 } else if (sock_family == AF_INET6 in do_server()
|
/third_party/openssl/apps/lib/ |
D | s_socket.c | 178 #ifdef AF_INET6 in init_client() 179 BIO_ADDRINFO_family(res) == AF_INET6 ? "IPv6 " : in init_client() 295 #ifdef AF_INET6 in do_server() 296 if (sock_family == AF_INET6) in do_server() 302 && BIO_ADDRINFO_family(next) == AF_INET6) { in do_server() 307 sock_family = AF_INET6; in do_server() 309 } else if (sock_family == AF_INET6 in do_server()
|
/third_party/musl/porting/linux/user/src/network/ |
D | lookup_name.c | 44 if (family != AF_INET6) in name_from_null() 47 buf[cnt++] = (struct address){ .family = AF_INET6 }; in name_from_null() 49 if (family != AF_INET6) in name_from_null() 52 buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; in name_from_null() 154 ctx->addrs[ctx->cnt].family = AF_INET6; in dns_parse_callback() 204 { .af = AF_INET6, .rr = RR_A }, in name_from_dns() 207 { .af = AF_INET6, .rr = RR_A }, in name_from_dns() 212 if (family == AF_INET6) { in name_from_dns() 396 if (family == AF_INET6) family = AF_UNSPEC; in lookup_name_ext() 414 for (i=0; i<cnt && buf[i].family != AF_INET6; i++); in lookup_name_ext() [all …]
|
/third_party/curl/lib/ |
D | curl_addrinfo.c | 134 else if(ai->ai_family == AF_INET6) in Curl_getaddrinfo_ex() 279 if(he->h_addrtype == AF_INET6) in Curl_he2ai() 325 case AF_INET6: in Curl_he2ai() 405 case AF_INET6: in Curl_ip2addr() 453 if(Curl_inet_pton(AF_INET6, address, &in6) > 0) in Curl_str2addr() 455 return Curl_ip2addr(AF_INET6, &in6, address, port); in Curl_str2addr() 584 case AF_INET6: in Curl_addrinfo_set_port()
|
/third_party/libcoap/src/ |
D | coap_address.c | 52 case AF_INET6: in coap_address_get_port() 71 case AF_INET6: in coap_address_set_port() 97 case AF_INET6: in coap_address_equals() 133 case AF_INET6: in coap_is_mcast() 167 case AF_INET6: /* broadcast not support ipv6 now */ in coap_is_bcast() 199 case AF_INET6: in coap_is_bcast() 535 case AF_INET6: in coap_resolve_address_info() 615 case AF_INET6: in coap_resolve_address_info() 778 info->addr.addr.sin6.sin6_family = AF_INET6; in coap_resolve_address_info() 840 if (src->addr.sa.sa_family == AF_INET6) { in coap_address_copy() [all …]
|
/third_party/node/test/cctest/ |
D | test_sockaddr.cc | 48 SocketAddress::ToSockAddr(AF_INET6, "::1", 443, &storage); in TEST() 53 CHECK_EQ(addr.family(), AF_INET6); in TEST() 136 SocketAddress::ToSockAddr(AF_INET6, "::1", 0, &storage[2]); in TEST() 137 SocketAddress::ToSockAddr(AF_INET6, "::2", 0, &storage[3]); in TEST() 138 SocketAddress::ToSockAddr(AF_INET6, "::ffff:10.0.0.1", 0, &storage[4]); in TEST() 139 SocketAddress::ToSockAddr(AF_INET6, "::ffff:10.0.0.2", 0, &storage[5]); in TEST()
|
/third_party/nghttp2/src/ |
D | shrpx_dual_dns_resolver.cc | 50 if (family_ == AF_UNSPEC || family_ == AF_INET6) { in DualDNSResolver() 60 if (family_ == AF_UNSPEC || family_ == AF_INET6) { in resolve() 61 rv6 = resolv6_.resolve(host, AF_INET6); in resolve()
|