Lines Matching refs:response
193 struct dns_response *response = NULL;
252 response = parse_dns_response(answer, length);
253 if (response == NULL) {
258 if (response->header.qdcount != 1) {
269 rrset->rri_rdclass = response->query->class;
270 rrset->rri_rdtype = response->query->type;
271 rrset->rri_ttl = response->answer->ttl;
272 rrset->rri_nrdatas = response->header.ancount;
276 if (response->header.ad == 1)
281 rrset->rri_name = strdup(response->answer->name);
288 rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass,
290 rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass,
311 for (rr = response->answer, index_ans = 0, index_sig = 0;
335 free_dns_response(response);
343 if (response != NULL)
344 free_dns_response(response);
380 * DNS response parsing routines
388 /* allocate memory for the response */