Linux Kernel
3.7.1
|
#include <linux/in6.h>
Go to the source code of this file.
Macros | |
#define | _HAVE_ARCH_IPV6_CSUM |
Functions | |
__sum16 | ip_fast_csum (const void *iph, unsigned int ihl) |
__sum16 | csum_tcpudp_magic (__be32 saddr, __be32 daddr, unsigned short len, unsigned short proto, __wsum sum) |
__wsum | csum_tcpudp_nofold (__be32 saddr, __be32 daddr, unsigned short len, unsigned short proto, __wsum sum) |
__wsum | csum_partial (const void *buff, int len, __wsum sum) |
__wsum | csum_partial_copy_from_user (const void __user *src, void *dst, int len, __wsum sum, int *errp) |
__wsum | csum_partial_copy_nocheck (const void *src, void *dst, int len, __wsum sum) |
__sum16 | ip_compute_csum (const void *buff, int len) |
__sum16 | csum_ipv6_magic (const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, unsigned short proto, __wsum sum) |
#define _HAVE_ARCH_IPV6_CSUM |
Definition at line 70 of file checksum.h.
__sum16 csum_ipv6_magic | ( | const struct in6_addr * | saddr, |
const struct in6_addr * | daddr, | ||
__u32 | len, | ||
unsigned short | proto, | ||
__wsum | sum | ||
) |
Definition at line 129 of file csum-wrappers_64.c.
Definition at line 164 of file checksum.c.
__wsum csum_partial_copy_from_user | ( | const void __user * | src, |
void * | dst, | ||
int | len, | ||
__wsum | isum, | ||
int * | errp | ||
) |
csum_partial_copy_from_user - Copy and checksum from user space. : source address (user space) : destination address : number of bytes to be copied. : initial sum that is added into the result (32bit unfolded) : set to -EFAULT for an bad source address.
Returns an 32bit unfolded checksum of the buffer. src and dst are best aligned to 64bits.
Definition at line 333 of file csum_partial_copy.c.
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 | ( | __be32 | saddr, |
__be32 | daddr, | ||
unsigned short | len, | ||
unsigned short | proto, | ||
__wsum | sum | ||
) |
Definition at line 44 of file checksum.c.
__wsum csum_tcpudp_nofold | ( | __be32 | saddr, |
__be32 | daddr, | ||
unsigned short | len, | ||
unsigned short | proto, | ||
__wsum | sum | ||
) |
Definition at line 54 of file checksum.c.