Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / include / linux / netfilter_ipv4 / ipt_state.h
index 5df3786..a44a99c 100644 (file)
@@ -1,13 +1,15 @@
 #ifndef _IPT_STATE_H
 #define _IPT_STATE_H
 
-#define IPT_STATE_BIT(ctinfo) (1 << ((ctinfo)%IP_CT_IS_REPLY+1))
-#define IPT_STATE_INVALID (1 << 0)
+/* Backwards compatibility for old userspace */
 
-#define IPT_STATE_UNTRACKED (1 << (IP_CT_NUMBER + 1))
+#include <linux/netfilter/xt_state.h>
+
+#define IPT_STATE_BIT          XT_STATE_BIT
+#define IPT_STATE_INVALID      XT_STATE_INVALID
+
+#define IPT_STATE_UNTRACKED    XT_STATE_UNTRACKED
+
+#define ipt_state_info         xt_state_info
 
-struct ipt_state_info
-{
-       unsigned int statemask;
-};
 #endif /*_IPT_STATE_H*/