From owner-freebsd-net@FreeBSD.ORG Thu Apr 5 15:21:27 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ACCF616A401; Thu, 5 Apr 2007 15:21:27 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (mx1.ethionet.et [213.55.64.53]) by mx1.freebsd.org (Postfix) with ESMTP id 223A713C459; Thu, 5 Apr 2007 15:21:27 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (localhost [127.0.0.1]) by localhost.ethionet.et (Postfix) with ESMTP id 2B45B5245; Thu, 5 Apr 2007 18:17:43 +0300 (EAT) Received: from rogue.navcom.lan (unknown [213.55.64.98])by mx1.ethionet.et ( Postfix) with SMTP id 44F0A51C8;Thu, 5 Apr 2007 18:17:40 +0300 (EAT) Received: by rogue.navcom.lan (Postfix, from userid 1001)id C97A717045; Thu, 5 Apr 2007 18:24:06 +0300 (EAT) Date: Thu, 5 Apr 2007 18:24:06 +0300 From: Mike Makonnen To: Jeremie Le Hen Message-ID: <20070405152406.GA1844@rogue.navcom.lan> References: <20070329182906.GB38703@rogue.navcom.lan> <20070403211132.GL5155 @obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070403211132.GL5155@obiwan.tataz.chchile.org> User-Agent: Mutt/1.4.2.2i X-Operating-System: FreeBSD/7.0-CURRENT (i386) X-imss-version: 2.46 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:4 C:3 M:3 S:4 R:3 (1.0000 1.0000) Cc: freebsd-net@freebsd.org, freebsd-rc@freebsd.org Subject: Re: Merging rc.d/network_ipv6 into rc.d/netif X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 15:21:27 -0000 On Tue, Apr 03, 2007 at 11:11:32PM +0200, Jeremie Le Hen wrote: > > As Dag-Erling said, it may conflict with a future if_ip. Moreover, > network interfaces are renameable, so the namespace conflict is even > more likely. > > Although it breaks the standard rc(8) syntax, I would personaly prefer: > /etc/rc.d/netif (start6|stop6) rl0 > > BTW, the proposed syntax isn't very usual either :). I wasn't happy about the syntax either, but I was at a loss at how to handle it. Now that you've mentioned the obvious answer, I'm wondering how come it never occured to me :-P > > > - In order to differentiate between v4 and v6 configuration directives some > > knobs in rc.conf(5)have been renamed with an ipv4_ prefix: > > network_interfaces > > ifconfig_DEFAULT > > ifconfig_ > > ifconfig__aliasX > > defaultrouter > > gateway_enable > > static_routes > > etc... > > > > - Modify all scripts that reference old knobs (without ipv4_ prefix) to > > reference the new version of the knobs > > > > - Compatibility shims in rc.subr(8) so that old uses of knobs without an > > ipv4_ prefix work as expected. As part of this change split the > > code for this processing into its own function: old2new_knobs() > > This is neat. What about issuing a warning in order to make a > quicker transition ? > I think this is a matter of personal preference. If a lot of people think there should be a warning I can add it. Personally, I don't see the need, we can keep the shims as long as we want. Cheers. -- Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm @ FreeBSD.Org | FreeBSD - http://www.freebsd.org