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