Request for Review 6718504: IN6_IS_ADDR_ANY tests only 12 bytes of 16-byte address
Chris Hegarty
chris.hegarty at oracle.com
Mon Apr 26 06:44:51 PDT 2010
On 26/04/2010 14:37, Alan Bateman wrote:
> Chris Hegarty wrote:
>> Hi Alan,
>>
>> net_util_md.h incorrectly defines the macro IN6_IS_ADDR_ANY to only
>> look at 12 bytes of the 16 byte address. This causes a bind to ::1 to
>> be treated as if it were a bind to the wildcard address.
>>
>> Note: with the addition of the dual stack native implementation on
>> Vista this code is only executed when running IPv6 on Windows XP.
>>
>> Webrev:
>> http://cr.openjdk.java.net/~chegar/6718504/webrev.00/webrev/
>>
>> -Chris.
> The change looks fine to me. In the test it might be simpler to put the
> lookup of the IPv6 loopback address in the main method. Also, you can
> probably call getLocalAddress.
Thanks Alan, I've make the changes and simplified the test.
-Chris.
>
> -Alan.
More information about the net-dev
mailing list