diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org> | 2005-07-10 15:06:21 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org> | 2005-07-10 15:06:21 +0000 |
commit | 36ee4a4dd0ce0eab37c1aeac72353c0ebad42745 (patch) | |
tree | ee8d2f4f6d075be4957b2869868af7332d10bd2f /include/linux/netfilter_ipv4/ipt_conntrack.h | |
parent | 33fbea93ffed304ee91e96396f2fa99e2e8bb74d (diff) |
fix various missing header file / #define issues on old kernels. I've now tested compilation with kernels starting 2.4.17svn_t_iptables_1_3_2
Diffstat (limited to 'include/linux/netfilter_ipv4/ipt_conntrack.h')
-rw-r--r-- | include/linux/netfilter_ipv4/ipt_conntrack.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv4/ipt_conntrack.h b/include/linux/netfilter_ipv4/ipt_conntrack.h index de1c81f..eba410d 100644 --- a/include/linux/netfilter_ipv4/ipt_conntrack.h +++ b/include/linux/netfilter_ipv4/ipt_conntrack.h @@ -5,6 +5,23 @@ #ifndef _IPT_CONNTRACK_H #define _IPT_CONNTRACK_H +#include <linux/netfilter_ipv4/ip_conntrack.h> + +/* backwards compatibility crap. only exists in userspace - HW */ +#include <linux/version.h> +#ifndef KERNEL_VERSION +#define KERNEL_VERSION(a,b,c) (((a) << 16) | ((b) << 8) | (c)) +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18) +#define IPS_EXPECTED (1 << 0) +#define IPS_SEEN_REPLY (1 << 1) +#define IPS_ASSURED (1 << 2) +#define IP_CT_DIR_ORIGINAL 0 +#define IP_CT_DIR_REPLY 1 +#define IP_CT_DIR_MAX 2 +#endif + #define IPT_CONNTRACK_STATE_BIT(ctinfo) (1 << ((ctinfo)%IP_CT_IS_REPLY+1)) #define IPT_CONNTRACK_STATE_INVALID (1 << 0) |