#include <linux/module.h>
#include <linux/string.h>
#include <asm/byteorder.h>
Go to the source code of this file.
|
__sum16 | csum_tcpudp_magic (__be32 saddr, __be32 daddr, unsigned short len, unsigned short proto, __wsum sum) |
|
| EXPORT_SYMBOL (csum_tcpudp_magic) |
|
__wsum | csum_tcpudp_nofold (__be32 saddr, __be32 daddr, unsigned short len, unsigned short proto, __wsum sum) |
|
| EXPORT_SYMBOL (csum_tcpudp_nofold) |
|
unsigned long | do_csum (const unsigned char *, long) |
|
__wsum | csum_partial (const void *buff, int len, __wsum sum) |
|
| EXPORT_SYMBOL (csum_partial) |
|
__sum16 | ip_compute_csum (const void *buff, int len) |
|
| EXPORT_SYMBOL (ip_compute_csum) |
|
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 79 of file checksum.c.
ip_compute_csum - Compute an 16bit IP checksum. : buffer address. : length of buffer.
Returns the 16bit folded/inverted checksum of the passed buffer. Ready to fill in.
Definition at line 96 of file checksum.c.