From: Andrei Pavel Date: Tue, 25 May 2021 16:34:40 +0000 (+0300) Subject: [#1119] order perfdhcp options X-Git-Tag: Kea-1.9.9~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8766894e022b6feda05f4c0edf458aa08d85c76d;p=thirdparty%2Fkea.git [#1119] order perfdhcp options --- diff --git a/src/bin/perfdhcp/command_options.cc b/src/bin/perfdhcp/command_options.cc index 6c6598eedd..60d3a87f1f 100644 --- a/src/bin/perfdhcp/command_options.cc +++ b/src/bin/perfdhcp/command_options.cc @@ -1168,17 +1168,16 @@ CommandOptions::printCommandLine() const { void CommandOptions::usage() { std::cout << - "perfdhcp [-huv] [-4|-6] [-A] [-e]\n" - " [-r] [-f]\n" - " [-F] [-t] [-C] [-R]\n" - " [-b] [-n] [-p] [-d]\n" - " [-D] [-l] [-P]\n" - " [-L] [-N]\n" - " [-o] [-s] [-i] [-B] [-W]\n" - " [-c] [-1] [-M] [-T]\n" - " [-X] [-O]\n" - " [-S] [-I] [-x]\n" - " [-w] [server]\n" + "perfdhcp [-1] [-4 | -6] [-A encapsulation-level] [-b base] [-B] [-c]\n" + " [-C separator] [-d drop-time] [-D max-drop] [-e lease-type]\n" + " [-E time-offset] [-f renew-rate] [-F release-rate] [-g thread-mode]\n" + " [-h] [-i] [-I ip-offset] [-J remote-address-list-file]\n" + " [-l local-address|interface] [-L local-port] [-M mac-list-file]\n" + " [-n num-request] [-N remote-port] [-O random-offset]\n" + " [-o code,hexstring] [-p test-period] [-P preload] [-r rate]\n" + " [-R num-clients] [-s seed] [-S srvid-offset] [--scenario name]\n" + " [-t report] [-T template-file] [-u] [-v] [-W exit-wait-time]\n" + " [-w script_name] [-x diagnostic-selector] [-X xid-offset] [server]\n" "\n" "The [server] argument is the name/address of the DHCP server to\n" "contact. For DHCPv4 operation, exchanges are initiated by\n" @@ -1206,8 +1205,6 @@ CommandOptions::usage() { "-1: Take the server-ID option from the first received message.\n" "-4: DHCPv4 operation (default). This is incompatible with the -6 option.\n" "-6: DHCPv6 operation. This is incompatible with the -4 option.\n" - "-u: Enable checking address uniqueness. Lease valid lifetime\n" - " should not be shorter than test duration.\n" "-b: The base mac, duid, IP, etc, used to simulate different\n" " clients. This can be specified multiple times, each instance is\n" " in the = form, for instance:\n" @@ -1231,7 +1228,7 @@ CommandOptions::usage() { " with the exchange rate (given by -r). Furthermore the sum of\n" " this value and the release-rate (given by -F: 'single' or 'multi'. In multi-thread mode packets\n" " are received in separate thread. This allows better utilisation of CPUs.\n" " If more than 1 CPU is present then multi-thread mode is the default,\n" " otherwise single-thread is the default.\n" @@ -1275,6 +1272,8 @@ CommandOptions::usage() { " (second/request) template.\n" "-T: The name of a file containing the template to use\n" " as a stream of hexadecimal digits.\n" + "-u: Enable checking address uniqueness. Lease valid lifetime\n" + " should not be shorter than test duration.\n" "-v: Report the version number of this program.\n" "-W