2016-07-02 00:45:34 +00:00
|
|
|
--- openjdk/Inet4AddressImpl.c
|
|
|
|
+++ openjdk/Inet4AddressImpl.c
|
2016-09-28 00:09:53 +00:00
|
|
|
@@ -461,6 +461,21 @@
|
2016-07-02 00:45:34 +00:00
|
|
|
return JNI_FALSE;
|
|
|
|
}
|
2016-09-28 00:09:53 +00:00
|
|
|
|
|
|
|
+#ifdef WIN32
|
2016-07-02 00:45:34 +00:00
|
|
|
+DWORD WINAPI IcmpSendEcho2Ex(HANDLE,
|
|
|
|
+ HANDLE,
|
|
|
|
+ LPVOID,
|
|
|
|
+ PVOID,
|
|
|
|
+ IPAddr,
|
|
|
|
+ IPAddr,
|
|
|
|
+ LPVOID,
|
|
|
|
+ WORD,
|
|
|
|
+ LPVOID,
|
|
|
|
+ LPVOID,
|
|
|
|
+ DWORD,
|
|
|
|
+ DWORD);
|
2016-09-28 00:09:53 +00:00
|
|
|
+#endif
|
2016-07-02 00:45:34 +00:00
|
|
|
+
|
|
|
|
/**
|
|
|
|
* ping implementation.
|
|
|
|
* Send a ICMP_ECHO_REQUEST packet every second until either the timeout
|