20 #ifndef NET_INET_CSUM_H 21 #define NET_INET_CSUM_H 50 uint16_t
inet_csum_slice(uint16_t sum,
const uint8_t *buf, uint16_t len,
size_t accum_len);
72 static inline uint16_t
inet_csum(uint16_t sum,
const uint8_t *buf, uint16_t len) {
uint16_t inet_csum_slice(uint16_t sum, const uint8_t *buf, uint16_t len, size_t accum_len)
Calculates the unnormalized Internet Checksum of buf, where the buffer provides a slice of the full c...
Adds include for missing inttype definitions.
static uint16_t inet_csum(uint16_t sum, const uint8_t *buf, uint16_t len)
Calculates the unnormalized Internet Checksum of buf, where the buffer provides a standalone domain f...