Changeset db96017 in mainline for uspace/lib/net/include/net_checksum.h
- Timestamp:
- 2012-04-07T17:41:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b6913b7
- Parents:
- b69e4c0 (diff), 6bb169b5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/lib/net/include/net_checksum.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/net_checksum.h
rb69e4c0 rdb96017 30 30 * @{ 31 31 */ 32 33 32 /** @file 34 33 * General CRC and checksum computation. … … 42 41 43 42 /** IP checksum value for computed zero checksum. 43 * 44 44 * Zero is returned as 0xFFFF (not flipped) 45 * 45 46 */ 46 #define IP_CHECKSUM_ZERO 0xffffU47 #define IP_CHECKSUM_ZERO 0xffffU 47 48 48 #ifdef ARCH_IS_BIG_ENDIAN 49 #ifdef __BE__ 50 49 51 #define compute_crc32(seed, data, length) \ 50 52 compute_crc32_be(seed, (uint8_t *) data, length) 51 #else 53 54 #endif 55 56 #ifdef __LE__ 57 52 58 #define compute_crc32(seed, data, length) \ 53 59 compute_crc32_le(seed, (uint8_t *) data, length) 60 54 61 #endif 55 62
Note:
See TracChangeset
for help on using the changeset viewer.
