summaryrefslogtreecommitdiff
path: root/networking/tunctl.c
diff options
context:
space:
mode:
authorPere Orga2011-04-11 03:29:49 +0200
committerDenys Vlasenko2011-04-11 03:29:49 +0200
commit5bc8c005a8e15c43285bc595a8d404de67a482ac (patch)
tree98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /networking/tunctl.c
parent73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff)
downloadbusybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip
busybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tunctl.c')
-rw-r--r--networking/tunctl.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/networking/tunctl.c b/networking/tunctl.c
index e17a9db..8cb733b 100644
--- a/networking/tunctl.c
+++ b/networking/tunctl.c
@@ -9,6 +9,25 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+
+//usage:#define tunctl_trivial_usage
+//usage: "[-f device] ([-t name] | -d name)" IF_FEATURE_TUNCTL_UG(" [-u owner] [-g group] [-b]")
+//usage:#define tunctl_full_usage "\n\n"
+//usage: "Create or delete tun interfaces\n"
+//usage: "\nOptions:"
+//usage: "\n -f name tun device (/dev/net/tun)"
+//usage: "\n -t name Create iface 'name'"
+//usage: "\n -d name Delete iface 'name'"
+//usage: IF_FEATURE_TUNCTL_UG(
+//usage: "\n -u owner Set iface owner"
+//usage: "\n -g group Set iface group"
+//usage: "\n -b Brief output"
+//usage: )
+//usage:
+//usage:#define tunctl_example_usage
+//usage: "# tunctl\n"
+//usage: "# tunctl -d tun0\n"
+
#include <netinet/in.h>
#include <net/if.h>
#include <linux/if_tun.h>