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

Go to the source code of this file.

Macros

#define _HAVE_ARCH_IPV6_CSUM
 
#define HAVE_CSUM_COPY_USER
 

Functions

asmlinkage __wsum csum_partial (const void *buff, int len, __wsum sum)
 
asmlinkage __wsum csum_partial_copy_generic (const void *src, void *dst, int len, __wsum sum, int *src_err_ptr, int *dst_err_ptr)
 

Macro Definition Documentation

#define _HAVE_ARCH_IPV6_CSUM

Definition at line 174 of file checksum.h.

#define HAVE_CSUM_COPY_USER

Definition at line 240 of file checksum.h.

Function Documentation

asmlinkage __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.

asmlinkage __wsum csum_partial_copy_generic ( const void src,
void dst,
int  len,
__wsum  sum,
int src_err_ptr,
int dst_err_ptr 
)