Home
last modified time | relevance | path

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

/system/core/libcutils/
Dsocket_network_client_windows.c61 if (connect(sock, address->ai_addr, address->ai_addrlen) == SOCKET_ERROR) { in socket_network_client()
Dsocket_network_client_unix.c68 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/server/
DSockDiagTest.cpp218 EXPECT_EQ(src->ai_addr->sa_family, dst->ai_addr->sa_family); in makeDiagMessage()
219 inet_diag_msg msg = makeDiagMessage(src->ai_addr->sa_family, src->ai_addr, dst->ai_addr); in makeDiagMessage()
DDnsProxyListener.cpp206 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo()
252 sockaddr* ai_addr = ai->ai_addr; in run() local
253 if (ai_addr) { in run()
254 addIpAddrWithinLimit(ip_addrs, ai_addr, ai->ai_addrlen); in run()
DNetdConstants.cpp207 sockaddr_in *sin = (sockaddr_in *) res[0].ai_addr; in parsePrefix()
216 sockaddr_in6 *sin6 = (sockaddr_in6 *) res[0].ai_addr; in parsePrefix()
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/netd/tests/
Dbinder_test.cpp461 addrinfoList == nullptr || addrinfoList->ai_addr == nullptr) { in interfaceHasAddress()
475 addr->ifa_addr->sa_family != addrinfoList->ai_addr->sa_family) { in interfaceHasAddress()
482 auto *want = reinterpret_cast<const struct sockaddr_in*>(addrinfoList->ai_addr); in interfaceHasAddress()
496 auto *want = reinterpret_cast<const struct sockaddr_in6*>(addrinfoList->ai_addr); in interfaceHasAddress()
Dnetd_test.cpp190 int rv = getnameinfo(aip->ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToString()
/system/netd/tests/dns_responder/
Ddns_responder.cpp590 if (bind(s, ai->ai_addr, ai->ai_addrlen)) { in startServer()
596 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer()
/system/core/libnetutils/
Difc_utils.c114 memcpy(ss, ai->ai_addr, ai->ai_addrlen); in string_to_ip()
/system/core/adb/
Dsysdeps_win32.cpp891 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()