Go to the source code of this file.
|
#define | IPv4Checksum(Data, Count, Seed) (~ChecksumFold(ChecksumCompute(Data, Count, Seed))) |
|
#define | TCPv4Checksum(Data, Count, Seed) (~ChecksumFold(csum_partial(Data, Count, Seed))) |
|
#define | IPv4CorrectChecksum(Data, Count) (BOOLEAN)(IPv4Checksum(Data, Count, 0) == DH2N(0x0000FFFF)) |
|
#define | TCPv4CorrectChecksum(TcpPseudoHeader, Data, Count) |
|
◆ IPv4Checksum
◆ IPv4CorrectChecksum
◆ TCPv4Checksum
◆ TCPv4CorrectChecksum
Value:
#define TCPv4Checksum(Data, Count, Seed)
Definition at line 46 of file checksum.h.
◆ ChecksumCompute()
Definition at line 27 of file checksum.c.
40{
41 register ULONG Sum = Seed;
42
44 {
48 }
49
50
52 {
54 }
55
56 return Sum;
57}
◆ ChecksumFold()
Definition at line 15 of file checksum.c.
17{
18
19 while (Sum >> 16)
20 {
21 Sum = (Sum & 0xFFFF) + (Sum >> 16);
22 }
23
24 return Sum;
25}
◆ csum_partial()
◆ UDPv4ChecksumCalculate()
Definition at line 60 of file checksum.c.
64{
69
70
74
75
77 {
78 TmpSum = ((PacketBuffer[
i] << 8) & 0xFF00) +
80 Sum += TmpSum;
81 }
82
83
85 {
88 Sum += TmpSum;
89 }
90
91
93 {
96 Sum += TmpSum;
97 }
98
99
101
102
103 return ~ChecksumFold(Sum);
104}
char * Pad(char *Str, char PadChar, ULONG Length)
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by AddUDPHeaderIPv4(), and UDPReceive().