Lines Matching defs:msg
202 say_message(dns_name_t *name, const char *msg, dns_rdata_t *rdata,
228 msg, (int)r.length, (char *)r.base);
248 printsection(dns_message_t *msg, dns_section_t sectionid,
273 result = dns_message_firstname(msg, sectionid);
281 dns_message_currentname(msg, sectionid, &name);
357 result = dns_message_nextname(msg, sectionid);
368 printrdata(dns_message_t *msg, dns_rdataset_t *rdataset, dns_name_t *owner,
376 UNUSED(msg);
393 chase_cnamechain(dns_message_t *msg, dns_name_t *qname) {
398 unsigned int i = msg->counts[DNS_SECTION_ANSWER];
402 result = dns_message_findname(msg, DNS_SECTION_ANSWER, qname,
419 printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
446 if (msg->rcode != 0) {
453 (msg->rcode != dns_rcode_nxdomain) ? namestr :
454 query->lookup->textname, msg->rcode,
455 rcode_totext(msg->rcode));
458 (msg->rcode != dns_rcode_nxdomain) ? namestr :
459 query->lookup->textname, msg->rcode,
460 rcode_totext(msg->rcode));
474 chase_cnamechain(msg, name);
502 opcodetext[msg->opcode], rcode_totext(msg->rcode),
503 msg->id);
505 if ((msg->flags & DNS_MESSAGEFLAG_QR) != 0) {
509 if ((msg->flags & DNS_MESSAGEFLAG_AA) != 0) {
513 if ((msg->flags & DNS_MESSAGEFLAG_TC) != 0) {
517 if ((msg->flags & DNS_MESSAGEFLAG_RD) != 0) {
521 if ((msg->flags & DNS_MESSAGEFLAG_RA) != 0) {
525 if ((msg->flags & DNS_MESSAGEFLAG_AD) != 0) {
529 if ((msg->flags & DNS_MESSAGEFLAG_CD) != 0) {
536 msg->counts[DNS_SECTION_QUESTION],
537 msg->counts[DNS_SECTION_ANSWER],
538 msg->counts[DNS_SECTION_AUTHORITY],
539 msg->counts[DNS_SECTION_ADDITIONAL]);
540 opt = dns_message_getopt(msg);
546 tsig = dns_message_gettsig(msg, &tsigname);
550 if (! ISC_LIST_EMPTY(msg->sections[DNS_SECTION_QUESTION]) &&
553 result = printsection(msg, DNS_SECTION_QUESTION, "QUESTION",
558 if (! ISC_LIST_EMPTY(msg->sections[DNS_SECTION_ANSWER])) {
561 result = printsection(msg, DNS_SECTION_ANSWER, "ANSWER",
567 if (! ISC_LIST_EMPTY(msg->sections[DNS_SECTION_AUTHORITY]) &&
570 result = printsection(msg, DNS_SECTION_AUTHORITY, "AUTHORITY",
575 if (! ISC_LIST_EMPTY(msg->sections[DNS_SECTION_ADDITIONAL]) &&
578 result = printsection(msg, DNS_SECTION_ADDITIONAL,
585 result = printrdata(msg, tsig, tsigname,
594 ISC_LIST_EMPTY(msg->sections[DNS_SECTION_ANSWER])) {