29 static uint16_t
add(uint16_t a, uint16_t b);
30 static uint16_t
add(uint16_t a, uint16_t b,
bool odd);
31 static uint16_t
calc(uint16_t len,
const uint8_t *data);
32 static uint16_t
calc(uint16_t checksum, uint16_t len,
const uint8_t *data);
static uint16_t calc(uint16_t len, const uint8_t *data)
Calculates the checksum of the specified buffer in memory
static uint16_t add(uint16_t a, uint16_t b)
Adds two checksums, taking carry into account.
Contains functions to perform IP checksum operations.