Lines Matching refs:answerlen
936 int answerlen; member
1000 static u_long answer_getTTL(const void* answer, int answerlen) { in answer_getTTL() argument
1007 if (ns_initparse((const uint8_t*) answer, answerlen, &handle) >= 0) { in answer_getTTL()
1082 static Entry* entry_alloc(const Entry* init, const void* answer, int answerlen) { in entry_alloc() argument
1086 size = sizeof(*e) + init->querylen + answerlen; in entry_alloc()
1097 e->answerlen = answerlen; in entry_alloc()
1099 memcpy((char*) e->answer, answer, e->answerlen); in entry_alloc()
1412 void* answer, int answersize, int* answerlen, in _resolv_cache_lookup() argument
1497 *answerlen = e->answerlen; in _resolv_cache_lookup()
1498 if (e->answerlen > answersize) { in _resolv_cache_lookup()
1504 memcpy(answer, e->answer, e->answerlen); in _resolv_cache_lookup()
1517 int answerlen) { in _resolv_cache_add() argument
1540 res_pquery((u_char*)answer, answerlen); in _resolv_cache_add()
1543 dump_bytes((u_char*)answer, answerlen); in _resolv_cache_add()
1571 ttl = answer_getTTL(answer, answerlen); in _resolv_cache_add()
1573 e = entry_alloc(key, answer, answerlen); in _resolv_cache_add()