diff options
author | Harald Welte <laforge@gnumonks.org> | 2005-07-10 15:06:21 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2005-07-10 15:06:21 +0000 |
commit | 893b688a2a73363c8cebe4bac0c1368178fce2fd (patch) | |
tree | ee8d2f4f6d075be4957b2869868af7332d10bd2f /include/linux/netfilter_ipv4/ipt_conntrack.h | |
parent | 63d68bf3a1e86e2c96e520f71c34519112c66453 (diff) |
fix various missing header file / #define issues on old kernels. I've now tested compilation with kernels starting 2.4.17v1.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 de1c81ff..eba410d7 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) |