/system/netd/resolv/ |
D | res_query.cpp | 112 int anslen, // size of answer buffer in res_nquery() argument 129 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery() 135 n = res_nsend(statp, buf, n, answer, anslen, &rcode, 0); in res_nquery() 207 int anslen, /* size of answer */ in res_nsearch() argument 234 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch() 265 ret = res_nquerydomain(statp, name, *domain, cl, type, answer, anslen, herrno); in res_nsearch() 318 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch() 345 int anslen, /* size of answer */ in res_nquerydomain() argument 379 return res_nquery(statp, longname, cl, type, answer, anslen, herrno); in res_nquerydomain()
|
D | res_mkquery.cpp | 200 int anslen) /* UDP answer buffer size */ in res_nopt() argument 219 if (anslen > 0xffff) anslen = 0xffff; in res_nopt() 220 *reinterpret_cast<uint16_t*>(cp) = htons(anslen); /* CLASS = UDP payload size */ in res_nopt()
|
D | getaddrinfo.cpp | 122 int anslen; /* size of answer buffer */ member 828 static struct addrinfo* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument 853 eom = answer->buf + anslen; in getanswer() 1395 q.anslen = sizeof(buf->buf); in dns_getaddrinfo() 1409 q2.anslen = sizeof(buf2->buf); in dns_getaddrinfo() 1423 q.anslen = sizeof(buf->buf); in dns_getaddrinfo() 1430 q.anslen = sizeof(buf->buf); in dns_getaddrinfo() 1588 int anslen; in res_queryN() local 1599 anslen = t->anslen; in res_queryN() 1605 n = res_nopt(res, n, buf, sizeof(buf), anslen); in res_queryN() [all …]
|
D | res_send.cpp | 393 int anslen = 0; in res_nsend() local 394 cache_status = _resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend() 399 return anslen; in res_nsend()
|
D | gethnamaddr.cpp | 144 static struct hostent* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument 167 eom = answer->buf + anslen; in getanswer()
|
D | DnsProxyListener.cpp | 175 int extractResNsendAnswers(const uint8_t* answer, size_t anslen, int ipType, in extractResNsendAnswers() argument 179 if (ns_initparse((const uint8_t*) answer, anslen, &handle) < 0) { in extractResNsendAnswers()
|
/system/netd/include/ |
D | NetdClient.h | 55 int resNetworkResult(int query_fd, int* rcode, uint8_t* answer, size_t anslen);
|
/system/netd/client/ |
D | NetdClient.cpp | 464 extern "C" int resNetworkResult(int fd, int* rcode, uint8_t* answer, size_t anslen) { in resNetworkResult() argument 485 if (anslen < static_cast<size_t>(size)) { in resNetworkResult()
|