Searched refs:ai (Results 1 – 5 of 5) sorted by relevance
/system/netd/server/ |
D | DnsProxyListener.cpp | 152 static bool sendaddrinfo(SocketClient* c, struct addrinfo* ai) { in sendaddrinfo() argument 167 sendBE32(c, ai->ai_flags) && in sendaddrinfo() 168 sendBE32(c, ai->ai_family) && in sendaddrinfo() 169 sendBE32(c, ai->ai_socktype) && in sendaddrinfo() 170 sendBE32(c, ai->ai_protocol); in sendaddrinfo() 176 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo() 181 if (!sendLenAndData(c, ai->ai_canonname ? strlen(ai->ai_canonname) + 1 : 0, ai->ai_canonname)) { in sendaddrinfo() 206 struct addrinfo* ai = result; in run() local 207 while (ai && success) { in run() 208 success = sendBE32(mClient, 1) && sendaddrinfo(mClient, ai); in run() [all …]
|
/system/netd/tests/ |
D | dns_responder.cpp | 585 for (const addrinfo* ai = ai_res ; ai ; ai = ai->ai_next) { in startServer() local 586 s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in startServer() 590 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()
|
D | netd_test.cpp | 329 std::string ToString(const addrinfo* ai) const { in ToString() 330 if (!ai) in ToString() 332 for (const auto* aip = ai ; aip != nullptr ; aip = aip->ai_next) { in ToString()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 104 struct addrinfo hints, *ai; in string_to_ip() local 116 ret = getaddrinfo(string, NULL, &hints, &ai); in string_to_ip() 118 memcpy(ss, ai->ai_addr, ai->ai_addrlen); in string_to_ip() 119 freeaddrinfo(ai); in string_to_ip()
|
/system/connectivity/shill/mobile_operator_db/ |
D | serviceproviders.prototxt | 8049 username : "ai@softbank"
|