Searched refs:ai (Results 1 – 2 of 2) sorted by relevance
/system/netd/server/ |
D | DnsProxyListener.cpp | 134 struct addrinfo* ai = result; in run() local 135 while (ai && success) { in run() 136 success = sendLenAndData(mClient, sizeof(struct addrinfo), ai) in run() 137 && sendLenAndData(mClient, ai->ai_addrlen, ai->ai_addr) in run() 139 ai->ai_canonname ? strlen(ai->ai_canonname) + 1 : 0, in run() 140 ai->ai_canonname); in run() 141 ai = ai->ai_next; in run()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 101 struct addrinfo hints, *ai; in string_to_ip() local 113 ret = getaddrinfo(string, NULL, &hints, &ai); in string_to_ip() 115 memcpy(ss, ai->ai_addr, ai->ai_addrlen); in string_to_ip() 116 freeaddrinfo(ai); in string_to_ip()
|