Searched defs:answer (Results 1 - 5 of 5) sorted by relevance

/bionic/libc/dns/resolv/
H A Dres_query.c118 * Formulate a normal query, send, and await answer.
119 * Returned answer is placed in supplied buffer "answer".
120 * Perform preliminary check of answer, returning success only
121 * if no error is indicated and the answer count is nonzero.
125 * Caller must parse answer and determine whether it answers the question.
131 u_char *answer, /* buffer to put answer */
132 int anslen) /* size of answer buffer */
135 HEADER *hp = (HEADER *)(void *)answer;
128 res_nquery(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument
222 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument
378 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument
[all...]
H A Dres_data.c202 u_char *answer, /* buffer to put answer */
203 int anslen) /* size of answer buffer */
209 return (res_nquery(&_nres, name, class, type, answer, anslen));
271 u_char *answer, /* buffer to put answer */
272 int anslen) /* size of answer */
279 return (res_nsearch(&_nres, name, class, type, answer, anslen));
286 u_char *answer, /* buffer to put answer */
200 res_query(const char *name, int class, int type, u_char *answer, int anslen) argument
269 res_search(const char *name, int class, int type, u_char *answer, int anslen) argument
283 res_querydomain(const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument
[all...]
H A Dres_cache.c55 * among the answer records in order to reduce DNS traffic. It is not supposed
62 * answer packet data as output
67 * the smallest TTL value among the answer records are used as the time
68 * to keep an answer in the cache.
70 * this is bad, but we absolutely want to avoid parsing the answer packets
73 * - the implementation is just a (query-data) => (answer-data) hash table
87 * if the function returns RESOLV_CACHE_FOUND, a copy of the answer data
88 * has been copied into the client-provided answer buffer.
92 * answer to the cache.
97 * note that RESOLV_CACHE_UNSUPPORTED is also returned if the answer buffe
1057 const uint8_t* answer; member in struct:Entry
1124 answer_getTTL(const void* answer, int answerlen) argument
1219 entry_alloc( const Entry* init, const void* answer, int answerlen ) argument
1517 _dump_answer(const void* answer, int answerlen) argument
1674 _resolv_cache_lookup( unsigned netid, const void* query, int querylen, void* answer, int answersize, int *answerlen ) argument
1764 _resolv_cache_add( unsigned netid, const void* query, int querylen, const void* answer, int answerlen ) argument
[all...]
/bionic/libc/dns/net/
H A Dgethnamaddr.c217 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, argument
236 _DIAGASSERT(answer != NULL);
241 eom = answer->buf + anslen;
257 * find first satisfactory answer
259 hp = &answer->hdr;
264 cp = answer->buf;
269 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp));
294 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp));
315 n = dn_expand(answer->buf, eom, cp, tbuf,
344 n = dn_expand(answer
[all...]
H A Dgetaddrinfo.c213 u_char *answer; /* buffer to put answer */ member in struct:res_target
214 int anslen; /* size of answer buffer */
1311 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, argument
1329 assert(answer != NULL);
1337 eom = answer->buf + anslen;
1348 * find first satisfactory answer
1350 hp = &answer->hdr;
1355 cp = answer->buf;
1361 n = dn_expand(answer
2178 u_char *answer; local
[all...]

Completed in 61 milliseconds