inet_chksum.h
IP checksum calculation functions.
Defines
-
SWAP_BYTES_IN_WORD(w)
Swap the bytes in an u16_t: much like lwip_htons() for little-endian.
-
FOLD_U32T(u)
Split an u32_t in two u16_ts and add them up.
-
LWIP_CHKSUM_COPY_ALGORITHM
IP checksum calculation functions.
Defines
Swap the bytes in an u16_t: much like lwip_htons() for little-endian.
Split an u32_t in two u16_ts and add them up.