[RFC] Use noafif in dhcpif and sycndhcpif

Garrett Cooper yanegomi at gmail.com
Thu Sep 22 15:26:18 UTC 2011


On Wed, Sep 21, 2011 at 10:53 PM, Hiroki Sato <hrs at freebsd.org> wrote:
> Xin LI <delphij at delphij.net> wrote
>  in <4E7A75EB.80308 at 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.

Please note that the patch Xin included disables several wireless
chipsets from doing dhcp by default. Is this desired?
Thanks,
-Garrett


More information about the freebsd-rc mailing list