From 21e0acb3aefc75d191b007e00f371836f42e3a42 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 29 Feb 2008 18:30:47 +0000 Subject: new anyctr options --- anyctrOptions.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'anyctrOptions.cpp') diff --git a/anyctrOptions.cpp b/anyctrOptions.cpp index 17a8f3f..3513857 100644 --- a/anyctrOptions.cpp +++ b/anyctrOptions.cpp @@ -142,7 +142,7 @@ bool Options::parse(int argc, char* argv[]) return false; PARSE_SCALAR_PARAM("-r","--remote-host", remote_addr_) PARSE_SCALAR_PARAM("-o","--remote-port", remote_port_) - PARSE_SCALAR_PARAM2("-n","--ifconfig", ifconfig_param_local_, ifconfig_param_remote_netmask_) + PARSE_SCALAR_PARAM("-n","--prefix", ifconfig_param_remote_netmask_) PARSE_SCALAR_PARAM("-w","--window-size", seq_window_size_) PARSE_SCALAR_PARAM("-m","--mux", mux_) PARSE_SCALAR_PARAM("-l","--prefix-len", network_prefix_length_) @@ -173,8 +173,7 @@ void Options::printUsage() std::cout << "anyctr [-h|--help] prints this..." << std::endl; std::cout << " [-r|--remote-host] remote host" << std::endl; std::cout << " [-o|--remote-port] remote port" << std::endl; - std::cout << " [-n|--ifconfig] the local address for the tun/tap device" << std::endl - << " the remote address(tun) or netmask(tap)" << std::endl; + std::cout << " [-n|--prefix] remote subnet for route" << std::endl; std::cout << " [-w|--window-size] seqence number window size" << std::endl; std::cout << " [-m|--mux] the multiplex id to use" << std::endl; std::cout << " [-l|--prefix-len] network prefix length" << std::endl; -- cgit v1.2.3