For the sake of consistency and easier typing,

introduce "-tunnel" as an alias for "deletetunnel".
The latter is overly long and prone to typos,  but
keep it for POLA since it costs nothing.

MFC after:	5 days
This commit is contained in:
Yaroslav Tykhiy 2005-09-29 23:53:29 +00:00
parent 7259f7c495
commit 9e241c5ef2
2 changed files with 6 additions and 1 deletions

View File

@ -1153,10 +1153,14 @@ and
.Ar dest_addr .Ar dest_addr
are interpreted as the outer source/destination for the encapsulating are interpreted as the outer source/destination for the encapsulating
IPv4/IPv6 header. IPv4/IPv6 header.
.It Cm deletetunnel .It Fl tunnel
Unconfigure the physical source and destination address for IP tunnel Unconfigure the physical source and destination address for IP tunnel
interfaces previously configured with interfaces previously configured with
.Cm tunnel . .Cm tunnel .
.It Cm deletetunnel
Another name for the
.Fl tunnel
parameter.
.El .El
.Pp .Pp
The following parameters are specific to The following parameters are specific to

View File

@ -1026,6 +1026,7 @@ static struct cmd basic_cmds[] = {
DEF_CMD_ARG("broadcast", setifbroadaddr), DEF_CMD_ARG("broadcast", setifbroadaddr),
DEF_CMD_ARG("ipdst", setifipdst), DEF_CMD_ARG("ipdst", setifipdst),
DEF_CMD_ARG2("tunnel", settunnel), DEF_CMD_ARG2("tunnel", settunnel),
DEF_CMD("-tunnel", 0, deletetunnel),
DEF_CMD("deletetunnel", 0, deletetunnel), DEF_CMD("deletetunnel", 0, deletetunnel),
DEF_CMD("link0", IFF_LINK0, setifflags), DEF_CMD("link0", IFF_LINK0, setifflags),
DEF_CMD("-link0", -IFF_LINK0, setifflags), DEF_CMD("-link0", -IFF_LINK0, setifflags),