Date: Thu, 22 Sep 2011 14:53:38 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: d@delphij.net, delphij@delphij.net Cc: freebsd-rc@FreeBSD.org, gcooper@FreeBSD.org Subject: Re: [RFC] Use noafif in dhcpif and sycndhcpif Message-ID: <20110922.145338.1972727087248882715.hrs@allbsd.org> In-Reply-To: <4E7A75EB.80308@delphij.net> References: <4E7A75EB.80308@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Thu_Sep_22_14_53_38_2011_725)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Xin LI <delphij@delphij.net> 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)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110922.145338.1972727087248882715.hrs>