summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2005-09-29 23:53:29 +0000
committeryar <yar@FreeBSD.org>2005-09-29 23:53:29 +0000
commit3ddc14f22ce145bcd209c232cb62a7086e4e285d (patch)
tree70315715ba0b5b739a92ebfb9d8439cf7b0a0ade /sbin
parent5917e3b86f18170e1ed147bcd40e95c992398e12 (diff)
downloadFreeBSD-src-3ddc14f22ce145bcd209c232cb62a7086e4e285d.zip
FreeBSD-src-3ddc14f22ce145bcd209c232cb62a7086e4e285d.tar.gz
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
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/ifconfig.86
-rw-r--r--sbin/ifconfig/ifconfig.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index ded7096..e144d49 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -1153,10 +1153,14 @@ and
.Ar dest_addr
are interpreted as the outer source/destination for the encapsulating
IPv4/IPv6 header.
-.It Cm deletetunnel
+.It Fl tunnel
Unconfigure the physical source and destination address for IP tunnel
interfaces previously configured with
.Cm tunnel .
+.It Cm deletetunnel
+Another name for the
+.Fl tunnel
+parameter.
.El
.Pp
The following parameters are specific to
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 3f4fe71..ee0f066 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1026,6 +1026,7 @@ static struct cmd basic_cmds[] = {
DEF_CMD_ARG("broadcast", setifbroadaddr),
DEF_CMD_ARG("ipdst", setifipdst),
DEF_CMD_ARG2("tunnel", settunnel),
+ DEF_CMD("-tunnel", 0, deletetunnel),
DEF_CMD("deletetunnel", 0, deletetunnel),
DEF_CMD("link0", IFF_LINK0, setifflags),
DEF_CMD("-link0", -IFF_LINK0, setifflags),
OpenPOWER on IntegriCloud