CHAR cHostname[256]; // target hostname
CHAR cDestIP[18]; // target IP
-
static VOID
DebugPrint(LPTSTR lpString, ...)
{
#endif
}
-
static VOID
Usage(VOID)
{
"- For testing purposes, all should work as normal in a Windows environment\n\n"));
}
-
static BOOL
ParseCmdline(int argc,
LPCTSTR argv[],
return TRUE;
}
-
static WORD
CheckSum(PUSHORT data,
UINT size)
return (USHORT)(~dwSum);
}
-
static VOID
SetupTimingMethod(PAPPINFO pInfo)
{
}
}
-
static BOOL
ResolveHostname(PAPPINFO pInfo)
{
return TRUE;
}
-
static LONGLONG
GetTime(PAPPINFO pInfo)
{
return (LONGLONG)Time.u.LowPart;
}
-
static BOOL
SetTTL(SOCKET sock,
INT iTTL)
return TRUE;
}
-
static BOOL
CreateSocket(PAPPINFO pInfo)
{
return TRUE;
}
-
static VOID
PreparePacket(PAPPINFO pInfo,
USHORT iSeqNum)
sizeof(ICMP_HEADER) + PACKET_SIZE);
}
-
static INT
SendPacket(PAPPINFO pInfo)
{
return iSockRet;
}
-
static BOOL
ReceivePacket(PAPPINFO pInfo)
{
return bRet;
}
-
static INT
DecodeResponse(PAPPINFO pInfo)
{
return -3;
}
-
static BOOL
AllocateBuffers(PAPPINFO pInfo)
{
return TRUE;
}
-
static INT
Driver(PAPPINFO pInfo)
{
return ret;
}
-
static VOID
Cleanup(PAPPINFO pInfo)
{
pInfo->RecvPacket);
}
-
#if defined(_UNICODE) && defined(__GNUC__)
static
#endif
return ret;
}
-
#if defined(_UNICODE) && defined(__GNUC__)
/* HACK - MINGW HAS NO OFFICIAL SUPPORT FOR wmain()!!! */
int main( int argc, char **argv )