Lines Matching refs:answer
170 struct dns_rr *answer; member
200 u_char answer[ANSWER_BUFFER_SIZE]; in getrrsetbyname() local
238 answer, sizeof(answer)); in getrrsetbyname()
254 response = parse_dns_response(answer, length); in getrrsetbyname()
273 rrset->rri_ttl = response->answer->ttl; in getrrsetbyname()
283 rrset->rri_name = strdup(response->answer->name); in getrrsetbyname()
290 rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, in getrrsetbyname()
292 rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass, in getrrsetbyname()
313 for (rr = response->answer, index_ans = 0, index_sig = 0; in getrrsetbyname()
385 parse_dns_response(const u_char *answer, int size) in parse_dns_response() argument
396 cp = answer; in parse_dns_response()
415 resp->query = parse_dns_qsection(answer, size, &cp, in parse_dns_response()
423 resp->answer = parse_dns_rrsection(answer, size, &cp, in parse_dns_response()
425 if (resp->header.ancount && resp->answer == NULL) { in parse_dns_response()
431 resp->authority = parse_dns_rrsection(answer, size, &cp, in parse_dns_response()
439 resp->additional = parse_dns_rrsection(answer, size, &cp, in parse_dns_response()
450 parse_dns_qsection(const u_char *answer, int size, const u_char **cp, int count) in parse_dns_qsection() argument
470 length = dn_expand(answer, answer + size, *cp, name, in parse_dns_qsection()
496 parse_dns_rrsection(const u_char *answer, int size, const u_char **cp, in parse_dns_rrsection() argument
517 length = dn_expand(answer, answer + size, *cp, name, in parse_dns_rrsection()
592 free_dns_rr(p->answer); in free_dns_response()