diff --git a/CHANGES b/CHANGES index a243ec4314..56b1e307e7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1210. [func] "dig axfr" now reports the number of messages + as well as the number of records. + 1209. [port] See if -ldl is required for OpenSSL? [RT #2672] 1208. [bug] Adjusted REQUIRE's in lib/dns/name.c to better diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 2f30ad821e..736bae6213 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.c,v 1.177 2002/05/22 04:58:29 marka Exp $ */ +/* $Id: dig.c,v 1.178 2002/05/29 05:30:59 marka Exp $ */ #include #include @@ -232,8 +232,8 @@ received(int bytes, isc_sockaddr_t *from, dig_query_t *query) { time(&tnow); printf(";; WHEN: %s", ctime(&tnow)); if (query->lookup->doing_xfr) { - printf(";; XFR size: %d records\n", - query->rr_count); + printf(";; XFR size: %u records (messages %u)\n", + query->rr_count, query->msg_count); } else { printf(";; MSG SIZE rcvd: %d\n", bytes); diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index cbd4186328..918c3ac228 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.243 2002/04/19 04:06:53 marka Exp $ */ +/* $Id: dighost.c,v 1.244 2002/05/29 05:31:02 marka Exp $ */ /* * Notice to programmers: Do not use this code as an example of how to @@ -1423,6 +1423,7 @@ setup_lookup(dig_lookup_t *lookup) { query->second_rr_serial = 0; query->servname = serv->servername; query->rr_count = 0; + query->msg_count = 0; ISC_LINK_INIT(query, link); ISC_LIST_INIT(query->recvlist); ISC_LIST_INIT(query->lengthlist); @@ -1988,6 +1989,7 @@ check_for_more_data(dig_query_t *query, dns_message_t *msg, * an SOA rr. */ + query->msg_count++; result = dns_message_firstname(msg, DNS_SECTION_ANSWER); if (result != ISC_R_SUCCESS) { puts("; Transfer failed."); diff --git a/bin/dig/include/dig/dig.h b/bin/dig/include/dig/dig.h index 778a353cff..12da249187 100644 --- a/bin/dig/include/dig/dig.h +++ b/bin/dig/include/dig/dig.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.h,v 1.76 2001/10/04 07:02:28 halley Exp $ */ +/* $Id: dig.h,v 1.77 2002/05/29 05:31:05 marka Exp $ */ #ifndef DIG_H #define DIG_H @@ -155,6 +155,7 @@ struct dig_query { recv_made; isc_uint32_t first_rr_serial; isc_uint32_t second_rr_serial; + isc_uint32_t msg_count; isc_uint32_t rr_count; char *servname; isc_bufferlist_t sendlist,