Lines Matching refs:dns_buf
17 static uint8_t dns_buf[MAX_BUF_SIZE]; variable
64 rc = dns_msg_pack_query(dns_buf, &dns_buf_len, MAX_BUF_SIZE, qname, qname_len, in eval_query()
70 if (dns_unpack_header_id(dns_buf) != tid) { in eval_query()
76 if (dns_header_qr(dns_buf) != DNS_QUERY) { in eval_query()
82 if (dns_header_opcode(dns_buf) != DNS_QUERY) { in eval_query()
88 if (dns_header_aa(dns_buf) != 0) { in eval_query()
94 if (dns_header_tc(dns_buf) != 0) { in eval_query()
100 if (dns_header_rd(dns_buf) != 1) { in eval_query()
106 if (dns_header_ra(dns_buf) != 0) { in eval_query()
112 if (dns_header_z(dns_buf) != 0) { in eval_query()
118 if (dns_header_rcode(dns_buf) != DNS_HEADER_NOERROR) { in eval_query()
124 if (dns_header_qdcount(dns_buf) != 1) { in eval_query()
130 if (dns_header_ancount(dns_buf) != 0) { in eval_query()
136 if (dns_header_nscount(dns_buf) != 0) { in eval_query()
142 if (dns_header_arcount(dns_buf) != 0) { in eval_query()
147 question = dns_buf + DNS_HEADER_SIZE; in eval_query()
167 if (memcmp(expected, dns_buf, dns_buf_len) != 0) { in eval_query()