]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
reviewed marka/bwelling
authorMark Andrews <marka@isc.org>
Thu, 22 Aug 2002 23:57:47 +0000 (23:57 +0000)
committerMark Andrews <marka@isc.org>
Thu, 22 Aug 2002 23:57:47 +0000 (23:57 +0000)
1263.   [contrib]       queryperf usage was incomplete.  Add '-h' for help.

CHANGES
contrib/queryperf/queryperf.c

diff --git a/CHANGES b/CHANGES
index b66516761403770011ae0b259cbd0eba34fb9d53..61a79b6a37c838e29dfc667ae033008a423f560b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1263.  [contrib]       queryperf usage was incomplete.  Add '-h' for help.
+
 1362.  [func]          "localhost" and "localnet" acls now include IPv6
                        addresses / prefixes.
 
index 7f56a61ea51b2f2e17d3c093514fd1c26b1cd33b..4aa34c98cbac52a08674ff7b8f944e6631950c26 100644 (file)
@@ -18,7 +18,7 @@
 /***
  ***   DNS Query Performance Testing Tool  (queryperf.c)
  ***
- ***   Version $Id: queryperf.c,v 1.5 2002/07/22 02:47:24 marka Exp $
+ ***   Version $Id: queryperf.c,v 1.6 2002/08/22 23:57:47 marka Exp $
  ***
  ***   Stephen Jacob <sj@nominum.com>
  ***/
@@ -180,7 +180,7 @@ void
 show_startup_info(void) {
        printf("\n"
 "DNS Query Performance Testing Tool\n"
-"Version: $Id: queryperf.c,v 1.5 2002/07/22 02:47:24 marka Exp $\n"
+"Version: $Id: queryperf.c,v 1.6 2002/08/22 23:57:47 marka Exp $\n"
 "\n");
 }
 
@@ -194,6 +194,7 @@ show_usage(void) {
 "\n"
 "Usage: queryperf [-d datafile] [-s server_addr] [-p port] [-q num_queries]\n"
 "                 [-b bufsize] [-t timeout] [-n] [-l limit] [-1]\n"
+"                 [-e] [-D] [-c] [-v] [-h]\n"
 "  -d specifies the input data file (default: stdin)\n"
 "  -s sets the server to query (default: %s)\n"
 "  -p sets the port on which to query the server (default: %u)\n"
@@ -207,6 +208,7 @@ show_usage(void) {
 "  -D set the DNSSEC OK bit (implies EDNS)\n"
 "  -c print the number of packets with each rcode\n"
 "  -v verbose: report the RCODE of each response on stdout\n"
+"  -h print this usage\n"
 "\n",
                DEF_SERVER_TO_QUERY, DEF_SERVER_PORT,
                DEF_MAX_QUERIES_OUTSTANDING, DEF_QUERY_TIMEOUT,
@@ -423,7 +425,7 @@ parse_args(int argc, char **argv) {
        int c;
        unsigned int uint_arg_val;
 
-       while ((c = getopt(argc, argv, "q:t:nd:s:p:1l:b:eDcv")) != -1) {
+       while ((c = getopt(argc, argv, "q:t:nd:s:p:1l:b:eDcvh")) != -1) {
                switch (c) {
                case 'q':
                        if (is_uint(optarg, &uint_arg_val) == TRUE) {
@@ -523,7 +525,8 @@ parse_args(int argc, char **argv) {
                case 'v':
                        verbose = 1;
                        break;
-
+               case 'h':
+                       return (-1);
                default:
                        fprintf(stderr, "Invalid option: -%c\n", optopt);
                        return (-1);