/bionic/libc/dns/include/ |
H A D | resolv_cache.h | 44 /* or the answer buffer is too small */ 46 RESOLV_CACHE_FOUND /* the cache found the answer */ 54 void* answer, 58 /* add a (query,answer) to the cache, only call if _resolv_cache_lookup 66 const void* answer,
|
/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 | 51 * among the answer records in order to reduce DNS traffic. It is not supposed 58 * answer packet data as output 63 * the smallest TTL value among the answer records are used as the time 64 * to keep an answer in the cache. 66 * this is bad, but we absolutely want to avoid parsing the answer packets 69 * - the implementation is just a (query-data) => (answer-data) hash table 83 * if the function returns RESOLV_CACHE_FOUND, a copy of the answer data 84 * has been copied into the client-provided answer buffer. 88 * answer to the cache. 93 * note that RESOLV_CACHE_UNSUPPORTED is also returned if the answer buffe 995 const uint8_t* answer; member in struct:Entry 1062 answer_getTTL(const void* answer, int answerlen) argument 1157 entry_alloc( const Entry* init, const void* answer, int answerlen ) argument 1449 _dump_answer(const void* answer, int answerlen) argument 1606 _resolv_cache_lookup( unsigned netid, const void* query, int querylen, void* answer, int answersize, int *answerlen ) argument 1696 _resolv_cache_add( unsigned netid, const void* query, int querylen, const void* answer, int answerlen ) argument [all...] |
/bionic/libc/arch-mips/string/ |
H A D | mips_strlen.c | 150 static char answer[1024]; local 152 sprintf (answer, "new_strlen=%d: lib_strlen=%d: %s!", mine, libs, result); 155 return answer;
|
/bionic/libc/arch-mips64/string/ |
H A D | mips_strlen.c | 151 static char answer[1024]; local 153 sprintf (answer, "new_strlen=%d: lib_strlen=%d: %s!", mine, libs, result); 156 return answer;
|
/bionic/libc/dns/net/ |
H A D | getaddrinfo.c | 214 u_char *answer; /* buffer to put answer */ member in struct:res_target 215 int anslen; /* size of answer buffer */ 1303 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, argument 1321 assert(answer != NULL); 1329 eom = answer->buf + anslen; 1340 * find first satisfactory answer 1342 hp = &answer->hdr; 1347 cp = answer->buf + HFIXEDSZ; 1352 n = dn_expand(answer 2163 u_char *answer; local [all...] |
/bionic/libc/dns/ |
H A D | gethnamaddr.c | 182 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, argument 198 assert(answer != NULL); 203 eom = answer->buf + anslen; 216 * find first satisfactory answer 218 hp = &answer->hdr; 223 cp = answer->buf; 229 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 259 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 282 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); 312 n = dn_expand(answer [all...] |