From 9e241c5ef20e3dd6605eb6be353ceb99f3144f22 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Thu, 29 Sep 2005 23:53:29 +0000 Subject: [PATCH] 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 --- sbin/ifconfig/ifconfig.8 | 6 +++++- sbin/ifconfig/ifconfig.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index ded7096602ec..e144d4914d58 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 3f4fe7140b71..ee0f0666247e 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),