Nut/OS  5.0.5
API Reference
ipcsum.c File Reference

IP checksum calculation. More...

#include <netinet/ipcsum.h>
Include dependency graph for ipcsum.c:

Data Structures

struct  pseudo_hdr

Defines

#define NUT_LEGACY_IPCSUM

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.

Detailed Description

IP checksum calculation.

 * $Id: ipcsum.c 4473 2012-08-20 15:12:45Z haraldkipp $
 * 

Define Documentation

#define NUT_LEGACY_IPCSUM