Nut/OS  4.10.3
API Reference
ipcsum.c File Reference
#include <netinet/ipcsum.h>
Include dependency graph for ipcsum.c:

Go to the source code of this file.

Data Structures

struct  pseudo_hdr

Functions

uint16_t NutIpChkSumPartial (uint16_t ics, CONST void *buf, int len)
 Calculate a partial IP checksum of a buffer.
uint16_t NutIpChkSum (uint16_t ics, CONST void *buf, int len)
 Calculates an the final IP checksum over a block of data.
uint32_t NutIpPseudoChkSumPartial (uint32_t src_addr, uint32_t dest_addr, uint8_t protocol, int len)
 Calculates the partial IP pseudo checksum.