mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
remove the nonexistent namelimit option and the deprecated rrlimit option.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dig.c,v 1.143 2001/03/28 02:42:49 bwelling Exp $ */
|
/* $Id: dig.c,v 1.144 2001/03/28 03:09:45 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -76,7 +76,6 @@ extern isc_taskmgr_t *taskmgr;
|
|||||||
extern isc_task_t *global_task;
|
extern isc_task_t *global_task;
|
||||||
extern isc_boolean_t free_now;
|
extern isc_boolean_t free_now;
|
||||||
dig_lookup_t *default_lookup = NULL;
|
dig_lookup_t *default_lookup = NULL;
|
||||||
extern isc_uint32_t rr_limit;
|
|
||||||
|
|
||||||
extern isc_boolean_t debugging, memdebugging;
|
extern isc_boolean_t debugging, memdebugging;
|
||||||
char *batchname = NULL;
|
char *batchname = NULL;
|
||||||
@@ -182,8 +181,6 @@ show_usage(void) {
|
|||||||
" +[no]nssearch (Search all authoritative nameservers)\n"
|
" +[no]nssearch (Search all authoritative nameservers)\n"
|
||||||
" +[no]identify (ID responders in short answers)\n"
|
" +[no]identify (ID responders in short answers)\n"
|
||||||
" +[no]trace (Trace delegation down from root)\n"
|
" +[no]trace (Trace delegation down from root)\n"
|
||||||
" +rrlimit=### (Limit number of rr's in xfr)\n"
|
|
||||||
" +namelimit=### (Limit number of names in xfr)\n"
|
|
||||||
" +[no]dnssec (Request DNSSEC records)\n"
|
" +[no]dnssec (Request DNSSEC records)\n"
|
||||||
" +[no]multiline (Print records in an expanded format)\n"
|
" +[no]multiline (Print records in an expanded format)\n"
|
||||||
" global d-opts and servers (before host name) affect all queries.\n"
|
" global d-opts and servers (before host name) affect all queries.\n"
|
||||||
@@ -788,21 +785,8 @@ plus_option(char *option, isc_boolean_t is_batchfile,
|
|||||||
goto invalid_option;
|
goto invalid_option;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r': /* recurse */
|
||||||
switch (cmd[1]) {
|
lookup->recurse = state;
|
||||||
case 'e': /* recurse */
|
|
||||||
lookup->recurse = state;
|
|
||||||
break;
|
|
||||||
case 'r': /* rrlimit */
|
|
||||||
if (value == NULL)
|
|
||||||
goto need_value;
|
|
||||||
if (!state)
|
|
||||||
goto invalid_option;
|
|
||||||
rr_limit = parse_int(value, "rrlimit", MAXRRLIMIT);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
goto invalid_option;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
switch (cmd[1]) {
|
switch (cmd[1]) {
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dighost.c,v 1.197 2001/03/22 00:06:50 bwelling Exp $ */
|
/* $Id: dighost.c,v 1.198 2001/03/28 03:09:47 bwelling Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Notice to programmers: Do not use this code as an example of how to
|
* Notice to programmers: Do not use this code as an example of how to
|
||||||
@@ -133,7 +133,6 @@ isc_boolean_t memdebugging = ISC_FALSE;
|
|||||||
char *progname = NULL;
|
char *progname = NULL;
|
||||||
isc_mutex_t lookup_lock;
|
isc_mutex_t lookup_lock;
|
||||||
dig_lookup_t *current_lookup = NULL;
|
dig_lookup_t *current_lookup = NULL;
|
||||||
isc_uint32_t rr_limit = INT_MAX;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Apply and clear locks at the event level in global task.
|
* Apply and clear locks at the event level in global task.
|
||||||
@@ -2111,7 +2110,6 @@ check_for_more_data(dig_query_t *query, dns_message_t *msg,
|
|||||||
dns_rdata_soa_t soa;
|
dns_rdata_soa_t soa;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
isc_buffer_t b;
|
isc_buffer_t b;
|
||||||
isc_boolean_t atlimit=ISC_FALSE;
|
|
||||||
|
|
||||||
debug("check_for_more_data()");
|
debug("check_for_more_data()");
|
||||||
|
|
||||||
@@ -2142,8 +2140,6 @@ check_for_more_data(dig_query_t *query, dns_message_t *msg,
|
|||||||
continue;
|
continue;
|
||||||
do {
|
do {
|
||||||
query->rr_count++;
|
query->rr_count++;
|
||||||
if (query->rr_count >= rr_limit)
|
|
||||||
atlimit = ISC_TRUE;
|
|
||||||
dns_rdata_reset(&rdata);
|
dns_rdata_reset(&rdata);
|
||||||
dns_rdataset_current(rdataset, &rdata);
|
dns_rdataset_current(rdataset, &rdata);
|
||||||
/*
|
/*
|
||||||
@@ -2252,16 +2248,11 @@ check_for_more_data(dig_query_t *query, dns_message_t *msg,
|
|||||||
}
|
}
|
||||||
result = dns_message_nextname(msg, DNS_SECTION_ANSWER);
|
result = dns_message_nextname(msg, DNS_SECTION_ANSWER);
|
||||||
} while (result == ISC_R_SUCCESS);
|
} while (result == ISC_R_SUCCESS);
|
||||||
if (atlimit) {
|
|
||||||
doexit:
|
|
||||||
received(b.used, &sevent->address, query);
|
|
||||||
if (atlimit)
|
|
||||||
if (exitcode < 7)
|
|
||||||
exitcode = 7;
|
|
||||||
return (ISC_TRUE);
|
|
||||||
}
|
|
||||||
launch_next_query(query, ISC_FALSE);
|
launch_next_query(query, ISC_FALSE);
|
||||||
return (ISC_FALSE);
|
return (ISC_FALSE);
|
||||||
|
doexit:
|
||||||
|
received(b.used, &sevent->address, query);
|
||||||
|
return (ISC_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user