/bionic/tests/ |
D | arpa_inet_test.cpp | 151 ASSERT_EQ(1, inet_pton(AF_INET6, "::1", &ss6)); in TEST() 157 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, INET_ADDRSTRLEN)); in TEST() 158 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, INET6_ADDRSTRLEN)); in TEST() 159 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, 2*INET6_ADDRSTRLEN)); in TEST()
|
D | ifaddrs_test.cpp | 53 else if (addr->ifa_addr && addr->ifa_addr->sa_family == AF_INET6) lo_inet6 = addr; in TEST() 188 if (family == AF_INET6) return "AF_INET6"; in FamilyToName() 241 } else if (family == AF_INET || family == AF_INET6) { in TEST() 260 if (ifa->ifa_addr && ifa->ifa_addr->sa_family == AF_INET6) { in TEST()
|
D | netinet_in_test.cpp | 39 sockaddr_in sin = {.sin_family = AF_INET6}; in TEST()
|
D | netdb_test.cpp | 56 ASSERT_TRUE(p->ai_family == AF_INET || p->ai_family == AF_INET6); in TEST() 109 ASSERT_EQ(addr->sin6_family, AF_INET6); in TEST() 131 ss.ss_family = AF_INET6; in TEST() 165 addr.sin6_family = AF_INET6; in TEST()
|
/bionic/libc/dns/net/ |
D | getnameinfo.c | 129 case AF_INET6: in android_getnameinfofornet() 251 case AF_INET6: in getnameinfo_inet() 294 case AF_INET6: in getnameinfo_inet() 342 case AF_INET6: in getnameinfo_inet() 376 if (inet_ntop(AF_INET6, addr, numaddr, sizeof(numaddr)) == NULL) in ip6_parsenumeric()
|
D | gethnamaddr.c | 539 *result = gethostbyname_internal(name, AF_INET6, res, hp, buf, buflen, errorp, in gethostbyname_r() 694 case AF_INET6: in gethostbyname_internal_real() 848 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in android_gethostbyaddrfornetcontext_real() 854 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in android_gethostbyaddrfornetcontext_real() 867 case AF_INET6: in android_gethostbyaddrfornetcontext_real() 972 if (inet_pton(AF_INET6, p, &host_addr) > 0) { in netbsd_gethostent_r() 973 af = AF_INET6; in netbsd_gethostent_r() 984 af = AF_INET6; in netbsd_gethostent_r() 1073 hp->h_addrtype = AF_INET6; in map_v4v6_hostent() 1156 case AF_INET6: in _dns_gethtbyname() [all …]
|
D | getaddrinfo.c | 376 .sin6_family = AF_INET6, in _have_ipv6() 1065 if (cur->ai_family != AF_INET6) in explore_numeric_scope() 1156 #ifdef AF_INET6 in get_port() 1157 case AF_INET6: in get_port() 1217 case AF_INET6: in get_port() 1471 ai.ai_family = (type == T_A) ? AF_INET : AF_INET6; in getanswer() 1514 if (addr->sa_family == AF_INET6) { in _get_scope() 1578 } else if (addr->sa_family == AF_INET6) { in _get_label() 1620 } else if (addr->sa_family == AF_INET6) { in _get_precedence() 1756 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && in _rfc6724_compare() [all …]
|
D | sethostent.c | 118 hp = _hf_gethtbyname2(name, AF_INET6, info); in _hf_gethtbyname()
|
/bionic/libc/bionic/ |
D | ifaddrs.cpp | 138 if (family == AF_INET6 && (IN6_IS_ADDR_LINKLOCAL(data) || IN6_IS_ADDR_MC_LINKLOCAL(data))) { in CopyAddress() 151 } else if (family == AF_INET6) { in SockaddrBytes() 223 if (msg->ifa_family == AF_INET || msg->ifa_family == AF_INET6) { in __getifaddrs_callback() 237 if (msg->ifa_family == AF_INET || msg->ifa_family == AF_INET6) { in __getifaddrs_callback()
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | inet_pton.c | 52 case AF_INET6: in inet_pton()
|
D | inet_ntop.c | 50 case AF_INET6: in inet_ntop()
|
/bionic/libc/include/sys/ |
D | socket.h | 148 #define AF_INET6 10 macro 193 #define PF_INET6 AF_INET6
|
/bionic/tests/headers/posix/ |
D | sys_socket_h.c | 124 MACRO(AF_INET6); in sys_socket_h()
|
/bionic/libc/dns/resolv/ |
D | res_init.c | 220 u[nserv].sin6.sin6_family = AF_INET6; in __res_vinit() 700 case AF_INET6: in res_setservers() 749 case AF_INET6: in res_getservers()
|
D | res_send.c | 176 case AF_INET6: in random_bind() 240 case AF_INET6: in res_ourserver_p() 695 else if (sa->sa_family == AF_INET6) 1339 case AF_INET6: in sock_eq()
|
D | res_debug.c | 753 case AF_INET6: in p_sockun() 754 inet_ntop(AF_INET6, &u.sin6.sin6_addr, ret, sizeof ret); in p_sockun()
|
/bionic/libc/dns/nameser/ |
D | ns_print.c | 333 (void) inet_ntop(AF_INET6, rdata, buf, (socklen_t)buflen); in ns_sprintrrf() 691 (void) inet_ntop(AF_INET6, &a, buf, (socklen_t)buflen); in ns_sprintrrf() 968 (void) inet_ntop(AF_INET6, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()
|