Lines Matching refs:msg
70 printsection(dns_message_t *msg, dns_section_t sectionid,
94 result = dns_message_firstname(msg, sectionid);
102 dns_message_currentname(msg, sectionid, &name);
130 result = dns_message_nextname(msg, sectionid);
141 printrdata(dns_message_t *msg, dns_rdataset_t *rdataset, dns_name_t *owner,
149 UNUSED(msg);
165 printmessage(dns_message_t *msg) {
173 opcodetext[msg->opcode], rcodetext[msg->rcode], msg->id);
176 if ((msg->flags & DNS_MESSAGEFLAG_QR) != 0)
178 if ((msg->flags & DNS_MESSAGEFLAG_AA) != 0)
180 if ((msg->flags & DNS_MESSAGEFLAG_TC) != 0)
182 if ((msg->flags & DNS_MESSAGEFLAG_RD) != 0)
184 if ((msg->flags & DNS_MESSAGEFLAG_RA) != 0)
186 if ((msg->flags & DNS_MESSAGEFLAG_AD) != 0)
188 if ((msg->flags & DNS_MESSAGEFLAG_CD) != 0)
191 msg->counts[DNS_SECTION_QUESTION],
192 msg->counts[DNS_SECTION_ANSWER],
193 msg->counts[DNS_SECTION_AUTHORITY],
194 msg->counts[DNS_SECTION_ADDITIONAL]);
195 opt = dns_message_getopt(msg);
202 tsig = dns_message_gettsig(msg, &tsigname);
205 if (! ISC_LIST_EMPTY(msg->sections[DNS_SECTION_QUESTION])) {
207 result = printsection(msg, DNS_SECTION_QUESTION, "QUESTION");
211 if (! ISC_LIST_EMPTY(msg->sections[DNS_SECTION_ANSWER])) {
213 result = printsection(msg, DNS_SECTION_ANSWER, "ANSWER");
217 if (! ISC_LIST_EMPTY(msg->sections[DNS_SECTION_AUTHORITY])) {
219 result = printsection(msg, DNS_SECTION_AUTHORITY, "AUTHORITY");
223 if (! ISC_LIST_EMPTY(msg->sections[DNS_SECTION_ADDITIONAL])) {
225 result = printsection(msg, DNS_SECTION_ADDITIONAL,
232 result = printrdata(msg, tsig, tsigname,