Barrelfish
Functions
inet6.c File Reference

Functions

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.

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
ppbuf chain over that the checksum should be calculated
Returns
checksum (as u16_t) to be saved directly in the protocol header