Changes in uspace/lib/net/include/net_checksum.h [00d7e1b:8d601db] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/net_checksum.h
r00d7e1b r8d601db 30 30 * @{ 31 31 */ 32 32 33 /** @file 33 34 * General CRC and checksum computation. … … 41 42 42 43 /** IP checksum value for computed zero checksum. 43 *44 44 * Zero is returned as 0xFFFF (not flipped) 45 *46 45 */ 47 #define IP_CHECKSUM_ZERO 46 #define IP_CHECKSUM_ZERO 0xffffU 48 47 49 #ifdef __BE__ 50 48 #ifdef ARCH_IS_BIG_ENDIAN 51 49 #define compute_crc32(seed, data, length) \ 52 50 compute_crc32_be(seed, (uint8_t *) data, length) 53 54 #endif 55 56 #ifdef __LE__ 57 51 #else 58 52 #define compute_crc32(seed, data, length) \ 59 53 compute_crc32_le(seed, (uint8_t *) data, length) 60 61 54 #endif 62 55 … … 67 60 extern uint16_t flip_checksum(uint16_t); 68 61 extern uint16_t ip_checksum(uint8_t *, size_t); 69 extern uint64_t multicast_hash(const uint8_t addr[6]);70 62 71 63 #endif
Note:
See TracChangeset
for help on using the changeset viewer.