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

Alan Bateman alanb at openjdk.java.net
Wed Dec 23 16:12:55 UTC 2020


On Mon, 30 Nov 2020 18:09:57 GMT, Mat Carter <github.com+54955201+macarte 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.

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

Marked as reviewed by alanb (Reviewer).

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


More information about the net-dev mailing list