RFR: 8135305: InetAddress.isReachable reports true when loopback interface is specified

Rob McKenna rob.mckenna at oracle.com
Thu Sep 24 14:45:55 UTC 2015


Please ignore the formatting errors. Thats either a problem with hg diff 
or webrev, but its fixed in the repo.

	-Rob

On 24/09/15 15:43, Rob McKenna wrote:
> Hi folks,
>
> The recent change to isReachable (8133015:
> InetAddress.isReachable(tmout) returning wrong value on Windows for IPv6
> - http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/59ff6cd9535d) neglected
> to take the specified interface into account for ipv4.
>
> This change ensures that isReachable returns false for external hosts
> when the loopback interface is specified.
>
> http://cr.openjdk.java.net/~robm/8135305/webrev.01/
>
>      -Rob


More information about the net-dev mailing list