SAMV71 Xplained Ultra Software Package 1.4

inet6.c File Reference

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

Go to the source code of this file.

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)

Detailed Description

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

Definition in file inet6.c.


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

Definition at line 140 of file inet6.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines