hg: jdk7/jsn/jdk: 6717876: Make java.net.NetworkInterface.getIndex() public
Alan Bateman
Alan.Bateman at Sun.COM
Sun Sep 14 11:39:35 PDT 2008
Florian Weimer wrote:
> * Mark Wielaard:
>
>
>> Aha. OK. I might be dense, but I don't think I am the only person not
>> immediately making the link between these methods and the RFC 2133
>> "Interface Identification" and how they are used as described in RFC
>> 2292 for selecting the outgoing interface.
>>
>
> For the record, RFC 2133 has been obsoleted by RFC 3493, and RFC 2292 by
> RFC 3542.
>
>
>> So I assume the Index returned can be used as an Scope identifier when
>> creating a Inet6Address.
>>
>
> Scoped addresses are described in RFC 4007. Site-local addresses have
> been deprecated (in RFC 3879). The documentation in the Inet6Address
> class should be updated accordingly.
>
> I don't know how relevant these docs are for real-world IPv6 operation.
>
I've created bug 6748229 with a link to this thread as this topic could
easily be forgotten. That is, the normative reference to the IPv6 scoped
address architecture needs to be updated, the description of the scope
id as a number identifier could minimally reference
NetworkInterface#getIndex (and vice versa), and isSiteLocalAddress
should be re-examined.
-Alan.
More information about the net-dev
mailing list