| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2016 ARM Ltd. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 6 | | - * published by the Free Software Foundation. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | | - * |
|---|
| 13 | | - * You should have received a copy of the GNU General Public License |
|---|
| 14 | | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 15 | 4 | */ |
|---|
| 16 | 5 | #ifndef __ASM_CHECKSUM_H |
|---|
| 17 | 6 | #define __ASM_CHECKSUM_H |
|---|
| 18 | 7 | |
|---|
| 19 | | -#include <linux/types.h> |
|---|
| 8 | +#include <linux/in6.h> |
|---|
| 9 | + |
|---|
| 10 | +#define _HAVE_ARCH_IPV6_CSUM |
|---|
| 11 | +__sum16 csum_ipv6_magic(const struct in6_addr *saddr, |
|---|
| 12 | + const struct in6_addr *daddr, |
|---|
| 13 | + __u32 len, __u8 proto, __wsum sum); |
|---|
| 20 | 14 | |
|---|
| 21 | 15 | static inline __sum16 csum_fold(__wsum csum) |
|---|
| 22 | 16 | { |
|---|
| .. | .. |
|---|
| 47 | 41 | } |
|---|
| 48 | 42 | #define ip_fast_csum ip_fast_csum |
|---|
| 49 | 43 | |
|---|
| 44 | +extern unsigned int do_csum(const unsigned char *buff, int len); |
|---|
| 45 | +#define do_csum do_csum |
|---|
| 46 | + |
|---|
| 50 | 47 | #include <asm-generic/checksum.h> |
|---|
| 51 | 48 | |
|---|
| 52 | 49 | #endif /* __ASM_CHECKSUM_H */ |
|---|