RFR: 8255264: Support for identifying the full range of IPv4 localhost addresses on Windows

Mat Carter github.com+54955201+macarte at openjdk.java.net
Wed Dec 23 17:23:53 UTC 2020


On Wed, 23 Dec 2020 16:10:27 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Modified Windows specific loopback macros to support full range of loopback addresses, commit message includes unit test data as there's no gtest's for java libraries (only hotspot compiler)
>> 
>> This is an expansion on the original fix for 8250521: Configure initial RTO to use minimal retry for loopback connections on Windows
>> 
>> IPV4 loopback addresses are defined as 127.0.0.0/8 the CIDR translates to a range of 127.0.0.0 to
>> 127.255.255.255 inclusive.
>> 
>> The previous macro implementation only identified 127.0.0.1 and ::1 as loopback addresses, this is corrected in this change
>> 
>> Note that as IPV6 is defined as ::1/128 only ::1 is a valid loopback address
>
> Looks good.

Thanks for the review Alan

-------------

PR: https://git.openjdk.java.net/jdk/pull/1523


More information about the net-dev mailing list