mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
Increase lost packet count when transmit failed or receive failed for whatever reason
svn path=/trunk/; revision=35392
This commit is contained in:
@@ -541,6 +541,7 @@ static BOOL Ping(VOID)
|
||||
}
|
||||
if (Status == SOCKET_ERROR)
|
||||
{
|
||||
LostCount++;
|
||||
if (WSAGetLastError() == WSAEHOSTUNREACH)
|
||||
printf("Destination host unreachable.\n");
|
||||
else
|
||||
@@ -567,6 +568,8 @@ static BOOL Ping(VOID)
|
||||
printf("\n");
|
||||
#endif /* !NDEBUG */
|
||||
}
|
||||
else
|
||||
LostCount++;
|
||||
if (Status == SOCKET_ERROR)
|
||||
{
|
||||
if (WSAGetLastError() != WSAETIMEDOUT)
|
||||
@@ -581,7 +584,6 @@ static BOOL Ping(VOID)
|
||||
if (Status == 0)
|
||||
{
|
||||
printf("Request timed out.\n");
|
||||
LostCount++;
|
||||
GlobalFree(Buffer);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user