From owner-freebsd-rc@FreeBSD.ORG Thu Sep 22 05:54:20 2011 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 A684F1065672; Thu, 22 Sep 2011 05:54:20 +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 08AA18FC0A; Thu, 22 Sep 2011 05:54:16 +0000 (UTC) Received: from alph.allbsd.org ([IPv6:2001:2f0:104:e010:862b:2bff:febc:8956]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id p8M5rnh8024244; Thu, 22 Sep 2011 14:53:59 +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 p8M5rgls051079; Thu, 22 Sep 2011 14:53:43 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Thu, 22 Sep 2011 14:53:38 +0900 (JST) Message-Id: <20110922.145338.1972727087248882715.hrs@allbsd.org> To: d@delphij.net, delphij@delphij.net From: Hiroki Sato In-Reply-To: <4E7A75EB.80308@delphij.net> References: <4E7A75EB.80308@delphij.net> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.3.51 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(Thu_Sep_22_14_53_38_2011_725)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [IPv6:2001:2f0:104:e001::32]); Thu, 22 Sep 2011 14:54:00 +0900 (JST) X-Spam-Status: No, score=-104.6 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT, RDNS_NONE, 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, gcooper@FreeBSD.org Subject: Re: [RFC] Use noafif in dhcpif and sycndhcpif 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: Thu, 22 Sep 2011 05:54:20 -0000 ----Security_Multipart(Thu_Sep_22_14_53_38_2011_725)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Xin LI wrote in <4E7A75EB.80308@delphij.net>: de> -----BEGIN PGP SIGNED MESSAGE----- de> Hash: SHA256 de> de> Hi, de> de> While developing FreeNAS we have hit a problem -- when de> ifconfig_DEFAULT is set to "DHCP", all interfaces including pfsync0 de> and pflog0 would be probed by dhclient. de> de> It seems to be reasonable to check noafif in both dhcpif and de> syncdhcpif, as did in ipv6_autoconfif based on same reasoning. I think the patch is reasonable. Using "ifconfig -l AF" does not work for this purpose because 1) it depends on an already-configured address (ifa->ifa_addr->sa_family) on 9.X and 2) it does not work on 8.X as intended. BTW, setting ifconfig_DEFAULT to DHCP may have to be revisited at a certain point in the future. It works, but a problem is that this variable does not support a per-AF configuration and the DHCP keyword is IPv4-specific. Having "ifconfig_DEFAULT_AF" may be a good candidate, but another issue is that it is difficult to maintain backward compatibility in that case... -- Hiroki ----Security_Multipart(Thu_Sep_22_14_53_38_2011_725)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk56zWIACgkQTyzT2CeTzy0LxQCgtIWQvsP2M2pzyi6HWoC3qYDG iGcAn0EH6Jn8eFlS/0RJtAq1ac42Ghcg =PeuY -----END PGP SIGNATURE----- ----Security_Multipart(Thu_Sep_22_14_53_38_2011_725)----