From owner-freebsd-questions@FreeBSD.ORG Sun Nov 6 22:13:18 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 105BA106564A for ; Sun, 6 Nov 2011 22:13:18 +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 CB1878FC12 for ; Sun, 6 Nov 2011 22:13:17 +0000 (UTC) Received: from localhost.localdomain ([127.0.0.1] helo=barfooze.de) by barfooze.de with smtp (Exim 4.76) (envelope-from ) id 1RNAXo-0007Ed-2V for freebsd-questions@freebsd.org; Sun, 06 Nov 2011 22:46:33 +0100 Date: Sun, 6 Nov 2011 22:46:24 +0100 From: Moritz Wilhelmy To: freebsd-questions@freebsd.org Message-ID: <20111106214624.GT16096@barfooze.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: "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:13:18 -0000 Hello, 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) Best regards, Moritz