/third_party/grpc/test/cpp/naming/ |
D | address_sorting_test.cc | 80 GPR_ASSERT(test_addr.family == AF_INET6); in TestAddressToGrpcResolvedAddress() 84 in6_dest.sin6_family = AF_INET6; in TestAddressToGrpcResolvedAddress() 85 GPR_ASSERT(inet_pton(AF_INET6, host.c_str(), &in6_dest.sin6_addr) == 1); in TestAddressToGrpcResolvedAddress() 226 {"[2607:f8b0:400a:801::1002]:443", AF_INET6}, in TEST_F() 243 {"[2607:f8b0:400a:801::1002]:443", {"[fec0::1234]:0", AF_INET6}}, in TEST_F() 246 {"[2607:f8b0:400a:801::1002]:443", AF_INET6}, in TEST_F() 265 {"[fec0::1000]:0", AF_INET6}}, // global and site-local scope in TEST_F() 267 {"[fec0::5001]:0", AF_INET6}}, // site-local and site-local scope in TEST_F() 270 {"[2000:f8b0:400a:801::1002]:443", AF_INET6}, in TEST_F() 271 {"[fec0::5000]:443", AF_INET6}, in TEST_F() [all …]
|
D | dns_test_util.cc | 40 udp_socket_ = socket(AF_INET6, SOCK_DGRAM, 0); in FakeNonResponsiveDNSServer() 41 tcp_socket_ = socket(AF_INET6, SOCK_STREAM, 0); in FakeNonResponsiveDNSServer() 52 addr.sin6_family = AF_INET6; in FakeNonResponsiveDNSServer()
|
/third_party/cares/test/ |
D | ares-test-internal.cc | 74 EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "::", &a6, sizeof(a6))); in TEST_F() 75 EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "::1", &a6, sizeof(a6))); in TEST_F() 76 EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "1234:5678::", &a6, sizeof(a6))); in TEST_F() 77 EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "12:34::ff", &a6, sizeof(a6))); in TEST_F() 78 EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "12:34::ffff:1.2.3.4", &a6, sizeof(a6))); in TEST_F() 79 EXPECT_EQ(23, ares_inet_net_pton(AF_INET6, "12:34::ffff:1.2.3.4/23", &a6, sizeof(a6))); in TEST_F() 80 EXPECT_EQ(3 * 8, ares_inet_net_pton(AF_INET6, "12:34::ff/24", &a6, sizeof(a6))); in TEST_F() 81 EXPECT_EQ(0, ares_inet_net_pton(AF_INET6, "12:34::ff/0", &a6, sizeof(a6))); in TEST_F() 82 EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "12:34::ffff:0.2", &a6, sizeof(a6))); in TEST_F() 83 …EXPECT_EQ(16 * 8, ares_inet_net_pton(AF_INET6, "1234:1234:1234:1234:1234:1234:1234:1234", &a6, siz… in TEST_F() [all …]
|
D | ares-test-live.cc | 97 ares_gethostbyname(channel_, "www.google.com.", AF_INET6, HostCallback, &result); in VIRT_NONVIRT_TEST_F() 102 EXPECT_EQ(AF_INET6, result.host_.addrtype_); in VIRT_NONVIRT_TEST_F() 117 ares_gethostbyaddr(channel_, gdns_addr6, sizeof(gdns_addr6), AF_INET6, HostCallback, &result); in VIRT_NONVIRT_TEST_F() 122 EXPECT_EQ(AF_INET6, result.host_.addrtype_); in VIRT_NONVIRT_TEST_F() 158 ares_gethostbyname(channel_, "localhost", AF_INET6, HostCallback, &result); in TEST_P() 163 EXPECT_EQ(AF_INET6, result.host_.addrtype_); in TEST_P() 185 ares_gethostbyname(channel_, "::1", AF_INET6, HostCallback, &result); in TEST_P() 191 EXPECT_EQ(AF_INET6, result.host_.addrtype_); in TEST_P() 200 ares_gethostbyname(channel_, "127.0.0.1", AF_INET+AF_INET6, HostCallback, &result); in TEST_P() 230 ares_gethostbyaddr(channel_, &addr, sizeof(addr), AF_INET6, HostCallback, &result); in TEST_P() [all …]
|
/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/node/deps/cares/src/lib/ |
D | ares__addrinfo_localhost.c | 74 if (aftype == AF_INET6) in ares_append_ai_node() 84 sin6->sin6_family = AF_INET6; in ares_append_ai_node() 88 node->ai_family = AF_INET6; in ares_append_ai_node() 104 if (aftype == AF_UNSPEC || aftype == AF_INET6) in ares__default_loopback_addrs() 107 ares_inet_pton(AF_INET6, "::1", &addr6); in ares__default_loopback_addrs() 108 status = ares_append_ai_node(AF_INET6, port, 0, &addr6, nodes); in ares__default_loopback_addrs() 158 else if (table->Table[i].Address.si_family == AF_INET6) in ares__system_loopback_addrs() 211 case AF_INET6: in ares__addrinfo_localhost()
|
D | ares__readaddrinfo.c | 55 case AF_INET6: in ares__readaddrinfo() 187 if ((hints->ai_family == AF_INET6) || (hints->ai_family == AF_UNSPEC)) in ares__readaddrinfo() 190 if (ares_inet_pton(AF_INET6, txtaddr, &addr6) == 1) in ares__readaddrinfo() 192 status = ares_append_ai_node(AF_INET6, port, 0, &addr6, &nodes); in ares__readaddrinfo()
|
/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 | getaddrinfo_01.c | 544 hints.ai_family = AF_INET6; in gaiv6() 551 err |= pai->ai_family != AF_INET6; in gaiv6() 556 err |= psin6->sin6_family != AF_INET6; in gaiv6() 584 hints.ai_family = AF_INET6; in gaiv6() 621 hints.ai_family = AF_INET6; in gaiv6() 628 err |= pai->ai_family != AF_INET6; in gaiv6() 633 err |= psin6->sin6_family != AF_INET6; in gaiv6() 661 hints.ai_family = AF_INET6; in gaiv6() 672 err |= pai->ai_family != AF_INET6; in gaiv6() 682 err |= psin6->sin6_family != AF_INET6; in gaiv6() [all …]
|
D | in6_01.c | 75 sin6.sin6_family = AF_INET6; in test_sockaddr_in6() 81 sd = SAFE_SOCKET(AF_INET6, SOCK_STREAM, 0); in test_sockaddr_in6() 110 if (inet_pton(AF_INET6, "::1", &inl6) <= 0) in test_global_in6_def() 130 if (inet_pton(AF_INET6, maptab[i].addr, &in6) <= 0) in test_in6_is_addr_v4mapped() 167 af = psin6->sin6_family = AF_INET6; in test_sockaddr_storage() 168 rv = inet_pton(AF_INET6, sstab[i].addr, in test_sockaddr_storage()
|
/third_party/musl/src/network/ |
D | lookup_name.c | 31 if (family != AF_INET6) in name_from_null() 34 buf[cnt++] = (struct address){ .family = AF_INET6 }; in name_from_null() 36 if (family != AF_INET6) in name_from_null() 39 buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; in name_from_null() 120 ctx->addrs[ctx->cnt].family = AF_INET6; in dns_parse_callback() 142 { .af = AF_INET6, .rr = RR_A }, in name_from_dns() 304 if (family == AF_INET6) family = AF_UNSPEC; in __lookup_name() 321 for (i=0; i<cnt && buf[i].family != AF_INET6; i++); in __lookup_name() 324 if (buf[i].family == AF_INET6) in __lookup_name() 335 buf[i].family = AF_INET6; in __lookup_name() [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()
|
D | getaddrinfo.c | 36 case AF_INET6: in getaddrinfo() 54 .sin6_family = AF_INET6, .sin6_port = 65535, in getaddrinfo() 57 int tf[2] = { AF_INET, AF_INET6 }; in getaddrinfo() 124 case AF_INET6: in getaddrinfo() 125 out[k].sa.sin6.sin6_family = AF_INET6; in getaddrinfo()
|
/third_party/libcoap/src/ |
D | address.c | 37 case AF_INET6: return ntohs(addr->addr.sin6.sin6_port); in coap_address_get_port() 51 case AF_INET6: in coap_address_set_port() 73 case AF_INET6: in coap_address_equals() 96 case AF_INET6: in coap_is_bcast() 112 case AF_INET6: in coap_is_mcast()
|
/third_party/grpc/test/core/client_channel/ |
D | parse_address_with_named_scope_id_test.cc | 51 GPR_ASSERT(result_from_grpc_parser->sin6_family == AF_INET6); in test_grpc_parse_ipv6_parity_with_getaddrinfo() 52 GPR_ASSERT(result_from_getaddrinfo.sin6_family == AF_INET6); in test_grpc_parse_ipv6_parity_with_getaddrinfo() 70 hints.ai_family = AF_INET6; in resolve_with_gettaddrinfo() 86 GPR_ASSERT(result->ai_family == AF_INET6); in resolve_with_gettaddrinfo()
|
/third_party/cares/ |
D | ares_gethostbyname.c | 90 case AF_INET6: in ares_gethostbyname() 146 if ((hquery->want_family == AF_INET6) || in next_lookup() 149 hquery->sent_family = AF_INET6; in next_lookup() 195 else if (hquery->sent_family == AF_INET6) in host_callback() 224 status == ARES_ETIMEOUT) && (hquery->sent_family == AF_INET6 && in host_callback() 261 if (family == AF_INET || family == AF_INET6) in fake_hostent() 287 if (family == AF_INET6) in fake_hostent() 288 result = (ares_inet_pton(AF_INET6, name, &in6) < 1 ? 0 : 1); in fake_hostent() 298 else if (family == AF_INET6) in fake_hostent() 531 if (sortlist[i].family != AF_INET6) in get6_address_index()
|
D | ares__sortaddrinfo.c | 91 if (addr->sa_family == AF_INET6) in get_scope() 151 else if (addr->sa_family == AF_INET6) in get_label() 212 else if (addr->sa_family == AF_INET6) in get_precedence() 352 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && in rfc6724_compare() 353 a2->has_src_addr && a2->ai->ai_addr->sa_family == AF_INET6) in rfc6724_compare() 397 case AF_INET6: in find_src_addr()
|
/third_party/lwip/src/api/ |
D | netdb.c | 296 && (ai_family != AF_INET6) in lwip_getaddrinfo() 323 (IP_IS_V4_VAL(addr) && ai_family == AF_INET6)) { in lwip_getaddrinfo() 333 } else if (ai_family == AF_INET6) { in lwip_getaddrinfo() 345 ip_addr_set_any_val(ai_family == AF_INET6, addr); in lwip_getaddrinfo() 347 ip_addr_set_loopback_val(ai_family == AF_INET6, addr); in lwip_getaddrinfo() 376 sa6->sin6_family = AF_INET6; in lwip_getaddrinfo() 380 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/openssl/crypto/bio/ |
D | b_addr.c | 76 #ifdef AF_INET6 in BIO_ADDR_make() 77 if (sa->sa_family == AF_INET6) { in BIO_ADDR_make() 115 #ifdef AF_INET6 in BIO_ADDR_rawmake() 116 if (family == AF_INET6) { in BIO_ADDR_rawmake() 144 #ifdef AF_INET6 in BIO_ADDR_rawaddress() 145 else if (ap->sa.sa_family == AF_INET6) { in BIO_ADDR_rawaddress() 173 #ifdef AF_INET6 in BIO_ADDR_rawport() 174 if (ap->sa.sa_family == AF_INET6) in BIO_ADDR_rawport() 328 #ifdef AF_INET6 in BIO_ADDR_sockaddr_size() 329 if (ap->sa.sa_family == AF_INET6) in BIO_ADDR_sockaddr_size() [all …]
|
/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/libnl/lib/ |
D | addr.c | 337 case AF_INET6: in nl_addr_parse() 338 family = AF_INET6; in nl_addr_parse() 365 if (hint == AF_INET6 || hint == AF_UNSPEC) { in nl_addr_parse() 366 if (inet_pton(AF_INET6, str, buf) > 0) { in nl_addr_parse() 367 family = AF_INET6; in nl_addr_parse() 371 if (hint == AF_INET6) { in nl_addr_parse() 677 case AF_INET6: in nl_addr_valid() 718 return AF_INET6; in nl_addr_guess_family() 759 case AF_INET6: { in nl_addr_fill_sockaddr() 1018 case AF_INET6: in nl_addr2str() [all …]
|
/third_party/musl/libc-test/src/regression/ |
D | inet_ntop-v4mapped.c | 12 if (inet_pton(AF_INET6, expect, addr) == 1) { in main() 13 if (!inet_ntop(AF_INET6, addr, buf, sizeof buf)) in main()
|
/third_party/curl/lib/ |
D | curl_addrinfo.c | 137 else if(ai->ai_family == AF_INET6) in Curl_getaddrinfo_ex() 282 if(he->h_addrtype == AF_INET6) in Curl_he2ai() 328 case AF_INET6: in Curl_he2ai() 408 case AF_INET6: in Curl_ip2addr() 456 if(Curl_inet_pton(AF_INET6, address, &in6) > 0) in Curl_str2addr() 458 return Curl_ip2addr(AF_INET6, &in6, address, port); in Curl_str2addr() 587 case AF_INET6: in Curl_addrinfo_set_port()
|