From owner-freebsd-net@FreeBSD.ORG Mon Nov 5 22:16:43 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1E6D16A469; Mon, 5 Nov 2007 22:16:43 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from terra.mike.lan (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1AC3213C4BF; Mon, 5 Nov 2007 22:16:41 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: by terra.mike.lan (Postfix, from userid 1000) id 9BA5067DF3; Tue, 6 Nov 2007 01:19:50 +0300 (EAT) From: Mike Makonnen To: Mike Makonnen In-Reply-To: <20070517131713.GE3228@rogue.navcom.lan> References: <20070329182906.GB38703@rogue.navcom.lan> <20070403231423.GA5244 1@lor.one-eyed-alien.net> <20070405154644.GB1844@rogue.navcom.lan> <2007040 5160251.GA68077@lor.one-eyed-alien.net> <20070517131713.GE3228@rogue.navcom.lan> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 06 Nov 2007 01:19:50 +0300 Message-Id: <1194301190.75993.3.camel@terra> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port 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 Reply-To: mtm@FreeBSD.Org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 22:16:43 -0000 Hello folks, I'd really like to get this done soon. I've been using it locally and I think it's ready for wider testing. The patch is at: http://people.freebsd.org/~mtm/src-etc.ipv6.diff I'll quickly summarize the changes, but there's a longer explanation attached to the patch. The main goal of this patch is to remove the special-casing of IPv6 configuration in rc.d. As we get closer and closer to transitioning to IPv6, there is no reason that IPv6 configuration should continue to be a special case (with regards to rc.d atleast). So, this is an attempt to normalize IPv4 and IPv6 network interface configuration and combine them both in rc.d/netif. Read on for a short summary of the user-visible changes: The following knobs no longer exist: network_interfaces ipv6_network_interfaces They have been replaced by the NOIPV4 and NOIPV6 keywords, respectively. Use of these knobs will trigger a warning. The following knobs have changed meaning: ifconfig_ ifconfig_DEFAULT You should no longer put IP related ifconfig(8) commands here. Instead they go in the respective ipvX_ prefixed knobs. Using these knobs for passing IP related configuration to ifconfig(8) will trigger a warning. To pass IP related configuration use instead: ipv4_ifconfig_ ipv6_ifconfig_ ipv4_ifconfig_DEFAULT ipv6_ifconfig_DEFAULT New knobs: ipv4_enable - Same deal as ipv6_enable except it works with IPv4 ipv4_synchronous_dhclient - see explanation in patch ipv6_synchronous_dhclient - see explanation in patch Most IP related knobs will have an ipv4_ and ipv6_ version. To make the transition easier rc.subr(8) will "automagically" DTRT for the following knobs: gateway_enable => ipv4_gateway_enable router_enable => ipv4_router_enable router => ipv4_router router_flags => ipv4_router_flags defaultrouter => ipv4_defaultrouter static_routes => ipv4_static_routes static_routes_ => ipv4_static_routes_ route_ => ipv4_route_ dhclient_program => ipv4_dhclient_program dhclient_flags => ipv4_dhclient_flags dhclient_flags_ => ipv4_dhclient_flags_ background_dhclient_ => ipv4_background_dhclient_ Please try it and let me know what you think. 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