Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
checksum.h File Reference
#include <linux/string.h>
#include <linux/in6.h>
#include "checksum_64.h"

Go to the source code of this file.

Functions

__wsum csum_partial (const void *buff, int len, __wsum sum)
 

Function Documentation

__wsum csum_partial ( const void buff,
int  len,
__wsum  sum 
)

csum_partial - Compute an internet checksum. : buffer to be checksummed : length of buffer. : initial sum to be added in (32bit unfolded)

Returns the 32bit unfolded internet checksum of the buffer. Before filling it in it needs to be csum_fold()'ed. buff should be aligned to a 64bit boundary if possible.

Definition at line 164 of file checksum.c.