From: Wouter Wijngaards Date: Mon, 7 May 2007 14:02:32 +0000 (+0000) Subject: print out extended rcode from edns, if not 0. X-Git-Tag: ldns-1.3.0_pre_20070822~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e885bbbde2e5a0a135cd16a49a6633387f00f24;p=thirdparty%2Fldns.git print out extended rcode from edns, if not 0. --- diff --git a/host2str.c b/host2str.c index 911e28ba..5252f3e9 100644 --- a/host2str.c +++ b/host2str.c @@ -1023,6 +1023,10 @@ ldns_pkt2buffer_str(ldns_buffer *output, const ldns_pkt *pkt) if (ldns_pkt_edns_do(pkt)) { ldns_buffer_printf(output, " do"); } + if (ldns_pkt_edns_extended_rcode(pkt)) { + ldns_buffer_printf(output, " ; ext-rcode: %d", + ldns_pkt_edns_extended_rcode(pkt)); + } ldns_buffer_printf(output, " ; udp: %u\n", ldns_pkt_edns_udp_size(pkt));