Home
last modified time | relevance | path

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

/system/netd/server/
DDnsProxyListener.cpp287 static bool sendhostent(SocketClient *c, struct hostent *hp) { in sendhostent() argument
290 if (hp->h_name != NULL) { in sendhostent()
291 success &= sendLenAndData(c, strlen(hp->h_name)+1, hp->h_name); in sendhostent()
296 for (i=0; hp->h_aliases[i] != NULL; i++) { in sendhostent()
297 success &= sendLenAndData(c, strlen(hp->h_aliases[i])+1, hp->h_aliases[i]); in sendhostent()
301 uint32_t buf = htonl(hp->h_addrtype); in sendhostent()
304 buf = htonl(hp->h_length); in sendhostent()
307 for (i=0; hp->h_addr_list[i] != NULL; i++) { in sendhostent()
308 success &= sendLenAndData(c, 16, hp->h_addr_list[i]); in sendhostent()
587 struct hostent* hp = nullptr; in run() local
[all …]