/packages/modules/DnsResolver/ |
D | res_query.cpp | 105 int anslen, // size of answer buffer in res_nquery() argument 126 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery() 132 n = res_nsend(statp, buf, n, answer, anslen, &rcode, 0); in res_nquery() 207 int anslen, /* size of answer */ in res_nsearch() argument 232 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch() 258 ret = res_nquerydomain(statp, name, domain.c_str(), cl, type, answer, anslen, herrno); in res_nsearch() 304 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch() 331 int anslen, /* size of answer */ in res_nquerydomain() argument 365 return res_nquery(statp, longname, cl, type, answer, anslen, herrno); in res_nquerydomain()
|
D | res_mkquery.cpp | 197 int anslen) /* UDP answer buffer size */ in res_nopt() argument 216 if (anslen > 0xffff) anslen = 0xffff; in res_nopt() 217 *reinterpret_cast<uint16_t*>(cp) = htons(anslen); /* CLASS = UDP payload size */ in res_nopt()
|
D | getaddrinfo.cpp | 840 static struct addrinfo* getanswer(const std::vector<uint8_t>& answer, int anslen, const char* qname, in getanswer() argument 863 eom = answer.data() + anslen; in getanswer() 1618 const int anslen = t->answer.size(); in doQuery() local 1629 n = res_nopt(res, n, buf, sizeof(buf), anslen); in doQuery() 1647 n = res_nsend(&res_temp, buf, n, t->answer.data(), anslen, &rcode, 0, sleepTimeMs); in doQuery() 1658 n = res_nsend(&res_temp, buf, n, t->answer.data(), anslen, &rcode, 0); in doQuery() 1754 const int anslen = t->answer.size(); in res_queryN() local 1764 n = res_nopt(res, n, buf, sizeof(buf), anslen); in res_queryN() 1771 n = res_nsend(res, buf, n, t->answer.data(), anslen, &rcode, 0); in res_queryN()
|
D | res_send.cpp | 432 int anslen = 0; in res_nsend() local 435 resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend() 444 return anslen; in res_nsend()
|
D | gethnamaddr.cpp | 128 static struct hostent* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument 149 eom = answer->buf + anslen; in getanswer()
|
D | DnsProxyListener.cpp | 150 int extractResNsendAnswers(const uint8_t* answer, size_t anslen, int ipType, in extractResNsendAnswers() argument 154 if (ns_initparse((const uint8_t*)answer, anslen, &handle) < 0) { in extractResNsendAnswers()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_cache_unit_test.cpp | 158 int anslen = 0; in cacheLookup() local 161 answer.data(), answer.size(), &anslen, flags); in cacheLookup() 169 answer.resize(anslen); in cacheLookup() 405 int anslen = 0; in TEST_F() local 407 answer.size(), &anslen, 0); in TEST_F()
|