diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-02-26 18:55:39 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-02-26 18:55:39 +0000 |
commit | ccbd17ca87bbd7b091dddbfe192e3b06aeab3189 (patch) | |
tree | 22d05e3dd418545908601adb554914de78874bb9 /sbin/ifconfig/ifconfig.c | |
parent | 1fe9db8a589e36c181fc4d2ad8aa026bc8ef6eec (diff) | |
download | FreeBSD-src-ccbd17ca87bbd7b091dddbfe192e3b06aeab3189.zip FreeBSD-src-ccbd17ca87bbd7b091dddbfe192e3b06aeab3189.tar.gz |
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
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 }, |