Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2007 17:26:18 -0500
From:      "J. T. Farmer" <jfarmer@goldsword.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: Desired behaviour of "ifconfig -alias"
Message-ID:  <45D0E98A.3010600@goldsword.com>
In-Reply-To: <200702121809.l1CI9rBq065457@lurza.secnetix.de>
References:  <200702121809.l1CI9rBq065457@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Oliver Fromme wrote:
> In the case of adding something, what should be added if
> nothing is specified?  Should the tool invent an arbitrary
> IP address and add it?  Now that would be nonsensical.
>
> But when removing something without specifying which one,
> it makes some sense to simply remove the first existing
> address on that interface.  It would even be OK with me
> to remove the last one, or an arbitrary one -- I use that
> shortcut mostely when I need to remove the only address
> from an interface (or all existing addresses), so it
> doesn't matter.
>   
Doing apparently random and arbitrary things is bad, regardless.  To
re-cast the argument, suppose you found out that your employer had
a command in the company accounting system called
"VacationConfig -transfer" that would transfer random days from your
vacation pot to some arbitrary receiver. ..

It is very clear that ifconfig does not behave in the manner that the man
pages claim.  Part of that appears to be simple bit-rot, part of it appears
to be an issue as to what it should do.  I suggest that everyone toss there
ideas over to -current/hackers and forge a consensus to what ifconfig
should do, and willing volunteers go off and mung the code & docs until 
it's
that way in -current.  Then MFC it back to -stable...

John

------------------------------------------------------------------
John T. Farmer          Owner & CTO              GoldSword Systems
jfarmer@goldsword.com   865-691-6498             Knoxville TN
    Consulting, Design, & Development of Networks & Software




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D0E98A.3010600>