inet_chksum.c File Reference

#include "lwip/opt.h"
#include "lwip/inet_chksum.h"
#include "lwip/def.h"
#include <stddef.h>
#include <string.h>

Functions

u16_t inet_chksum_pbuf (struct pbuf *p)

Detailed Description

Incluse internet checksum functions.

Function Documentation

u16_t inet_chksum_pbuf struct pbuf *  p  ) 
 

Calculate a checksum over a chain of pbufs (without pseudo-header, much like inet_chksum only pbufs are used).

Parameters:
p pbuf chain over that the checksum should be calculated
Returns:
checksum (as u16_t) to be saved directly in the protocol header


Generated on Fri Feb 14 12:33:21 2014 for 2014.1_doc by  doxygen 1.4.5