1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
6 #ifndef _ASM_CHECKSUM_H
7 #define _ASM_CHECKSUM_H
9 #define do_csum do_csum
10 unsigned int do_csum(const void *voidptr
, int len
);
13 * computes the checksum of the TCP/UDP pseudo-header
14 * returns a 16-bit checksum, already complemented
16 #define csum_tcpudp_nofold csum_tcpudp_nofold
17 __wsum
csum_tcpudp_nofold(__be32 saddr
, __be32 daddr
,
18 __u32 len
, __u8 proto
, __wsum sum
);
20 #define csum_tcpudp_magic csum_tcpudp_magic
21 __sum16
csum_tcpudp_magic(__be32 saddr
, __be32 daddr
,
22 __u32 len
, __u8 proto
, __wsum sum
);
24 #include <asm-generic/checksum.h>