Home
last modified time | relevance | path

Searched refs:ai_addrlen (Results 1 – 14 of 14) sorted by relevance

/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/netd/resolv/
Dlibnetd_resolv_test.cpp68 int rv = getnameinfo(aip->ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToString()
132 socklen_t ai_addrlen; in TEST_F() member
139 return StringPrintf("0x%x/%u/%s/%p/%p", ai_flags, ai_addrlen, in TEST_F()
164 .ai_addrlen = config.ai_addrlen, in TEST_F()
Dres_cache.cpp1886 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) { in _resolv_populate_res_for_net()
1888 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
1891 if ((size_t) ai->ai_addrlen <= sizeof(statp->nsaddr_list[0])) { in _resolv_populate_res_for_net()
1892 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
1960 int addrlen = info->nsaddrinfo[i]->ai_addrlen; 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()
DDnsProxyListener.cpp213 addIpAddrWithinLimit(ip_addrs, ai_addr, ai->ai_addrlen); in extractGetAddrInfoAnswers()
400 int ret = getnameinfo(ai->ai_addr, ai->ai_addrlen, ip_addr, sizeof(ip_addr), nullptr, 0, in logDnsQueryResult()
476 ai->ai_addrlen = sizeof(struct sockaddr_in6); in synthesizeNat64PrefixWithARecord()
581 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo()
DPrivateDnsConfiguration.cpp51 memcpy(parsed, res->ai_addr, res->ai_addrlen); in parseServer()
Dgetaddrinfo.cpp290 .ai_addrlen = 0, in android_getaddrinfofornetcontext()
303 if (hints->ai_addrlen || hints->ai_canonname || hints->ai_addr || hints->ai_next) { in android_getaddrinfofornetcontext()
674 ai->ai_addrlen = afd->a_socklen; in get_ai()
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/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/extras/multinetwork/
Dhttpurl.cpp130 memcpy(&(parameters->ss), result[0].ai_addr, result[0].ai_addrlen); in parseUrl()
/system/core/libnetutils/
Difc_utils.c114 memcpy(ss, ai->ai_addr, ai->ai_addrlen); in string_to_ip()
/system/core/adb/
Dsysdeps_win32.cpp949 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()