|
Barrelfish
|
Macros | |
| #define | SWAP_BYTES_IN_WORD(w) ((w & 0xff) << 8) | ((w & 0xff00) >> 8) |
| #define | FOLD_U32T(u) ((u >> 16) + (u & 0x0000ffffUL)) |
Functions | |
| u16_t | inet_chksum_pbuf (struct pbuf *p) |
Incluse internet checksum functions.
| #define FOLD_U32T | ( | u | ) | ((u >> 16) + (u & 0x0000ffffUL)) |
Split an u32_t in two u16_ts and add them up
| #define SWAP_BYTES_IN_WORD | ( | w | ) | ((w & 0xff) << 8) | ((w & 0xff00) >> 8) |
Like the name says...
| u16_t inet_chksum_pbuf | ( | struct pbuf * | p | ) |
Calculate a checksum over a chain of pbufs (without pseudo-header, much like inet_chksum only pbufs are used).
| p | pbuf chain over that the checksum should be calculated |
1.8.11