Renee Danson writes:
> On Tue, Apr 07, 2009 at 07:58:06AM -0400, James Carlson wrote:
> > I would have expected to have separate address source controls for v4
> > and v6 on a given interface, rather than a single combined control as
> > that list seems to suggest.  The behavior of v4 and v6 is slightly
> > different in a number of areas.
> 
> There are separate properties for v4 and v6 address source(s); but
> both properties are of type nwam_addrsrc_t (and can be multi-valued).
> The default value for v4 addrsrc is DHCP; the default for v6 addrsrc
> is DHCPV6 and AUTOCONF.  For v6, the expectation is that DHCPV6 and
> AUTOCONF will generally be there, but since solaris does allow you
> to turn off the use of those today, we chose to leave that option in.

Ah, ok.  It looked like a simple enumeration to me.

> In reply to Michael's original question: nwam_addrsrc_t is a shared
> enum, used for both the v4 and v6 addrsrc properties.  STATIC is an
> equally valid option for both v4 and v6.  I don't think we ever
> discussed whether we should have separate DHCPV4 and DHCPV6 values;
> I'd imagine whoever wrote up the list (probably me or Alan, but I
> can't remember) made separate DHCP items because they really are
> separate protocols, they represent two fairly different approaches
> to getting an address.  I don't suppose they need to be separate;
> it's obvious which protocol is intended based on which property the
> value is assigned to.  Do you have a preference?

I don't see a need for discrimination between these two protocols at
this level.  If you want to get really generic, the IPv6 documentation
calls these methods:

        stateful address configuration
        stateless address configuration
        manual address configuration

It turns out that both IPv4 and IPv6 have methods that fall under each
category.  (Stateful is DHCPv4 or RA+DHCPv6; stateless is Link-Local
or RA+NDP; and manual is obvious.)

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to