diff --git a/CHANGES b/CHANGES index e73b206903..5adcc1ba6e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ + 290. [cleanup] +twiddle option to dig (for testing only) removed. + 289. [cleanup] dig is now installed in $bindir instead of $sbindir. host is now installed in $bindir. (Be sure to remove any $sbindir/dig from a previous release.) diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 8aa0ff687d..e5ce17011c 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: dig.c,v 1.51 2000/06/23 16:53:53 marka Exp $ */ +/* $Id: dig.c,v 1.52 2000/06/28 18:20:41 mws Exp $ */ #include #include @@ -57,9 +57,6 @@ extern int ndots; extern int tries; extern int lookup_counter; extern char fixeddomain[MXNAME]; -#ifdef TWIDDLE -extern isc_boolean_t twiddle; -#endif extern int exitcode; extern isc_sockaddr_t bind_address; extern char keynametext[MXNAME]; @@ -151,9 +148,6 @@ show_usage(void) { " +[no]recursive (Recursive mode)\n" " +[no]aaonly (Set AA flag in query)\n" " +[no]details (Show details of all requests)\n" -#ifdef TWIDDLE -" +twiddle (Intentionally form bad requests)\n" -#endif " +ndots=### (Set NDOTS value)\n" " +[no]comments (Control display of comment lines)\n" " +[no]question (Control display of question)\n" @@ -921,10 +915,6 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) { comments = ISC_FALSE; } -#ifdef TWIDDLE - } else if (strncmp(rv[0], "+twiddle", 6) == 0) { - twiddle = ISC_TRUE; -#endif } else if (strncmp(rv[0], "-c", 2) == 0) { if (have_host) { if (rv[0][2] != 0) { @@ -1220,28 +1210,11 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) { int main(int argc, char **argv) { -#ifdef TWIDDLE - FILE *fp; - int i, p; -#endif - ISC_LIST_INIT(lookup_list); ISC_LIST_INIT(server_list); ISC_LIST_INIT(search_list); debug ("dhmain()"); -#ifdef TWIDDLE - fp = fopen("/dev/urandom", "r"); - if (fp != NULL) { - fread (&i, sizeof(int), 1, fp); - srandom(i); - } - else { - srandom ((int)&main); - } - p = getpid()%16+8; - for (i = 0 ; isendbuf); - } -#endif ISC_LIST_ENQUEUE(query->sendlist, &lookup->sendbuf, link); debug("Sending a request."); result = isc_time_now(&query->time_sent); @@ -1400,11 +1365,6 @@ launch_next_query(dig_query_t *query, isc_boolean_t include_question) { isc_buffer_putuint16(&query->slbuf, query->lookup->sendbuf.used); ISC_LIST_ENQUEUE(query->sendlist, &query->slbuf, link); if (include_question) { -#ifdef TWIDDLE - if (twiddle) { - twiddlebuf(query->lookup->sendbuf); - } -#endif ISC_LIST_ENQUEUE(query->sendlist, &query->lookup->sendbuf, link); } diff --git a/bin/dig/host.c b/bin/dig/host.c index 4efe784597..07dadd1acf 100644 --- a/bin/dig/host.c +++ b/bin/dig/host.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: host.c,v 1.29 2000/06/22 22:37:31 mws Exp $ */ +/* $Id: host.c,v 1.30 2000/06/28 18:20:44 mws Exp $ */ #include #include @@ -685,28 +685,11 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) { int main(int argc, char **argv) { -#ifdef TWIDDLE - FILE *fp; - int i, p; -#endif - ISC_LIST_INIT(lookup_list); ISC_LIST_INIT(server_list); ISC_LIST_INIT(search_list); debug ("dhmain()"); -#ifdef TWIDDLE - fp = fopen("/dev/urandom", "r"); - if (fp != NULL) { - fread (&i, sizeof(int), 1, fp); - srandom(i); - } - else { - srandom ((int)&main); - } - p = getpid() % 16 + 8; - for (i = 0 ; i < p; i++); -#endif setup_libs(); parse_args(ISC_FALSE, argc, argv); setup_system();