summaryrefslogtreecommitdiffstats
path: root/sys/contrib/ipfilter/netinet/ip_compat.h
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>2000-08-13 04:28:25 +0000
committerdarrenr <darrenr@FreeBSD.org>2000-08-13 04:28:25 +0000
commit15d169cdfcc633be9595e83cac604b7637123f9b (patch)
tree019b868f3d31969200994a76381df413b4d44fe2 /sys/contrib/ipfilter/netinet/ip_compat.h
parent89b6cd99cd8b52890fc9362c242b5b4713c47f78 (diff)
downloadFreeBSD-src-15d169cdfcc633be9595e83cac604b7637123f9b.zip
FreeBSD-src-15d169cdfcc633be9595e83cac604b7637123f9b.tar.gz
Import IP Filter 3.4.9 bits into the kernel
Diffstat (limited to 'sys/contrib/ipfilter/netinet/ip_compat.h')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_compat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_compat.h b/sys/contrib/ipfilter/netinet/ip_compat.h
index 9b7cddf..ba9e014 100644
--- a/sys/contrib/ipfilter/netinet/ip_compat.h
+++ b/sys/contrib/ipfilter/netinet/ip_compat.h
@@ -6,7 +6,7 @@
* to the original author and the contributors.
*
* @(#)ip_compat.h 1.8 1/14/96
- * $Id: ip_compat.h,v 2.26.2.3 2000/04/28 14:56:49 darrenr Exp $
+ * $Id: ip_compat.h,v 2.26.2.4 2000/08/13 03:51:03 darrenr Exp $
*/
#ifndef __IP_COMPAT_H__
@@ -126,6 +126,10 @@ typedef int minor_t;
#endif /* SOLARIS */
#define IPMINLEN(i, h) ((i)->ip_len >= ((i)->ip_hl * 4 + sizeof(struct h)))
+#if defined(__FreeBSD__) && (__FreeBSD__ >= 5) && defined(_KERNEL)
+# include <machine/in_cksum.h>
+#endif
+
#ifndef IP_OFFMASK
#define IP_OFFMASK 0x1fff
#endif
OpenPOWER on IntegriCloud