From 1eb9f3816376de7959e2ac7bd526510da4033b3d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 2 Jan 2009 14:53:30 +0000 Subject: changed -R|--route to -T|--route because -R was already taken added a file containing all used letters for command line --- cmd-option-letters | 53 +++++++++++++++++++++++++++++++++++++++++++++ src/anyConfOptions.cpp | 4 ++-- src/man/anytun-config.8.txt | 4 ++-- src/man/anytun.8.txt | 4 ++-- src/options.cpp | 4 ++-- 5 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 cmd-option-letters diff --git a/cmd-option-letters b/cmd-option-letters new file mode 100644 index 0000000..0d3b89c --- /dev/null +++ b/cmd-option-letters @@ -0,0 +1,53 @@ +a: auth algo +b: +c: cipher +d: device name +e: +f: +g: +h: print help text +i: local interface +j: +k: kd prf +l: ld_kdr +m: mux +n: ifconfig +o: remote port +p: local port +q: +r: remote host +s: sender id +t: device type +u: username when chroot +v: +w: window size +x: post up script +y: +z: + +A: master salt +B: +C: run in chroot +D: do not daemonize +E: +F: +G: +H: chroot direcotry +I: local sync interface +J: +K: master key +L: +M: sync hosts +N: +O: remote sync port +P: write pid file +Q: +R: remote sync host +S: local sync port +T: route +U: +V: +W: +X: control host +Y: +Z: diff --git a/src/anyConfOptions.cpp b/src/anyConfOptions.cpp index f768e54..0cc0c7c 100644 --- a/src/anyConfOptions.cpp +++ b/src/anyConfOptions.cpp @@ -149,7 +149,7 @@ bool Options::parse(int argc, char* argv[]) PARSE_HEXSTRING_PARAM_SEC("-K","--key", key_) PARSE_HEXSTRING_PARAM_SEC("-A","--salt", salt_) PARSE_SCALAR_PARAM("-k","--kd-prf", kd_prf_) - PARSE_CSLIST_PARAM("-R","--route", route_queue) + PARSE_CSLIST_PARAM("-T","--route", route_queue) else return false; } @@ -179,7 +179,7 @@ void Options::printUsage() std::cout << " [-K|--key] master key to use for encryption" << std::endl; std::cout << " [-A|--salt] master salt to use for encryption" << std::endl; // std::cout << " [-k|--kd-prf] key derivation pseudo random function" << std::endl; - std::cout << " [-R|--route] / add a route to connection, can be invoked several times" << std::endl; + std::cout << " [-T|--route] / add a route to connection, can be invoked several times" << std::endl; } void Options::printOptions() diff --git a/src/man/anytun-config.8.txt b/src/man/anytun-config.8.txt index 5f0f2db..258bec8 100644 --- a/src/man/anytun-config.8.txt +++ b/src/man/anytun-config.8.txt @@ -16,7 +16,7 @@ SYNOPSIS [ *-m|--mux* ] [ *-K|--key* ] [ *-A|--salt* ] -[ *-R|--route* / ] +[ *-T|--route* / ] DESCRIPTION ----------- @@ -86,7 +86,7 @@ Master salt in hexadecimal notation, eg 01a2b3c4d5e6f708a9b0cadbecfd, with a mandatory length of 28 characters (14 bytes). --R|--route / +-T|--route / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ add a route to connection. This can be invoked several times. diff --git a/src/man/anytun.8.txt b/src/man/anytun.8.txt index 76c274d..2dd0a11 100644 --- a/src/man/anytun.8.txt +++ b/src/man/anytun.8.txt @@ -30,7 +30,7 @@ SYNOPSIS [ *-x|--post-up-script*