aboutsummaryrefslogtreecommitdiff
path: root/networking/tunctl.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /networking/tunctl.c
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
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 e17a9db64..8cb733b68 100644
--- a/networking/tunctl.c
+++ b/networking/tunctl.c
@@ -9,6 +9,25 @@
9 * 9 *
10 * Licensed under GPLv2, see file LICENSE in this source tree. 10 * Licensed under GPLv2, see file LICENSE in this source tree.
11 */ 11 */
12
13//usage:#define tunctl_trivial_usage
14//usage: "[-f device] ([-t name] | -d name)" IF_FEATURE_TUNCTL_UG(" [-u owner] [-g group] [-b]")
15//usage:#define tunctl_full_usage "\n\n"
16//usage: "Create or delete tun interfaces\n"
17//usage: "\nOptions:"
18//usage: "\n -f name tun device (/dev/net/tun)"
19//usage: "\n -t name Create iface 'name'"
20//usage: "\n -d name Delete iface 'name'"
21//usage: IF_FEATURE_TUNCTL_UG(
22//usage: "\n -u owner Set iface owner"
23//usage: "\n -g group Set iface group"
24//usage: "\n -b Brief output"
25//usage: )
26//usage:
27//usage:#define tunctl_example_usage
28//usage: "# tunctl\n"
29//usage: "# tunctl -d tun0\n"
30
12#include <netinet/in.h> 31#include <netinet/in.h>
13#include <net/if.h> 32#include <net/if.h>
14#include <linux/if_tun.h> 33#include <linux/if_tun.h>