Home
last modified time | relevance | path

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

/bionic/tests/
Darpa_inet_test.cpp72 ASSERT_EQ(1, inet_pton(AF_INET6, "::1", &ss6)); in TEST()
78 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, INET_ADDRSTRLEN)); in TEST()
79 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, INET6_ADDRSTRLEN)); in TEST()
80 ASSERT_STREQ("::1", inet_ntop(AF_INET6, &ss6, s6, 2*INET6_ADDRSTRLEN)); in TEST()
Dnetdb_test.cpp47 ss.ss_family = AF_INET6; in TEST()
/bionic/libc/dns/net/
Dgetnameinfo.c122 case AF_INET6: in android_getnameinfofornet()
244 case AF_INET6: in getnameinfo_inet()
285 case AF_INET6: in getnameinfo_inet()
330 case AF_INET6: in getnameinfo_inet()
364 if (inet_ntop(AF_INET6, addr, numaddr, sizeof(numaddr)) == NULL) in ip6_parsenumeric()
Dgetaddrinfo.c393 .sin6_family = AF_INET6, in _have_ipv6()
1069 if (cur->ai_family != AF_INET6) in explore_numeric_scope()
1160 #ifdef AF_INET6 in get_port()
1161 case AF_INET6: in get_port()
1221 case AF_INET6: in get_port()
1461 ai.ai_family = (type == T_A) ? AF_INET : AF_INET6; in getanswer()
1504 if (addr->sa_family == AF_INET6) { in _get_scope()
1568 } else if (addr->sa_family == AF_INET6) { in _get_label()
1610 } else if (addr->sa_family == AF_INET6) { in _get_precedence()
1746 if (a1->has_src_addr && a1->ai->ai_addr->sa_family == AF_INET6 && in _rfc6724_compare()
[all …]
/bionic/libc/dns/
Dgethnamaddr.c505 hp = gethostbyname_internal(name, AF_INET6, res, NETID_UNSET, MARK_UNSET); in gethostbyname()
646 case AF_INET6: in gethostbyname_internal_real()
836 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in android_gethostbyaddrfornet_real()
842 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in android_gethostbyaddrfornet_real()
855 case AF_INET6: in android_gethostbyaddrfornet_real()
945 if (inet_pton(AF_INET6, p, (char *)(void *)rs->host_addr) > 0) { in _gethtent()
946 af = AF_INET6; in _gethtent()
955 af = AF_INET6; in _gethtent()
1017 hp = _gethtbyname2(name, AF_INET6); in _gethtbyname()
1187 hp->h_addrtype = AF_INET6; in map_v4v6_hostent()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_pton.c53 case AF_INET6: in inet_pton()
Dinet_ntop.c51 case AF_INET6: in inet_ntop()
/bionic/libc/include/sys/
Dsocket.h143 #define AF_INET6 10 macro
184 #define PF_INET6 AF_INET6
/bionic/libc/dns/resolv/
Dres_init.c221 u[nserv].sin6.sin6_family = AF_INET6; in __res_vinit()
740 case AF_INET6: in res_setservers()
789 case AF_INET6: in res_getservers()
Dres_send.c188 case AF_INET6: in random_bind()
252 case AF_INET6: in res_ourserver_p()
687 else if (sa->sa_family == AF_INET6)
1316 case AF_INET6: in sock_eq()
Dres_debug.c743 case AF_INET6: in p_sockun()
744 inet_ntop(AF_INET6, &u.sin6.sin6_addr, ret, sizeof ret); in p_sockun()
/bionic/libc/include/netinet/
Dicmp6.h699 ((struct in6_ifextra *)((ifp)->if_afdata[AF_INET6]))->icmp6_ifstat->tag++; \
/bionic/libc/dns/nameser/
Dns_print.c339 (void) inet_ntop(AF_INET6, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()
697 (void) inet_ntop(AF_INET6, &a, buf, (socklen_t)buflen); in ns_sprintrrf()
974 (void) inet_ntop(AF_INET6, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()