[RFC] Use noafif in dhcpif and sycndhcpif

Hiroki Sato hrs at FreeBSD.org
Thu Sep 22 05:54:20 UTC 2011


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.

 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20110922/f63f0a4d/attachment.pgp


More information about the freebsd-rc mailing list