checksum.h (01cfbad79a5e2b835abf6a8154a341d75a6fc8cd) checksum.h (1e94082963747b551b129528714827f76a090e93)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995, 96, 97, 98, 99, 2001 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
8 * Copyright (C) 2001 Thiemo Seufer.

--- 201 unchanged lines hidden (view full) ---

210static inline __sum16 ip_compute_csum(const void *buff, int len)
211{
212 return csum_fold(csum_partial(buff, len, 0));
213}
214
215#define _HAVE_ARCH_IPV6_CSUM
216static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
217 const struct in6_addr *daddr,
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995, 96, 97, 98, 99, 2001 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
8 * Copyright (C) 2001 Thiemo Seufer.

--- 201 unchanged lines hidden (view full) ---

210static inline __sum16 ip_compute_csum(const void *buff, int len)
211{
212 return csum_fold(csum_partial(buff, len, 0));
213}
214
215#define _HAVE_ARCH_IPV6_CSUM
216static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
217 const struct in6_addr *daddr,
218 __u32 len, unsigned short proto,
218 __u32 len, __u8 proto,
219 __wsum sum)
220{
221 __wsum tmp;
222
223 __asm__(
224 " .set push # csum_ipv6_magic\n"
225 " .set noreorder \n"
226 " .set noat \n"

--- 59 unchanged lines hidden ---
219 __wsum sum)
220{
221 __wsum tmp;
222
223 __asm__(
224 " .set push # csum_ipv6_magic\n"
225 " .set noreorder \n"
226 " .set noat \n"

--- 59 unchanged lines hidden ---