/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 | 841 static struct addrinfo* getanswer(const std::vector<uint8_t>& answer, int anslen, const char* qname, in getanswer() argument 864 eom = answer.data() + anslen; in getanswer() 1619 const int anslen = t->answer.size(); in doQuery() local 1630 n = res_nopt(res, n, buf, sizeof(buf), anslen); in doQuery() 1648 n = res_nsend(&res_temp, buf, n, t->answer.data(), anslen, &rcode, 0, sleepTimeMs); in doQuery() 1657 n = res_nsend(&res_temp, buf, n, t->answer.data(), anslen, &rcode, 0); in doQuery() 1751 const int anslen = t->answer.size(); in res_queryN() local 1761 n = res_nopt(res, n, buf, sizeof(buf), anslen); in res_queryN() 1768 n = res_nsend(res, buf, n, t->answer.data(), anslen, &rcode, 0); in res_queryN()
|
D | resolv_cache_unit_test.cpp | 159 int anslen = 0; in cacheLookup() local 162 answer.data(), answer.size(), &anslen, flags); in cacheLookup() 170 answer.resize(anslen); in cacheLookup() 406 int anslen = 0; in TEST_F() local 408 answer.size(), &anslen, 0); in TEST_F()
|
D | res_send.cpp | 435 int anslen = 0; in res_nsend() local 438 resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend() 447 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 | 167 int extractResNsendAnswers(const uint8_t* answer, size_t anslen, int ipType, in extractResNsendAnswers() argument 171 if (ns_initparse((const uint8_t*) answer, anslen, &handle) < 0) { in extractResNsendAnswers()
|