Date: Fri, 23 Sep 2011 01:22:31 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: yanegomi@gmail.com Cc: freebsd-rc@FreeBSD.org, delphij@delphij.net, d@delphij.net Subject: Re: [RFC] Use noafif in dhcpif and sycndhcpif Message-ID: <20110923.012231.2025543114185889730.hrs@allbsd.org> In-Reply-To: <CAGH67wSgt7NaoHabnZU88u5LuuXRMGwdoPPY3k0_C4ZgRLx84w@mail.gmail.com> References: <4E7A75EB.80308@delphij.net> <20110922.145338.1972727087248882715.hrs@allbsd.org> <CAGH67wSgt7NaoHabnZU88u5LuuXRMGwdoPPY3k0_C4ZgRLx84w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Garrett Cooper <yanegomi@gmail.com> wrote in <CAGH67wSgt7NaoHabnZU88u5LuuXRMGwdoPPY3k0_C4ZgRLx84w@mail.gmail.com>: ya> On Wed, Sep 21, 2011 at 10:53 PM, Hiroki Sato <hrs@freebsd.org> wrote: ya> > Xin LI <delphij@delphij.net> wrote ya> > in <4E7A75EB.80308@delphij.net>: ya> > ya> > de> -----BEGIN PGP SIGNED MESSAGE----- ya> > de> Hash: SHA256 ya> > de> ya> > de> Hi, ya> > de> ya> > de> While developing FreeNAS we have hit a problem -- when ya> > de> ifconfig_DEFAULT is set to "DHCP", all interfaces including pfsync0 ya> > de> and pflog0 would be probed by dhclient. ya> > de> ya> > de> It seems to be reasonable to check noafif in both dhcpif and ya> > de> syncdhcpif, as did in ipv6_autoconfif based on same reasoning. ya> > ya> > I think the patch is reasonable. Using "ifconfig -l AF" does not ya> > work for this purpose because 1) it depends on an already-configured ya> > address (ifa->ifa_addr->sa_family) on 9.X and 2) it does not work on ya> > 8.X as intended. ya> ya> Please note that the patch Xin included disables several wireless ya> chipsets from doing dhcp by default. Is this desired? I think there is no problem because an wireless LAN interface always has a name like wlanN, not a name derived from the device driver. If the noafif() interface list includes a network interface which can have an address, it is a bug and the interface should be removed from the list, though. -- Hiroki [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk57YMcACgkQTyzT2CeTzy2n2gCgn0vGp6FY2wYCgmJbYkv3n9qW QfwAoL/6endJCd68AdRCwC/jj7ItCe6P =yDGA -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110923.012231.2025543114185889730.hrs>
