Rev 4743 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4743 | Rev 4756 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | 36 | ||
| 37 | #include <sys/types.h> |
37 | #include <sys/types.h> |
| 38 | 38 | ||
| 39 | #include "include/checksum.h" |
39 | #include "include/checksum.h" |
| 40 | 40 | ||
| - | 41 | /** Big-endian encoding CRC divider. |
|
| - | 42 | */ |
|
| 41 | #define CRC_DIVIDER_BE 0x04C11DB7 |
43 | #define CRC_DIVIDER_BE 0x04C11DB7 |
| 42 | 44 | ||
| - | 45 | /** Little-endian encoding CRC divider. |
|
| - | 46 | */ |
|
| 43 | #define CRC_DIVIDER_LE 0xEDB88320 |
47 | #define CRC_DIVIDER_LE 0xEDB88320 |
| 44 | 48 | ||
| 45 | /** IP checksum value for computed zero checksum. |
49 | /** IP checksum value for computed zero checksum. |
| 46 | * Zero is returned as 0xFFFF (not flipped) |
50 | * Zero is returned as 0xFFFF (not flipped) |
| 47 | */ |
51 | */ |