From: Tomek Mrugalski Date: Wed, 14 Feb 2018 13:36:57 +0000 (+0000) Subject: [github55] Changes after review: X-Git-Tag: trac5502_base~5^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a4ffb5ada32e7956508ad281261af48e75d2f63;p=thirdparty%2Fkea.git [github55] Changes after review: - lateExit renamed to waitToExit, logic updated - option renamed to exit-wait-time (-W) --- diff --git a/src/bin/perfdhcp/command_options.cc b/src/bin/perfdhcp/command_options.cc index 1cf3c43f5f..7d6babffc8 100644 --- a/src/bin/perfdhcp/command_options.cc +++ b/src/bin/perfdhcp/command_options.cc @@ -124,7 +124,7 @@ CommandOptions::reset() { mac_list_file_.clear(); mac_list_.clear(); num_request_.clear(); - late_exit_delay_ = 0; + exit_wait_time_ = 0; period_ = 0; drop_time_set_ = 0; drop_time_.assign(dt, dt + 2); @@ -217,8 +217,8 @@ CommandOptions::initialize(int argc, char** argv, bool print_cmd_line) { // In this section we collect argument values from command line // they will be tuned and validated elsewhere - while((opt = getopt(argc, argv, "hv46A:r:t:R:b:n:p:d:D:l:P:a:L:M:m:" - "s:iBc1T:X:O:E:S:I:x:w:e:f:F:")) != -1) { + while((opt = getopt(argc, argv, "hv46A:r:t:R:b:n:p:d:D:l:P:a:L:M:" + "s:iBc1T:X:O:E:S:I:x:W:w:e:f:F:")) != -1) { stream << " -" << static_cast(opt); if (optarg) { stream << " " << optarg; @@ -369,9 +369,9 @@ CommandOptions::initialize(int argc, char** argv, bool print_cmd_line) { loadMacs(); break; - case 'm': + case 'W': // 'm' for moratorium - late_exit_delay_ = nonNegativeInteger("value of late exit delay: " + exit_wait_time_ = nonNegativeInteger("value of exist wait time: " "-m must not be a " "negative integer"); break; @@ -1074,6 +1074,9 @@ CommandOptions::usage() const { "-T: The name of a file containing the template to use\n" " as a stream of hexadecimal digits.\n" "-v: Report the version number of this program.\n" + "-W