Functions

alexb/lib/lwip/contrib/src/core/ipv6/inet6.c File Reference

Functions common to all TCP/IPv6 modules, such as the Internet checksum and the byte order functions. More...

#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/inet.h"

Functions

u16_t inet_chksum_pseudo (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t proto, u32_t proto_len)
u16_t inet_chksum (void *dataptr, u16_t len)
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).

Detailed Description

Functions common to all TCP/IPv6 modules, such as the Internet checksum and the byte order functions.


Function Documentation

u16_t inet_chksum ( void *  dataptr,
u16_t  len 
)
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
u16_t inet_chksum_pseudo ( struct pbuf p,
struct ip_addr src,
struct ip_addr dest,
u8_t  proto,
u32_t  proto_len 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines