WORD __stdcall PktInetCheckSum(LPVOID pData, DWORD Length);
Parameters:
pData
[in] A pointer to the packet.
Length
[in] The packet size.
Return values:
If the function succeeds, the return value will be the IP packet's checksum, otherwise it
returns 0.
Description:
PktInetCheckSum counts and returns the packets checksum. It implements a common algorithm of the
IP protocols family checksums counting according to RFC 1071.