network.subr: Support IPv6 in dhcpif()
authorAaron LI <aly@aaronly.me>
Wed, 14 Nov 2018 09:49:03 +0000 (17:49 +0800)
committerAaron LI <aly@aaronly.me>
Wed, 14 Nov 2018 12:53:36 +0000 (20:53 +0800)
commit329743def50a061489debcd9682983235c8f5b42
tree428c04468f710685a271b6933729df43fee34093
parentda4dd5142b3aeee28a624360613a09cc38ec7319
network.subr: Support IPv6 in dhcpif()

Extend the 'dhcpif()' to support checking the interface needs DHCP for
IPv4-only, IPv6-only or either.

The 'dhcpcd' rc script in the following commit will use this new feature
to determine whether dhcpcd should do DHCPv4 or DHCPv6 or both.
etc/network.subr