Searched refs:answer (Results 1 - 6 of 6) sorted by relevance

/bionic/libc/private/
H A Dresolv_cache.h43 /* or the answer buffer is too small */
45 RESOLV_CACHE_FOUND /* the cache found the answer */
52 void* answer,
56 /* add a (query,answer) to the cache, only call if _resolv_cache_lookup
63 const void* answer,
/bionic/libc/netbsd/resolv/
H A Dres_query.c117 * Formulate a normal query, send, and await answer.
118 * Returned answer is placed in supplied buffer "answer".
119 * Perform preliminary check of answer, returning success only
120 * if no error is indicated and the answer count is nonzero.
124 * Caller must parse answer and determine whether it answers the question.
130 u_char *answer, /* buffer to put answer */
131 int anslen) /* size of answer buffer */
134 HEADER *hp = (HEADER *)(void *)answer;
127 res_nquery(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument
221 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument
368 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.c207 u_char *answer, /* buffer to put answer */
208 int anslen) /* size of answer buffer */
214 return (res_nquery(&_nres, name, class, type, answer, anslen));
276 u_char *answer, /* buffer to put answer */
277 int anslen) /* size of answer */
284 return (res_nsearch(&_nres, name, class, type, answer, anslen));
291 u_char *answer, /* buffer to put answer */
205 res_query(const char *name, int class, int type, u_char *answer, int anslen) argument
274 res_search(const char *name, int class, int type, u_char *answer, int anslen) argument
288 res_querydomain(const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument
[all...]
H A Dres_cache.c45 * answer packet data as output
50 * - the TTLs of answer RRs are ignored. our DNS resolver library does not use
54 * this is bad, but we absolutely want to avoid parsing the answer packets
57 * - the implementation is just a (query-data) => (answer-data) hash table
71 * if the function returns RESOLV_CACHE_FOUND, a copy of the answer data
72 * has been copied into the client-provided answer buffer.
76 * answer to the cache.
81 * note that RESOLV_CACHE_UNSUPPORTED is also returned if the answer buffer
427 * NOTE: we don't parse the answer packets, so don't need to deal with NAME
988 const uint8_t* answer; member in struct:Entry
1054 entry_alloc( const Entry* init, const void* answer, int answerlen ) argument
1284 _resolv_cache_lookup( struct resolv_cache* cache, const void* query, int querylen, void* answer, int answersize, int *answerlen ) argument
1357 _resolv_cache_add( struct resolv_cache* cache, const void* query, int querylen, const void* answer, int answerlen ) argument
[all...]
/bionic/libc/netbsd/net/
H A Dgetaddrinfo.c199 u_char *answer; /* buffer to put answer */ member in struct:res_target
200 int anslen; /* size of answer buffer */
1098 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, argument
1116 assert(answer != NULL);
1124 eom = answer->buf + anslen;
1135 * find first satisfactory answer
1137 hp = &answer->hdr;
1142 cp = answer->buf + HFIXEDSZ;
1147 n = dn_expand(answer
1947 u_char *answer; local
[all...]
/bionic/libc/netbsd/
H A Dgethnamaddr.c171 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, argument
187 assert(answer != NULL);
192 eom = answer->buf + anslen;
205 * find first satisfactory answer
207 hp = &answer->hdr;
212 cp = answer->buf;
218 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
248 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
271 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
301 n = dn_expand(answer
[all...]

Completed in 108 milliseconds