Home
last modified time | relevance | path

Searched refs:ai_addr (Results 1 – 21 of 21) sorted by relevance

/system/netd/resolv/
Dgetaddrinfo.cpp292 .ai_addr = nullptr, in android_getaddrinfofornetcontext()
303 if (hints->ai_addrlen || hints->ai_canonname || hints->ai_addr || hints->ai_next) { in android_getaddrinfofornetcontext()
632 sin6 = (struct sockaddr_in6*) (void*) cur->ai_addr; in explore_numeric_scope()
671 ai->ai_addr = (struct sockaddr*) (void*) (ai + 1); in get_ai()
672 memset(ai->ai_addr, 0, sizeof(sockaddr_union)); in get_ai()
675 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai()
676 p = (char*) (void*) (ai->ai_addr); in get_ai()
747 ((struct sockaddr_in*) (void*) ai->ai_addr)->sin_port = port; in get_port()
750 ((struct sockaddr_in6*) (void*) ai->ai_addr)->sin6_port = port; in get_port()
1193 scope_dst1 = _get_scope(a1->ai->ai_addr); in _rfc6724_compare()
[all …]
Dlibnetd_resolv_test.cpp68 int rv = getnameinfo(aip->ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToString()
134 struct sockaddr* ai_addr; in TEST_F() member
140 ai_canonname ? ai_canonname : "(null)", (void*) ai_addr, in TEST_F()
166 .ai_addr = config.ai_addr, in TEST_F()
DDnsProxyListener.cpp211 sockaddr* ai_addr = ai->ai_addr; in extractGetAddrInfoAnswers() local
212 if (ai_addr) { in extractGetAddrInfoAnswers()
213 addIpAddrWithinLimit(ip_addrs, ai_addr, ai->ai_addrlen); in extractGetAddrInfoAnswers()
369 if (isSpecialUseIPv4Address(ai->ai_addr)) return false; in onlyNonSpecialUseIPv4Addresses()
400 int ret = getnameinfo(ai->ai_addr, ai->ai_addrlen, ip_addr, sizeof(ip_addr), nullptr, 0, in logDnsQueryResult()
466 struct sockaddr_in sinOriginal = *(struct sockaddr_in*) ai->ai_addr; in synthesizeNat64PrefixWithARecord()
467 struct sockaddr_in6* sin6 = (struct sockaddr_in6*) ai->ai_addr; in synthesizeNat64PrefixWithARecord()
581 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo()
DDns64Configuration.cpp177 const IPAddress ipv6(reinterpret_cast<sockaddr_in6*>(result->ai_addr)->sin6_addr); in doRfc7050PrefixDiscovery()
DPrivateDnsConfiguration.cpp51 memcpy(parsed, res->ai_addr, res->ai_addrlen); in parseServer()
Dres_cache.cpp1888 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
1892 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
1966 if (info->nsaddrinfo[i]->ai_addr == NULL) { in android_net_res_stats_get_info_for_net()
1979 memcpy(&servers[i], info->nsaddrinfo[i]->ai_addr, info->nsaddrinfo[i]->ai_addrlen); in android_net_res_stats_get_info_for_net()
Dresolver_test.cpp156 int rv = getnameinfo(aip->ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToString()
175 int rv = getnameinfo(aip->ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToStrings()
/system/netd/libnetdutils/
DInternetAddresses.cpp73 sockaddr_in* sin = (sockaddr_in*) res[0].ai_addr; in forString()
78 sockaddr_in6* sin6 = (sockaddr_in6*) res[0].ai_addr; in forString()
/system/netd/server/
DNetdConstants.cpp121 sockaddr_in *sin = (sockaddr_in *) res[0].ai_addr; in parsePrefix()
130 sockaddr_in6 *sin6 = (sockaddr_in6 *) res[0].ai_addr; in parsePrefix()
DSockDiagTest.cpp220 EXPECT_EQ(src->ai_addr->sa_family, dst->ai_addr->sa_family); in makeDiagMessage()
221 inet_diag_msg msg = makeDiagMessage(src->ai_addr->sa_family, src->ai_addr, dst->ai_addr); in makeDiagMessage()
DSockDiag.cpp153 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr; in sendDumpRequest()
157 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr; in sendDumpRequest()
162 in6_addr& in6a = reinterpret_cast<sockaddr_in6*>(res->ai_addr)->sin6_addr; in sendDumpRequest()
/system/core/libcutils/
Dsocket_network_client_windows.cpp61 if (connect(sock, address->ai_addr, address->ai_addrlen) == SOCKET_ERROR) { in socket_network_client()
Dsocket_network_client_unix.cpp68 int rc = connect(s, addr->ai_addr, addr->ai_addrlen); in socket_network_client_timeout()
/system/extras/multinetwork/
Ddnschk.cpp78 std::cout << inetSockaddrToString(rp->ai_addr) << std::endl; in main()
Dhttpurl.cpp130 memcpy(&(parameters->ss), result[0].ai_addr, result[0].ai_addrlen); in parseUrl()
132 << inetSockaddrToString(result[0].ai_addr) in parseUrl()
/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp215 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer()
216 if (bind(s.get(), ai->ai_addr, ai->ai_addrlen)) { in startServer()
253 connect(backend_socket_.get(), backend_ai_res->ai_addr, backend_ai_res->ai_addrlen); in startServer()
Ddns_responder.cpp614 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer()
615 if (bind(socket_.get(), ai->ai_addr, ai->ai_addrlen)) { in startServer()
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp110 ret = connect(sock, ai->ai_addr, ai->ai_addrlen); in checkReachability()
/system/core/libnetutils/
Difc_utils.c114 memcpy(ss, ai->ai_addr, ai->ai_addrlen); in string_to_ip()
/system/netd/tests/
Dbinder_test.cpp794 addrinfoList == nullptr || addrinfoList->ai_addr == nullptr) { in interfaceHasAddress()
809 addr->ifa_addr->sa_family != addrinfoList->ai_addr->sa_family) { in interfaceHasAddress()
816 auto *want = reinterpret_cast<const struct sockaddr_in*>(addrinfoList->ai_addr); in interfaceHasAddress()
830 auto *want = reinterpret_cast<const struct sockaddr_in6*>(addrinfoList->ai_addr); in interfaceHasAddress()
/system/core/adb/
Dsysdeps_win32.cpp949 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()