Home
last modified time | relevance | path

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

/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/tests/
Darpa_inet_test.cpp153 ASSERT_EQ(1, inet_pton(AF_INET6, "::1", &ss6)); in TEST()
159 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, INET_ADDRSTRLEN)); in TEST()
160 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, INET6_ADDRSTRLEN)); in TEST()
161 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, 2*INET6_ADDRSTRLEN)); in TEST()
Difaddrs_test.cpp58 else if (addr->ifa_addr && addr->ifa_addr->sa_family == AF_INET6) lo_inet6 = addr; in TEST()
193 if (family == AF_INET6) return "AF_INET6"; in FamilyToName()
240 } else if (family == AF_INET || family == AF_INET6) { in TEST()
259 if (ifa->ifa_addr && ifa->ifa_addr->sa_family == AF_INET6) { in TEST()
Dnetdb_test.cpp57 ASSERT_TRUE(p->ai_family == AF_INET || p->ai_family == AF_INET6); in TEST()
110 ASSERT_EQ(addr->sin6_family, AF_INET6); in TEST()
132 ss.ss_family = AF_INET6; in TEST()
166 addr.sin6_family = AF_INET6; in TEST()
Dnetinet_in_test.cpp43 sockaddr_in sin = {.sin_family = AF_INET6}; in TEST()
/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/include/sys/
Dsocket.h138 #define AF_INET6 10 macro
183 #define PF_INET6 AF_INET6
/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/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()
694 else if (sa->sa_family == AF_INET6) in get_salen()
1336 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/tests/headers/posix/
Dsys_socket_h.c124 MACRO(AF_INET6); in sys_socket_h()
/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()