IP checksum calculation functions. More...
Go to the source code of this file.
Macros | |
#define | SWAP_BYTES_IN_WORD(w) (((w) & 0xff) << 8) | (((w) & 0xff00) >> 8) |
Swap the bytes in an u16_t: much like lwip_htons() for little-endian. More... | |
#define | FOLD_U32T(u) ((u32_t)(((u) >> 16) + ((u) & 0x0000ffffUL))) |
Split an u32_t in two u16_ts and add them up. More... | |
IP checksum calculation functions.
Definition in file inet_chksum.h.
#define FOLD_U32T | ( | u | ) | ((u32_t)(((u) >> 16) + ((u) & 0x0000ffffUL))) |
Split an u32_t in two u16_ts and add them up.
Definition at line 52 of file inet_chksum.h.
#define SWAP_BYTES_IN_WORD | ( | w | ) | (((w) & 0xff) << 8) | (((w) & 0xff00) >> 8) |
Swap the bytes in an u16_t: much like lwip_htons() for little-endian.
Definition at line 47 of file inet_chksum.h.