Introduce `add'' and
remove'' as alternatives to
alias'' and
`delete''.
Improve compatibility with BSD/OS, and also more accurately reflect that IP aliases aren't really any different than the primary IP address on an interface. Reviewed by: dcs Approved by: jkh
This commit is contained in:
parent
90a822243f
commit
d6d1cb48a9
@ -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.
|
||||
|
@ -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 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user