Home
last modified time | relevance | path

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

/system/netd/resolv/
Dres_query.cpp112 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()
Dres_mkquery.cpp200 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()
Dgetaddrinfo.cpp122 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 …]
Dres_send.cpp393 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()
Dgethnamaddr.cpp144 static struct hostent* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument
167 eom = answer->buf + anslen; in getanswer()
DDnsProxyListener.cpp175 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/
DNetdClient.h55 int resNetworkResult(int query_fd, int* rcode, uint8_t* answer, size_t anslen);
/system/netd/client/
DNetdClient.cpp464 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()