1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. 4 */ 5 6 #ifndef _ASM_CHECKSUM_H 7 #define _ASM_CHECKSUM_H 8 9 #define do_csum do_csum 10 unsigned int do_csum(const void *voidptr, int len); 11 12 /* 13 * computes the checksum of the TCP/UDP pseudo-header 14 * returns a 16-bit checksum, already complemented 15 */ 16 #define csum_tcpudp_nofold csum_tcpudp_nofold 17 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, 18 __u32 len, __u8 proto, __wsum sum); 19 20 #define csum_tcpudp_magic csum_tcpudp_magic 21 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, 22 __u32 len, __u8 proto, __wsum sum); 23 24 #include <asm-generic/checksum.h> 25 26 #endif 27
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.