Author: hpoussin
Date: Sat Aug 16 09:30:20 2008
New Revision: 35392
URL:
http://svn.reactos.org/svn/reactos?rev=35392&view=rev
Log:
Increase lost packet count when transmit failed or receive failed for whatever reason
Modified:
trunk/reactos/base/applications/network/ping/ping.c
Modified: trunk/reactos/base/applications/network/ping/ping.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ping/ping.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ping/ping.c [iso-8859-1] Sat Aug 16 09:30:20
2008
@@ -541,6 +541,7 @@
}
if (Status == SOCKET_ERROR)
{
+ LostCount++;
if (WSAGetLastError() == WSAEHOSTUNREACH)
printf("Destination host unreachable.\n");
else
@@ -567,6 +568,8 @@
printf("\n");
#endif /* !NDEBUG */
}
+ else
+ LostCount++;
if (Status == SOCKET_ERROR)
{
if (WSAGetLastError() != WSAETIMEDOUT)
@@ -581,7 +584,6 @@
if (Status == 0)
{
printf("Request timed out.\n");
- LostCount++;
GlobalFree(Buffer);
return TRUE;
}