summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.88
-rw-r--r--sbin/ifconfig/ifconfig.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index a100c96..022dc4f 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -130,11 +130,14 @@ for example,
The following parameters may be set with
.Nm ifconfig :
.Bl -tag -width indent
+.It Cm add
+Another name for the ``alias'' parameter. Introduced for compatibility
+with BSD/OS.
.It Cm alias
Establish an additional network address for this interface.
This is sometimes useful when changing network numbers, and
one wishes to accept packets addressed to the old interface.
-If the alias is on the same subnet as the first network adress
+If the address is on the same subnet as the first network adress
for this interface, a netmask of 0xffffffff has to be specified.
.It Cm anycast
(Inet6 only)
@@ -331,6 +334,9 @@ of the form startnet-endnet. Appletalk uses this scheme instead of
netmasks though
.Fx
implements it internally as a set of netmasks.
+.It Cm remove
+Another name for the ``delete'' parameter. Introduced for compatibility
+with BSD/OS.
.It Cm phase
The argument following this specifies the version (phase) of the
Appletalk network attached to the interface. Values of 1 or 2 are permitted.
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 8b567bf..aa22007 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -170,9 +170,11 @@ struct cmd {
{ "-arp", IFF_NOARP, setifflags },
{ "debug", IFF_DEBUG, setifflags },
{ "-debug", -IFF_DEBUG, setifflags },
+ { "add", IFF_UP, notealias },
{ "alias", IFF_UP, notealias },
{ "-alias", -IFF_UP, notealias },
{ "delete", -IFF_UP, notealias },
+ { "remove", -IFF_UP, notealias },
#ifdef notdef
#define EN_SWABIPS 0x1000
{ "swabips", EN_SWABIPS, setifflags },
OpenPOWER on IntegriCloud