From: Andrei Pavel Date: Tue, 25 May 2021 16:54:57 +0000 (+0300) Subject: [#1119] perfdhcp usage as raw string literal X-Git-Tag: Kea-1.9.9~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ab5b504ed6b176599a7354da8e162cf2c59fd35;p=thirdparty%2Fkea.git [#1119] perfdhcp usage as raw string literal --- diff --git a/src/bin/perfdhcp/command_options.cc b/src/bin/perfdhcp/command_options.cc index 60d3a87f1f..cb2f79f9f0 100644 --- a/src/bin/perfdhcp/command_options.cc +++ b/src/bin/perfdhcp/command_options.cc @@ -1168,184 +1168,186 @@ CommandOptions::printCommandLine() const { void CommandOptions::usage() { std::cout << - "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" - "transmitting a DHCP DISCOVER to this address.\n" - "\n" - "For DHCPv6 operation, exchanges are initiated by transmitting a DHCP\n" - "SOLICIT to this address. In the DHCPv6 case, the special name 'all'\n" - "can be used to refer to All_DHCP_Relay_Agents_and_Servers (the\n" - "multicast address FF02::1:2), or the special name 'servers' to refer\n" - "to All_DHCP_Servers (the multicast address FF05::1:3). The [server]\n" - "argument is optional only in the case that -l is used to specify an\n" - "interface, in which case [server] defaults to 'all'.\n" - "\n" - "The default is to perform a single 4-way exchange, effectively pinging\n" - "the server.\n" - "The -r option is used to set up a performance test, without\n" - "it exchanges are initiated as fast as possible.\n" - "The other scenario is an avalanche which is selected by\n" - "--scenario avalanche. It first sends as many Discovery or Solicit\n" - "messages as request in -R option then back off mechanism is used for\n" - "each simulated client until all requests are answered. At the end\n" - "time of whole scenario is reported.\n" - "\n" - "Options:\n" - "-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" - "-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" - " (and default) mac=00:0c:01:02:03:04.\n" - "-d: Specify the time after which a request is treated as\n" - " having been lost. The value is given in seconds and may contain a\n" - " fractional component. The default is 1 second.\n" - "-e: A type of lease being requested from the server. It\n" - " may be one of the following: address-only, prefix-only or\n" - " address-and-prefix. The address-only indicates that the regular\n" - " address (v4 or v6) will be requested. The prefix-only indicates\n" - " that the IPv6 prefix will be requested. The address-and-prefix\n" - " indicates that both IPv6 address and prefix will be requested.\n" - " The '-e prefix-only' and -'e address-and-prefix' must not be\n" - " used with -4.\n" - "-E: Offset of the (DHCPv4) secs field / (DHCPv6)\n" - " elapsed-time option in the (second/request) template.\n" - " The value 0 disables it.\n" - "-f: Rate at which DHCPv4 or DHCPv6 renew requests are sent\n" - " to a server. This value is only valid when used in conjunction\n" - " 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" - "-h: Print this help.\n" - "-i: Do only the initial part of an exchange: DO or SA, depending on\n" - " whether -6 is given.\n" - "-I: Offset of the (DHCPv4) IP address in the requested-IP\n" - " option / (DHCPv6) IA_NA option in the (second/request) template.\n" - "-J: Text file that include multiple addresses.\n" - " If provided perfdhcp will choose randomly one of addresses for each\n" - " exchange.\n" - "-l: For DHCPv4 operation, specify the local\n" - " hostname/address to use when communicating with the server. By\n" - " default, the interface address through which traffic would\n" - " normally be routed to the server is used.\n" - " For DHCPv6 operation, specify the name of the network interface\n" - " via which exchanges are initiated.\n" - "-L: Specify the local port to use\n" - " (the value 0 means to use the default).\n" - "-M: A text file containing a list of MAC addresses,\n" - " one per line. If provided, a MAC address will be chosen randomly\n" - " from this list for every new exchange. In the DHCPv6 case, MAC\n" - " addresses are used to generate DUID-LLs. This parameter must not be\n" - " used in conjunction with the -b parameter.\n" - "-N: Specify the remote port to use\n" - " (the value 0 means to use the default).\n" - "-o: Send custom option with the specified code and the\n" - " specified buffer in hexstring format.\n" - "-O: Offset of the last octet to randomize in the template.\n" - "-P: Initiate first exchanges back to back at startup.\n" - "-r: Initiate DORA/SARR (or if -i is given, DO/SA)\n" - " exchanges per second. A periodic report is generated showing the\n" - " number of exchanges which were not completed, as well as the\n" - " average response latency. The program continues until\n" - " interrupted, at which point a final report is generated.\n" - "-R: Specify how many different clients are used. With 1\n" - " (the default), all requests seem to come from the same client.\n" - "-s: Specify the seed for randomization, making it repeatable.\n" - "--scenario : where name is 'basic' (default) or 'avalanche'.\n" - "-S: Offset of the server-ID option in the\n" - " (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