/bionic/libc/dns/resolv/ |
H A D | res_query.c | 118 * 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 D | res_data.c | 202 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 D | res_cache.c | 55 * 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 999 const uint8_t* answer; member in struct:Entry 1066 answer_getTTL(const void* answer, int answerlen) argument 1161 entry_alloc( const Entry* init, const void* answer, int answerlen ) argument 1459 _dump_answer(const void* answer, int answerlen) argument 1616 _resolv_cache_lookup( unsigned netid, const void* query, int querylen, void* answer, int answersize, int *answerlen ) argument 1706 _resolv_cache_add( unsigned netid, const void* query, int querylen, const void* answer, int answerlen ) argument [all...] |
/bionic/libc/dns/net/ |
H A D | gethnamaddr.c | 200 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, argument 219 _DIAGASSERT(answer != NULL); 224 eom = answer->buf + anslen; 240 * find first satisfactory answer 242 hp = &answer->hdr; 247 cp = answer->buf; 252 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 277 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 298 n = dn_expand(answer->buf, eom, cp, tbuf, 327 n = dn_expand(answer [all...] |
H A D | getaddrinfo.c | 212 u_char *answer; /* buffer to put answer */ member in struct:res_target 213 int anslen; /* size of answer buffer */ 1305 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, argument 1323 assert(answer != NULL); 1331 eom = answer->buf + anslen; 1342 * find first satisfactory answer 1344 hp = &answer->hdr; 1349 cp = answer->buf; 1355 n = dn_expand(answer 2173 u_char *answer; local [all...] |