| .. | .. |
|---|
| 16 | 16 | */ |
|---|
| 17 | 17 | extern __wsum csum_partial(const void *buff, int len, __wsum sum); |
|---|
| 18 | 18 | |
|---|
| 19 | | -/* |
|---|
| 20 | | - * the same as csum_partial, but copies from src while it |
|---|
| 21 | | - * checksums |
|---|
| 22 | | - * |
|---|
| 23 | | - * here even more important to align src and dst on a 32-bit (or even |
|---|
| 24 | | - * better 64-bit) boundary |
|---|
| 25 | | - */ |
|---|
| 26 | | -extern __wsum csum_partial_copy(const void *src, void *dst, int len, __wsum sum); |
|---|
| 27 | | - |
|---|
| 28 | | -/* |
|---|
| 29 | | - * the same as csum_partial_copy, but copies from user space. |
|---|
| 30 | | - * |
|---|
| 31 | | - * here even more important to align src and dst on a 32-bit (or even |
|---|
| 32 | | - * better 64-bit) boundary |
|---|
| 33 | | - */ |
|---|
| 34 | | -extern __wsum csum_partial_copy_from_user(const void __user *src, void *dst, |
|---|
| 35 | | - int len, __wsum sum, int *csum_err); |
|---|
| 36 | | - |
|---|
| 37 | | -#ifndef csum_partial_copy_nocheck |
|---|
| 38 | | -#define csum_partial_copy_nocheck(src, dst, len, sum) \ |
|---|
| 39 | | - csum_partial_copy((src), (dst), (len), (sum)) |
|---|
| 40 | | -#endif |
|---|
| 41 | | - |
|---|
| 42 | 19 | #ifndef ip_fast_csum |
|---|
| 43 | 20 | /* |
|---|
| 44 | 21 | * This is a version of ip_compute_csum() optimized for IP headers, |
|---|