Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
old_checksum.c File Reference
#include <net/checksum.h>
#include <net/module.h>
#include <asm/delay.h>

Go to the source code of this file.

Macros

#define BITOFF
 
#define BITON
 
#define CBITOFF
 
#define CBITON
 

Functions

__wsum csum_partial (const void *p, int len, __wsum __sum)
 
 EXPORT_SYMBOL (csum_partial)
 

Macro Definition Documentation

#define BITOFF

Definition at line 37 of file old_checksum.c.

#define BITON

Definition at line 38 of file old_checksum.c.

#define CBITOFF

Definition at line 39 of file old_checksum.c.

#define CBITON

Definition at line 40 of file old_checksum.c.

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 49 of file old_checksum.c.

EXPORT_SYMBOL ( csum_partial  )