Lines Matching full:answer
81 static int skip_fqdn(uint8_t *answer, int buf_sz) in skip_fqdn() argument
90 if (answer[i] == 0) { in skip_fqdn()
93 } else if (answer[i] >= 0xc0) { in skip_fqdn()
99 } else if (answer[i] < DNS_LABEL_MAX_SIZE) { in skip_fqdn()
100 i += answer[i] + 1; in skip_fqdn()
116 uint8_t *answer; in dns_unpack_answer() local
118 answer = dns_msg->msg + dns_msg->answer_offset; in dns_unpack_answer()
120 dname_len = skip_fqdn(answer, in dns_unpack_answer()
128 * to contain the answer. in dns_unpack_answer()
133 * So, answer size >= 12 in dns_unpack_answer()
145 if ((dns_answer_class(dname_len, answer) & in dns_unpack_answer()
152 *ttl = dns_answer_ttl(dname_len, answer); in dns_unpack_answer()
153 len = dns_answer_rdlength(dname_len, answer); in dns_unpack_answer()
159 *type = dns_answer_type(dname_len, answer); in dns_unpack_answer()
173 /* malformed dns answer */ in dns_unpack_answer()
261 /* set answer and ns rr */ in dns_msg_pack_query_header()