warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn
Log | Files | Refs | README

commit 41276205c18fb2a88460323f8dcc93020a17f31c
parent c7c867a6a3e3966b238eb2a98e3c8f9ea0612c51
Author: sin <sin@2f30.org>
Date:   Wed, 30 Mar 2016 13:38:36 +0100

rename type to devtype

Diffstat:
Mstun.8 | 10+++++-----
Mstun.c | 4++--
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/stun.8 b/stun.8 @@ -10,13 +10,13 @@ .Fl s .Op Fl b Ar address .Op Fl p Ar port -.Op Fl t Ar type +.Op Fl t Ar devtype .Ar interface .Nm stun .Op Fl df .Fl h Ar host .Op Fl p Ar port -.Op Fl t Ar type +.Op Fl t Ar devtype .Ar interface .Sh DESCRIPTION .Nm @@ -45,9 +45,9 @@ The default port is 12080. .It Fl h Ar host Connect to specified .Ar host . -.It Fl t Ar type -Select the tunnel device -.Ar type . +.It Fl t Ar devtype +Select the tunnel +.Ar device type . The two available device types are TUN and TAP. The default is TUN. .El .Sh AUTHORS diff --git a/stun.c b/stun.c @@ -750,8 +750,8 @@ err: void usage(void) { - fprintf(stderr, "usage: stun [-df] -s [-b address] [-p port] [-t type] interface\n"); - fprintf(stderr, " stun [-df] -h host [-p port] [-t type] interface\n"); + fprintf(stderr, "usage: stun [-df] -s [-b address] [-p port] [-t devtype] interface\n"); + fprintf(stderr, " stun [-df] -h host [-p port] [-t devtype] interface\n"); exit(1); }