From owner-freebsd-rc@FreeBSD.ORG Mon Feb 6 01:19:33 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D580106564A for ; Mon, 6 Feb 2012 01:19:33 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 89C188FC17 for ; Mon, 6 Feb 2012 01:19:32 +0000 (UTC) Received: from alph.allbsd.org (p1012-ipbf2105funabasi.chiba.ocn.ne.jp [114.148.160.12]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id q161J6cb040508; Mon, 6 Feb 2012 10:19:16 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id q161J3NE095890; Mon, 6 Feb 2012 10:19:06 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Mon, 06 Feb 2012 10:18:00 +0900 (JST) Message-Id: <20120206.101800.1389796154758679137.hrs@allbsd.org> To: erdgeist@erdgeist.org From: Hiroki Sato In-Reply-To: <4F2F209F.90309@erdgeist.org> References: <4F28B9D7.4010602@erdgeist.org> <4F2F209F.90309@erdgeist.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.4 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Mon_Feb__6_10_18_00_2012_289)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [133.31.130.32]); Mon, 06 Feb 2012 10:19:21 +0900 (JST) X-Spam-Status: No, score=-100.8 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT,RCVD_IN_PBL,RCVD_IN_RP_RNBL,SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org Cc: freebsd-rc@FreeBSD.org Subject: Re: Proposal ipv6_addrs_common X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 01:19:33 -0000 ----Security_Multipart(Mon_Feb__6_10_18_00_2012_289)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dirk Engling wrote in <4F2F209F.90309@erdgeist.org>: er> On 01.02.12 05:04, Dirk Engling wrote: er> er> > The attached network6.subr is a shell script demonstrating the er> > ipv6_addrs_common function inside, for playing around one can use some er> > of the values the supplied get_if_var dummy function returns. er> er> Following up my shell script I patched my /etc/network.subr to properly er> work with the ipv6_addrs_IF variables while also removing some bugs in er> the interface configuration code. ipv4_addrs_common also has been er> patched to handle ranges in all octets. er> er> The patch at er> er> http://erdgeist.org/arts/software/network.subr_9.0.diff er> er> has been tested on my FreeBSD 9.0, fixing some bugs introduced in the er> rewrite of ifalias_up/ifalias_down for 9.0, as well. er> er> I also have back ported the code to work under FreeBSD 8.2, the patch er> against my 8.2-RELEASE's /etc/network.subr can be found here: er> er> http://erdgeist.org/arts/software/network.subr_8.2.diff I also looked into an ipv6 counterpart of the ipv4_addrs_common, and your patch looks good, but I am a bit concerned about adding another independent knob to configure IPv6 addresses to rc.conf. I feel this range specification can be integrated into ifconfig_IF_aliasN and it will be simpler than adding another knob. What do you think about it? -- Hiroki ----Security_Multipart(Mon_Feb__6_10_18_00_2012_289)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk8vKkgACgkQTyzT2CeTzy0/XACeKixaxXGyN19ev72N2Yi3TsDC newAoJKI9Q+LeeY7HxOitle9mDi4iS+A =0JYX -----END PGP SIGNATURE----- ----Security_Multipart(Mon_Feb__6_10_18_00_2012_289)----