/system/netd/resolv/ |
D | getaddrinfo.cpp | 292 .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 …]
|
D | libnetd_resolv_test.cpp | 68 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()
|
D | DnsProxyListener.cpp | 211 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()
|
D | Dns64Configuration.cpp | 177 const IPAddress ipv6(reinterpret_cast<sockaddr_in6*>(result->ai_addr)->sin6_addr); in doRfc7050PrefixDiscovery()
|
D | PrivateDnsConfiguration.cpp | 51 memcpy(parsed, res->ai_addr, res->ai_addrlen); in parseServer()
|
D | res_cache.cpp | 1888 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()
|
D | resolver_test.cpp | 156 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/ |
D | InternetAddresses.cpp | 73 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/ |
D | NetdConstants.cpp | 121 sockaddr_in *sin = (sockaddr_in *) res[0].ai_addr; in parsePrefix() 130 sockaddr_in6 *sin6 = (sockaddr_in6 *) res[0].ai_addr; in parsePrefix()
|
D | SockDiagTest.cpp | 220 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()
|
D | SockDiag.cpp | 153 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/ |
D | socket_network_client_windows.cpp | 61 if (connect(sock, address->ai_addr, address->ai_addrlen) == SOCKET_ERROR) { in socket_network_client()
|
D | socket_network_client_unix.cpp | 68 int rc = connect(s, addr->ai_addr, addr->ai_addrlen); in socket_network_client_timeout()
|
/system/extras/multinetwork/ |
D | dnschk.cpp | 78 std::cout << inetSockaddrToString(rp->ai_addr) << std::endl; in main()
|
D | httpurl.cpp | 130 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/ |
D | dns_tls_frontend.cpp | 215 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()
|
D | dns_responder.cpp | 614 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/ |
D | VtsHalNetNetdTestUtils.cpp | 110 ret = connect(sock, ai->ai_addr, ai->ai_addrlen); in checkReachability()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 114 memcpy(ss, ai->ai_addr, ai->ai_addrlen); in string_to_ip()
|
/system/netd/tests/ |
D | binder_test.cpp | 794 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/ |
D | sysdeps_win32.cpp | 949 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()
|