From owner-freebsd-questions@FreeBSD.ORG Sun Nov 6 22:21:12 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 025B2106572D for ; Sun, 6 Nov 2011 22:21:12 +0000 (UTC) (envelope-from moritz@wzff.de) Received: from barfooze.de (barfooze.de [78.46.117.212]) by mx1.freebsd.org (Postfix) with ESMTP id BB7A98FC29 for ; Sun, 6 Nov 2011 22:21:11 +0000 (UTC) Received: from localhost.localdomain ([127.0.0.1] helo=barfooze.de) by barfooze.de with smtp (Exim 4.76) (envelope-from ) id 1RNB5S-0000UR-CS for freebsd-questions@freebsd.org; Sun, 06 Nov 2011 23:21:10 +0100 Date: Sun, 6 Nov 2011 23:21:10 +0100 From: Moritz Wilhelmy To: freebsd-questions@freebsd.org Message-ID: <20111106222110.GU16096@barfooze.de> References: <20111106214624.GT16096@barfooze.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111106214624.GT16096@barfooze.de> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: "Deprecated" ifconfig__alias X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 22:21:12 -0000 On Sun, Nov 06, 2011 at 22:46:24 +0100, Moritz Wilhelmy wrote: > according to the rc.conf(5) manual page, the > ifconfig__alias_ mechanism has been deprecated: > > > And so on. For each ifconfig__alias entry that > is found, its contents are passed to ifconfig(8). > Execution stops at the first unsuccessful access, so if > something like this is present: > > ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff" > ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff" > ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff" > ifconfig_ed0_alias4="inet 127.0.0.254 netmask 0xffffffff" > > Then note that alias4 would not be added since the search > would stop with the missing `alias3'' entry. Due to this > difficult to manage behavior, the > ifconfig__alias form is deprecated. > > > I can't see any further hints by what it has been deprecated, and the > net is full of examples using this mechanism. Can someone point me to > whereever some equivalent functionality has been implemented? Should I > file a PR, or am I just being blind? (Machine is running 9.1-RC1, maybe > it has been deprecated after 8) Silly me, I guess that would be ipv4_addrs_? It would still be nice to mention that ipv4_addrs_ should be used in place of ifconfig__alias, and that they are both entirely equivalent, I guess. Best, Moritz