7010192: InetAddress.isReachable hits ShouldNotReachHere with hs20-b04 (win)
Reviewed-by: chegar
--- a/jdk/src/windows/native/java/net/Inet4AddressImpl.c Mon Dec 27 11:39:59 2010 -0800
+++ b/jdk/src/windows/native/java/net/Inet4AddressImpl.c Tue Jan 04 17:49:50 2011 +0000
@@ -559,8 +559,8 @@
if (timeout >= 0) {
optlen = sizeof(connect_rv);
- if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
- &optlen) <0) {
+ if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
+ &optlen) <0) {
connect_rv = WSAGetLastError();
}
--- a/jdk/src/windows/native/java/net/Inet6AddressImpl.c Mon Dec 27 11:39:59 2010 -0800
+++ b/jdk/src/windows/native/java/net/Inet6AddressImpl.c Tue Jan 04 17:49:50 2011 +0000
@@ -671,8 +671,8 @@
if (timeout >= 0) {
/* has connection been established? */
optlen = sizeof(connect_rv);
- if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
- &optlen) <0) {
+ if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
+ &optlen) <0) {
connect_rv = WSAGetLastError();
}