| From | Sent On | Attachments |
|---|---|---|
| Kevin Way | Feb 9, 2007 9:35 pm | |
| Jeremy Chadwick | Feb 9, 2007 9:48 pm | |
| Brooks Davis | Feb 9, 2007 10:54 pm | |
| JoaoBR | Feb 10, 2007 1:00 am | |
| Kevin Way | Feb 10, 2007 2:13 am | |
| Jeremy Chadwick | Feb 10, 2007 2:47 am | |
| Ian Smith | Feb 10, 2007 5:12 am | |
| JoaoBR | Feb 10, 2007 10:16 am | |
| Michael Nottebrock | Feb 10, 2007 12:15 pm | |
| Ian Smith | Feb 10, 2007 2:19 pm | |
| Bruce M. Simpson | Feb 11, 2007 1:35 am | |
| Oliver Fromme | Feb 12, 2007 2:26 pm | |
| Brooks Davis | Feb 12, 2007 2:42 pm | |
| Jeremy Chadwick | Feb 12, 2007 3:36 pm | |
| Oliver Fromme | Feb 12, 2007 4:22 pm | |
| Brooks Davis | Feb 12, 2007 4:36 pm | |
| JoaoBR | Feb 12, 2007 5:27 pm | |
| Oliver Fromme | Feb 12, 2007 5:39 pm | |
| Brooks Davis | Feb 12, 2007 5:59 pm | |
| Oliver Fromme | Feb 12, 2007 6:09 pm | |
| Oliver Fromme | Feb 12, 2007 6:23 pm | |
| Brooks Davis | Feb 12, 2007 6:40 pm | |
| Jeremy Chadwick | Feb 12, 2007 7:16 pm | |
| Brooks Davis | Feb 12, 2007 7:27 pm | |
| John Hay | Feb 12, 2007 7:32 pm | |
| Jeremy Chadwick | Feb 12, 2007 7:34 pm | |
| Brooks Davis | Feb 12, 2007 7:43 pm | |
| Freddie Cash | Feb 12, 2007 7:47 pm | |
| JoaoBR | Feb 12, 2007 7:54 pm | |
| JoaoBR | Feb 12, 2007 9:17 pm | |
| Oliver Fromme | Feb 12, 2007 10:04 pm | |
| J. T. Farmer | Feb 12, 2007 11:14 pm | |
| Kevin Way | Feb 12, 2007 11:26 pm | |
| Joerg Pernfuss | Feb 13, 2007 2:01 am | |
| Brooks Davis | Feb 13, 2007 2:23 am | |
| Sam Leffler | Feb 13, 2007 4:00 am | |
| Freddie Cash | Feb 13, 2007 6:08 am | |
| JoaoBR | Feb 13, 2007 7:43 am | |
| Oliver Fromme | Feb 13, 2007 7:57 am | |
| JoaoBR | Feb 13, 2007 8:52 am | |
| Oliver Fromme | Feb 13, 2007 10:38 am | |
| Oliver Fromme | Feb 13, 2007 10:47 am | |
| Bruce M. Simpson | Feb 13, 2007 1:17 pm | |
| Freddie Cash | Feb 13, 2007 5:14 pm | |
| Pete French | Feb 13, 2007 5:19 pm | |
| Freddie Cash | Feb 13, 2007 5:22 pm | |
| Freddie Cash | Feb 13, 2007 5:44 pm | |
| Jeremy Chadwick | Feb 13, 2007 6:08 pm | |
| Oliver Fromme | Feb 13, 2007 6:37 pm | |
| Oliver Fromme | Feb 13, 2007 6:41 pm | |
| Freddie Cash | Feb 13, 2007 6:55 pm | |
| sth...@nethelp.no | Feb 13, 2007 7:02 pm | |
| Joan Picanyol i Puig | Feb 13, 2007 7:04 pm | |
| Patrick M. Hausen | Feb 13, 2007 7:10 pm | |
| Oliver Fromme | Feb 13, 2007 8:06 pm | |
| Oliver Fromme | Feb 13, 2007 8:36 pm | |
| Jeremy Chadwick | Feb 13, 2007 9:32 pm |
| Subject: | Desired behaviour of "ifconfig -alias" | |
|---|---|---|
| From: | Oliver Fromme (ol...@lurza.secnetix.de) | |
| Date: | Feb 13, 2007 7:57:17 am | |
| List: | org.freebsd.freebsd-stable | |
Kevin Way wrote:
Oliver Fromme wrote:
But you called it "confusing". That's just your personal perception. It doesn't mean it is confusing to everybody.
If asked what -alias does, would you really reply "it removes the primary IP, while leaving the alias?" Be honest here.
No, I wouldn't answer that, because there is no such thing as a primary IP. All IPs on an interface are equal. The term alias exists only for historical reasons, and it's clearly becoming obsolete.
If asked what "-alias" does, I would reply that it is an alias for "delete" or "remove", which removes an IP address from an interface. According to the docs, the IP address to be removed must be specified. The docs don't mention what happens if none is specified, so the behaviour is undefined and should not be relied on. It just happens that the behaviour is to remove an arbitrary IP address (which happens to be the first one).
That behaviour should be documented in the manual page.
Also note that it doesn't hurt anybody.
If you run RELENG_6_2, and a jail fails to start, this command is called. And instead of unaliasing the jail's alias, it (because of a bug in the shipped rc.d scripts), it removes the primary IP.
That's clearly a bug in the scripts then. They shouldn't call a command that can cause undefined behaviour.
I'm not against changing the behaviour for the -alias parameter, if it's done carefully and in -current first, as I wrote earlier. However, the behaviour for "delete" and "remove" should stay as-is (and be documented in the man page) because it makes sense.
Best regards Oliver
-- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch?ftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n- chen, HRB 125758, Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart Any opinions expressed in this message are personal to the author and may not necessarily reflect the opinions of secnetix GmbH & Co KG in any way. FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
"Documentation is like sex; when it's good, it's very, very good, and when it's bad, it's better than nothing." -- Dick Brandon





