inet_csum.h File Reference

Internet Checksum definitions. More...

Detailed Description

Internet Checksum definitions.

Author
Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de

Definition in file inet_csum.h.

#include <inttypes.h>
#include <stddef.h>
+ Include dependency graph for inet_csum.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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 checksum domain, calculated in order. More...
 
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 for the checksum. More...