From owner-freebsd-stable@FreeBSD.ORG Sat Feb 10 02:13:30 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 423D216A418 for ; Sat, 10 Feb 2007 02:13:30 +0000 (UTC) (envelope-from kevin@insidesystems.net) Received: from imap.insidesystems.net (imap.insidesystems.net [206.216.149.56]) by mx1.freebsd.org (Postfix) with ESMTP id 2325B13C4C3 for ; Sat, 10 Feb 2007 02:13:30 +0000 (UTC) (envelope-from kevin@insidesystems.net) Received: from [68.32.227.193] (helo=[127.0.0.1]) by imap.insidesystems.net with esmtpa (Exim 4.60 (FreeBSD)) (envelope-from ) id 1HFhk1-0008oU-2l; Fri, 09 Feb 2007 20:13:29 -0600 Message-ID: <45CD2A42.5050001@insidesystems.net> Date: Fri, 09 Feb 2007 21:13:22 -0500 From: Kevin Way Organization: InsideSystems, Inc. User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: Brooks Davis , freebsd-stable@freebsd.org References: <45CCE270.7080704@insidesystems.net> <20070209214908.GA64090@icarus.home.lan> <20070209222925.GB11826@lor.one-eyed-alien.net> In-Reply-To: <20070209222925.GB11826@lor.one-eyed-alien.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Desired behaviour of "ifconfig -alias" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Feb 2007 02:13:30 -0000 Brooks Davis wrote: > On Fri, Feb 09, 2007 at 01:49:08PM -0800, Jeremy Chadwick wrote: > >> On Fri, Feb 09, 2007 at 04:06:56PM -0500, Kevin Way wrote: >> >>> I recently ran into a bug in the jail startup scripts that caused this >>> command to be executed: >>> >>> ifconfig bce0 -alias >>> >>> It turns out that this command eliminated the primary IP for the device. >>> > It's way to late to make this change. This is known behavior and has > been for ages. If there's a bug it's in the documentation. > > -- Brooks > I'm as much of a change-hating curmudgeon as the next guy, but if anybody is relying on "ifconfig iface -alias" 's undefined behavior, then they deserve the pain that will come with a fix. As it stands the behavior appears to vary between drivers (archive search shows that on fxp it blows away all IPs, while on bce it blows away the primary IP, leaving all aliases intact.) Am I missing a reason that this could ever be desirable? If it was consistent, I could see an argument for documentation. But as it stands, the only thing to document would be that the behavior varies between drivers, and a fix has been declined on the basis of momentum. At a minimum can this get normalized in -HEAD? --Kevin Way