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 <asm-generic/checksum.h>

Go to the source code of this file.

Macros

#define do_csum   do_csum
 
#define csum_partial_copy_nocheck   csum_partial_copy_nocheck
 
#define csum_tcpudp_nofold   csum_tcpudp_nofold
 
#define csum_tcpudp_magic   csum_tcpudp_magic
 

Functions

unsigned int do_csum (const void *voidptr, int len)
 
__wsum csum_partial_copy_nocheck (const void *src, void *dst, int len, __wsum sum)
 
__wsum csum_tcpudp_nofold (unsigned long saddr, unsigned long daddr, unsigned short len, unsigned short proto, __wsum sum)
 
__sum16 csum_tcpudp_magic (unsigned long saddr, unsigned long daddr, unsigned short len, unsigned short proto, __wsum sum)
 

Macro Definition Documentation

#define csum_partial_copy_nocheck   csum_partial_copy_nocheck

Definition at line 32 of file checksum.h.

#define csum_tcpudp_magic   csum_tcpudp_magic

Definition at line 44 of file checksum.h.

#define csum_tcpudp_nofold   csum_tcpudp_nofold

Definition at line 40 of file checksum.h.

#define do_csum   do_csum

Definition at line 22 of file checksum.h.

Function Documentation

__wsum csum_partial_copy_nocheck ( const void src,
void dst,
int  len,
__wsum  sum 
)

csum_partial_copy_nocheck - Copy and checksum. : source address : destination address : number of bytes to be copied. : initial sum that is added into the result (32bit unfolded)

Returns an 32bit unfolded checksum of the buffer.

Definition at line 374 of file csum_partial_copy.c.

__sum16 csum_tcpudp_magic ( unsigned long  saddr,
unsigned long  daddr,
unsigned short  len,
unsigned short  proto,
__wsum  sum 
)

Definition at line 63 of file checksum.c.

__wsum csum_tcpudp_nofold ( unsigned long  saddr,
unsigned long  daddr,
unsigned short  len,
unsigned short  proto,
__wsum  sum 
)

Definition at line 72 of file checksum.c.

unsigned int do_csum ( const void voidptr,
int  len 
)

Definition at line 100 of file checksum.c.