xref: /haiku/src/libs/compat/freebsd_network/compat/machine/in_cksum.h (revision 16d5c24e533eb14b7b8a99ee9f3ec9ba66335b1e)
1 /*
2  * Copyright 2007, Axel Dörfler, axeld@pinc-software.de. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _FBSD_COMPAT_MACHINE_IN_CKSUM_H_
6 #define _FBSD_COMPAT_MACHINE_IN_CKSUM_H_
7 
8 
9 #include <stdint.h>
10 
11 
12 static inline u_short
13 in_pseudo(u_int sum, u_int b, u_int c)
14 {
15 	// should never be called
16 	panic("in_pseudo() called");
17 	return 0;
18 }
19 
20 #define in_cksum(m, len)	in_cksum_skip(m, len, 0)
21 
22 static inline u_short
23 in_cksum_skip(struct mbuf* m, int len, int skip)
24 {
25 	// should never be called
26 	panic("in_cksum_skip() called");
27 	return 0;
28 }
29 
30 #endif	/* _FBSD_COMPAT_MACHINE_IN_CKSUM_H_ */
31