checksum.h (01cfbad79a5e2b835abf6a8154a341d75a6fc8cd) checksum.h (1e94082963747b551b129528714827f76a090e93)
1/*
2 * arch/arm/include/asm/checksum.h
3 *
4 * IP checksum routines
5 *
6 * Copyright (C) Original authors of ../asm-i386/checksum.h
7 * Copyright (C) 1996-1999 Russell King
8 */

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

139}
140
141#define _HAVE_ARCH_IPV6_CSUM
142extern __wsum
143__csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len,
144 __be32 proto, __wsum sum);
145
146static inline __sum16
1/*
2 * arch/arm/include/asm/checksum.h
3 *
4 * IP checksum routines
5 *
6 * Copyright (C) Original authors of ../asm-i386/checksum.h
7 * Copyright (C) 1996-1999 Russell King
8 */

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

139}
140
141#define _HAVE_ARCH_IPV6_CSUM
142extern __wsum
143__csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len,
144 __be32 proto, __wsum sum);
145
146static inline __sum16
147csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len,
148 unsigned short proto, __wsum sum)
147csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr,
148 __u32 len, __u8 proto, __wsum sum)
149{
150 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len),
151 htonl(proto), sum));
152}
153#endif
149{
150 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len),
151 htonl(proto), sum));
152}
153#endif