diff options
author | Masaq- <tilt@techie.com> | 2019-01-30 22:42:00 +0000 |
---|---|---|
committer | Masaq- <tilt@techie.com> | 2019-01-30 22:42:00 +0000 |
commit | 020634e1e84ab6063b0b403432002073bdaffe09 (patch) | |
tree | ef496ad9e4f2eb49bed999c469df5812c90ecf56 /src/options.c | |
parent | e5d53acbe1c11d9437648071f550d14e19439f01 (diff) |
short command line options -w -a -t
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c index 4ae434f..024e358 100644 --- a/src/options.c +++ b/src/options.c @@ -380,7 +380,7 @@ int parse_options(int argc, char **argv) { /* parse command line arguments */ while (1) { - 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); + c = getopt_long(argc, argv, "m:p:l:r::R::c:v:L::o::sP:d::Su::g::C::e::w:a:t:h", &long_options[0], &oidx); if (c == -1) break; switch (c) { @@ -529,6 +529,21 @@ 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 'h': print_usage(argv[0]); exit(EXIT_SUCCESS); |