aboutsummaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c58
1 files changed, 1 insertions, 57 deletions
diff --git a/src/options.c b/src/options.c
index 5f2de0f..f811cb5 100644
--- a/src/options.c
+++ b/src/options.c
@@ -146,32 +146,6 @@ static const struct option_usage usage[] = {
"Unprivileged mode will only work on some systems, and is in general less reliable\n"
"than running in privileged mode.\n"
},
- /** --window-size */
- {"packets", 0, OPT_DEC32, {.unum = 64},
- "Tune the number of packets that can be in-flight at the same time.\n"
- "Increasing the window size will improve the maximum potential bandwidth.\n"
- },
- /** --ack-interval */
- {"milliseconds", 0, OPT_DEC32, {.unum = 1000},
- "Tune the explicit acknowledgement interval (in milliseconds)\n"
- "Decreasing the acknowledgement interval can improve NAT stability.\n"
- },
- /** --resend-interval */
- {"milliseconds", 0, OPT_DEC32, {.unum = 1500},
- "Tune the lost packet timeout (in milliseconds)\n"
- "Decreasing the resend interval can compensate for frequent packet loss.\n"
- },
- /** --payload-size */
- {"bytes", 0, OPT_DEC32, {.unum = 1024},
- "Tune the amount of data per packet (in bytes)\n"
- "Decreasing the payload size can avoid corruption of large packets.\n"
- "Increasing the payload size can compensate for out-of-order delivery.\n"
- },
- /** --empty-pings */
- {"count", 0, OPT_DEC32, {.unum = 0},
- "Tune the number of empty pings to send with each explicit acknowledgement.\n"
- "Empty pings can compensate for ICMP sequence number inspection.\n"
- },
/** --force-sha512 */
{"force-sha512", 0, OPT_BOOL, {.num = 0},
"Force SHA512 as challenge response checksum generator.\n"
@@ -244,11 +218,6 @@ static struct option long_options[] = {
{"passwd", required_argument, 0, 'P'},
{"udp", no_argument, &opts.udp, 1},
{"unprivileged", no_argument, &opts.unprivileged, 1},
- {"window-size", required_argument, 0, 'w'},
- {"ack-interval", required_argument, 0, 'a'},
- {"resend-interval", required_argument, 0, 't'},
- {"payload-size", required_argument, 0, 'y'},
- {"empty-pings", required_argument, 0, 'E'},
{"force-sha512", no_argument, &opts.force_sha512, 1},
{"daemon", optional_argument, 0, 'd'},
{"syslog", no_argument, 0, 'S'},
@@ -437,7 +406,7 @@ int parse_options(int argc, char **argv) {
* since you have to pass long options as '--option=value'. Commonly used
* '--option value' is *NOT* allowed for some libc implementations.
*/
- c = getopt_long(argc, argv, "m:p:l:r::R::c:v:L:o::sP:d::Su::g::C::e::w:a:t:y:E:h", &long_options[0], &oidx);
+ c = getopt_long(argc, argv, "m:p:l:r::R::c:v:L:o::sP:d::Su::g::C::e::h", &long_options[0], &oidx);
if (c == -1) break;
switch (c) {
@@ -590,31 +559,6 @@ int parse_options(int argc, char **argv) {
pt_log(kLog_error, "SeLinux: %s\n", "feature not supported");
exit(1);
#endif
- case 'w':
- if (!optarg)
- break;
- opts.window_size = atoi(optarg);
- break;
- case 'a':
- if (!optarg)
- break;
- opts.ack_interval = atoi(optarg);
- break;
- case 't':
- if (!optarg)
- break;
- opts.resend_interval = atoi(optarg);
- break;
- case 'y':
- if (!optarg)
- break;
- opts.payload_size = atoi(optarg);
- break;
- case 'E':
- if (!optarg)
- break;
- opts.empty_pings = atoi(optarg);
- break;
case 'h':
print_usage(argv[0]);
exit(EXIT_SUCCESS);