Nut/OS  4.10.3
API Reference
ipcsum.h File Reference

IP checksum definitions. More...

#include <sys/types.h>
#include <stdint.h>
Include dependency graph for ipcsum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


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.

Detailed Description

IP checksum definitions.

Definition in file ipcsum.h.