Home
last modified time | relevance | path

Searched refs:AF_INET6 (Results 1 – 17 of 17) sorted by relevance

/bionic/tests/
Darpa_inet_test.cpp151 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()
Difaddrs_test.cpp53 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()
Dnetinet_in_test.cpp39 sockaddr_in sin = {.sin_family = AF_INET6}; in TEST()
Dnetdb_test.cpp56 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/
Dgetnameinfo.c129 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()
Dgethnamaddr.c539 *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 …]
Dgetaddrinfo.c376 .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 …]
Dsethostent.c118 hp = _hf_gethtbyname2(name, AF_INET6, info); in _hf_gethtbyname()
/bionic/libc/bionic/
Difaddrs.cpp138 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/
Dinet_pton.c52 case AF_INET6: in inet_pton()
Dinet_ntop.c50 case AF_INET6: in inet_ntop()
/bionic/libc/include/sys/
Dsocket.h148 #define AF_INET6 10 macro
193 #define PF_INET6 AF_INET6
/bionic/tests/headers/posix/
Dsys_socket_h.c124 MACRO(AF_INET6); in sys_socket_h()
/bionic/libc/dns/resolv/
Dres_init.c220 u[nserv].sin6.sin6_family = AF_INET6; in __res_vinit()
700 case AF_INET6: in res_setservers()
749 case AF_INET6: in res_getservers()
Dres_send.c176 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()
Dres_debug.c753 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/
Dns_print.c333 (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()