From dd7f98bd7a485031f7ae872592a4603adaf3b288 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 15 Apr 2008 19:09:02 +0000 Subject: added manpage for anytun-showtables --- src/anytun-showtables.cpp | 8 +--- src/man/Makefile | 8 +++- src/man/anytun-config.8.txt | 2 +- src/man/anytun-controld.8.txt | 2 +- src/man/anytun-showtables.8.txt | 81 +++++++++++++++++++++++++++++++++++++++++ src/man/anytun.8.txt | 2 +- 6 files changed, 91 insertions(+), 12 deletions(-) create mode 100644 src/man/anytun-showtables.8.txt diff --git a/src/anytun-showtables.cpp b/src/anytun-showtables.cpp index d9ae096..8aa1bd8 100644 --- a/src/anytun-showtables.cpp +++ b/src/anytun-showtables.cpp @@ -33,7 +33,6 @@ #include "log.h" #include "buffer.h" #include "keyDerivation.h" -#include "options.h" #include "seqWindow.h" #include "connectionList.h" #include "routingTable.h" @@ -80,11 +79,6 @@ void output(ConnectionList &cl) int main(int argc, char* argv[]) { int ret = 0; - if(!gOpt.parse(argc, argv)) - { - gOpt.printUsage(); - exit(-1); - } ConnectionList cl; std::stringstream iss_; @@ -121,7 +115,7 @@ int main(int argc, char* argv[]) missing_chars=-1; output(cl); delete[] buffer; - } + } else break; } diff --git a/src/man/Makefile b/src/man/Makefile index ad5c5d5..bbeaf2c 100644 --- a/src/man/Makefile +++ b/src/man/Makefile @@ -9,10 +9,14 @@ anytun-controld.8: anytun-controld.8.txt anytun-config.8: anytun-config.8.txt a2x -f manpage anytun-config.8.txt +anytun-showtables.8: anytun-showtables.8.txt + a2x -f manpage anytun-showtables.8.txt -manpage: anytun.8 anytun-controld.8 anytun-config.8 + +manpage: anytun.8 anytun-controld.8 anytun-config.8 anytun-showtables.8 clean: rm -f anytun.8 anytun.8.xml rm -f anytun-controld.8 anytun-controld.8.xml - rm -f anytun-config.8 anytun-config.8.xml \ No newline at end of file + rm -f anytun-config.8 anytun-config.8.xml + rm -f anytun-showtables.8 anytun-showtables.8.xml \ No newline at end of file diff --git a/src/man/anytun-config.8.txt b/src/man/anytun-config.8.txt index d9145fb..fb8479a 100644 --- a/src/man/anytun-config.8.txt +++ b/src/man/anytun-config.8.txt @@ -114,7 +114,7 @@ the developers know at satp@anytun.org. Of course, patches are preferred. SEE ALSO -------- -anytun(8), anytun-controld(8) +anytun(8), anytun-controld(8), anytun-showtables(8) AUTHORS ------- diff --git a/src/man/anytun-controld.8.txt b/src/man/anytun-controld.8.txt index f2461bf..43818fa 100644 --- a/src/man/anytun-controld.8.txt +++ b/src/man/anytun-controld.8.txt @@ -72,7 +72,7 @@ the developers know at satp@anytun.org. Of course, patches are preferred. SEE ALSO -------- -anytun(8), anytun-config(8) +anytun(8), anytun-config(8), anytun-showtables(8) AUTHORS ------- diff --git a/src/man/anytun-showtables.8.txt b/src/man/anytun-showtables.8.txt new file mode 100644 index 0000000..b3ee8fd --- /dev/null +++ b/src/man/anytun-showtables.8.txt @@ -0,0 +1,81 @@ +anytun-showtables(8) +==================== + +NAME +---- +anytun-showtables - anycast tunneling routeing table visualization utility + +SYNOPSIS +-------- + +*anytun-showtables* + +DESCRIPTION +----------- + +Anytun is an implementation of the Secure Anycast Tunneling Protocol +(SATP). Anycast provides a complete VPN solution similar to OpenVPN or +IPsec in tunnel mode. The main difference is that anycast enables the +setup of tunnels between an arbitrary combination of anycast, unicast +and multicast hosts. + +OPTIONS +------- + +This Tool does not take any Options. It takes the sync information from +the standard input and prints the routing table to the standard output. + +EXAMPLES +-------- + +Print routing table stored in local file + +----------------------------------------------------------------------------------- +# perl -ne 'chomp; print' < routingtable | ./anytun-showtables +----------------------------------------------------------------------------------- + +Print current routing table and watch changes + +----------------------------------------------------------------------------------- +# nc unicast1.anycast.anytun.org 23 | ./anytun-showtables +----------------------------------------------------------------------------------- + +BUGS +---- +Most likely there are some bugs in anytun. If you find a bug, please let +the developers know at satp@anytun.org. Of course, patches are preferred. + +SEE ALSO +-------- +anytun(8), anytun-controld(8), anytun-config(8) + +AUTHORS +------- +Design of SATP and wizards of this implementation: + +Othmar Gsenger +Erwin Nindl +Christian Pointner + +Debian packaging: + +Andreas Hirczy + +Manual page: + +Alexander List + +RESOURCES +--------- + +Main web site: http://www.anytun.org/ + + +COPYING +------- + +Copyright \(C) 2007-2008 Othmar Gsenger, Erwin Nindl and Christian +Pointner. This program is free software; you can redistribute +it and/or modify it under the terms of the GNU General Public License +version 2 as published by the Free Software Foundation. + diff --git a/src/man/anytun.8.txt b/src/man/anytun.8.txt index 27a0a3d..1de30bf 100644 --- a/src/man/anytun.8.txt +++ b/src/man/anytun.8.txt @@ -316,7 +316,7 @@ the developers know at satp@anytun.org. Of course, patches are preferred. SEE ALSO -------- -anytun-config(8), anytun-controld(8) +anytun-config(8), anytun-controld(8), anytun-showtables(8) AUTHORS ------- -- cgit v1.2.3