mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
1210. [func] "dig axfr" now reports the number of messages
as well as the number of records.
This commit is contained in:
parent
e0c9bf27d5
commit
a483e67c4c
3
CHANGES
3
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
|
||||
|
@ -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 <config.h>
|
||||
#include <stdlib.h>
|
||||
@ -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);
|
||||
|
||||
|
@ -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.");
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user