From owner-freebsd-net@FreeBSD.ORG Tue Apr 3 21:42:29 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 D537A16A401; Tue, 3 Apr 2007 21:42:29 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id 73FD413C455; Tue, 3 Apr 2007 21:42:29 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 43B3342948; Tue, 3 Apr 2007 23:11:35 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id DB5869D619; Tue, 3 Apr 2007 21:11:32 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id C51DD405B; Tue, 3 Apr 2007 23:11:32 +0200 (CEST) Date: Tue, 3 Apr 2007 23:11:32 +0200 From: Jeremie Le Hen To: Mike Makonnen Message-ID: <20070403211132.GL5155@obiwan.tataz.chchile.org> References: <20070329182906.GB38703@rogue.navcom.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070329182906.GB38703@rogue.navcom.lan> User-Agent: Mutt/1.5.13 (2006-08-11) 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: Tue, 03 Apr 2007 21:42:29 -0000 Hi Mike, Thank you for working on this. I'm always glad to see someone working on homogenization. I dare to post a few comments though: On Thu, Mar 29, 2007 at 09:29:06PM +0300, Mike Makonnen wrote: > What it does > ------------ > - rc.d/network_ipv6 is no longer necessary and can be removed > - IPv6 configuration is done on each interface in rc.d/netif along with IPv4 > - IPv6 routing and options processing is done in rc.d/routing along with IPv4 > - You can now do things like: > # Start/Stop IPv6 on all interfaces > /etc/rc.d/netif (start|stop) ip6 > # Start/Stop IPv6 only on interface rl0 > /etc/rc.d/netif (start|stop) rl0 ip6 > # Do IPv6 options processing > /etc/rc.d/routing options ip6 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 :). > - 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 ? Again, thank you for working on this. Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >