From owner-freebsd-stable@FreeBSD.ORG Wed Jul 17 13:19:27 2013 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1D3CF8B6; Wed, 17 Jul 2013 13:19:27 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) by mx1.freebsd.org (Postfix) with ESMTP id 89ADEEFA; Wed, 17 Jul 2013 13:19:26 +0000 (UTC) Received: from alph.d.allbsd.org (p2049-ipbf1102funabasi.chiba.ocn.ne.jp [122.26.101.49]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id r6HDJ86u067464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Jul 2013 22:19:19 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.5/8.14.5) with ESMTP id r6HDJ8MF003847; Wed, 17 Jul 2013 22:19:08 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Wed, 17 Jul 2013 22:18:57 +0900 (JST) Message-Id: <20130717.221857.228051450632054039.hrs@allbsd.org> To: feld@FreeBSD.org Subject: Re: ipv6_addrs_IF aliases in rc.conf(5) From: Hiroki Sato In-Reply-To: <1374062120.4532.140661256673649.36ED5B44@webmail.messagingengine.com> References: <14677223DB6D4CD48E880520725B3552@white> <20130717.183628.1254490649724740016.hrs@allbsd.org> <1374062120.4532.140661256673649.36ED5B44@webmail.messagingengine.com> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Wed_Jul_17_22_18_57_2013_471)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Wed, 17 Jul 2013 22:19:20 +0900 (JST) X-Spam-Status: No, score=-88.7 required=13.0 tests=CONTENT_TYPE_PRESENT, DIRECTOCNDYN, DYN_PBL, FAKEDWORD_ZERO, RCVD_IN_PBL, RCVD_IN_RP_RNBL, SPF_SOFTFAIL, USER_IN_WHITELIST,X_CHINESE_RELAY autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org Cc: freebsd-stable@FreeBSD.org, rkoberman@gmail.com, lukasz@wasikowski.net, dewayne.geraghty@heuristicsystems.com.au X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2013 13:19:27 -0000 ----Security_Multipart(Wed_Jul_17_22_18_57_2013_471)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mark Felder wrote in <1374062120.4532.140661256673649.36ED5B44@webmail.messagingengine.com>: fe> On Wed, Jul 17, 2013, at 4:36, Hiroki Sato wrote: fe> > fe> > The recommended way is ifconfig_IF_aliasN or ifconfig_IF_aliases. fe> > ipv4_addr_IF will not be removed in the near future, but please use fe> > ifconfig_IF_alias{N,es} for newly-configured systems. Backward fe> > compatibility for not breaking the existing configurations will be fe> > maintained as much as possible (even on the upcoming 10.0R and fe> > later). fe> > fe> fe> Almost everyone is familiar with ifconfig_IF_aliasN, but can you provide fe> example syntax for ifconfig_IF_aliases ? I've never seen that before and fe> can't find it documented. I committed some descriptions about it to rc.conf(5) at the same time. It is basically the same as ifconfig_IF_aliasN, but can have multiple address specification. Both of ifconfig_IF_alias{N,es} now supports range specification, so there is no difference in the functionality. The following two examples give the same result: 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_alias3="inet 127.0.0.254 netmask 0xffffffff" ifconfig_ed0_aliases="\ inet 127.0.0.251 netmask 0xffffffff \ inet 127.0.0.252 netmask 0xffffffff \ inet 127.0.0.253 netmask 0xffffffff \ inet 127.0.0.254 netmask 0xffffffff \ " The implementation actually converts values in the variables in ifconfig_IF_aliasN, ipv6_ifconfig_IF_aliasN, and ipv4_addrs_IF into a list of them in a consistent format (AF-keyword + address spec + options) used in ifconfig_IF_aliases, and then it processes ifconfig_IF_aliases and them. ifconfig_IF_aliasN accepts address spec without address family keyword for backward compatibility, but ifconfig_IF_aliases does not. This is the difference between the two. fe> This thread isn't exactly the proper forum to debate the future of fe> network configuration on FreeBSD, but please take this into fe> consideration. And thank you for your work on the rc.d scripts -- fe> they're the #1 reason many of us prefer working with FreeBSD. Fair enough. Please do not hesitate to speak up on freebsd-rc@ for this kind of topics. -- Hiroki ----Security_Multipart(Wed_Jul_17_22_18_57_2013_471)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iEYEABECAAYFAlHmmcEACgkQTyzT2CeTzy0yfACfccDdqLfKM7LKHlTHujotPnNF LHoAmQGBihWAWdUnZOmbyc7zR+/L48ZO =AJd5 -----END PGP SIGNATURE----- ----Security_Multipart(Wed_Jul_17_22_18_57_2013_471)----