diff --git a/src/mark.h b/src/mark.h index bb4ce22..8a5060e 100644 --- a/src/mark.h +++ b/src/mark.h @@ -1,6 +1,42 @@ #ifndef MARK_H #define MARK_H +#include + +//original inclusions +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 7, 0) +#if 0 + #include "libiptc/libiptc.h" + #include + #include + #include "libiptc/ipt_conntrack.h" + #include "libiptc/ipt_connmark.h" + #include "libiptc/ipt_CONNMARK.h" + #endif + + #if 1 + #include "libiptc/libiptc.h" + #if 1 + #include + #endif + #if 0 + #include + #endif +#include "libiptc/ipt_conntrack.h" +#include "libiptc/ipt_connmark.h" +#include "libiptc/ipt_CONNMARK.h" + #endif + + /* 2010 fixes for debian package */ + #if 0 + #include "libiptc/libiptc.h" + #include + #include + #include + #include + #endif +#endif + #include "libiptc/libiptc.h" #include #include "libiptc/ipt_conntrack.h" @@ -32,13 +68,13 @@ #define MATCH_SZ IPT_ENTRY_MATCH_SZ+IPT_CT_INFO_SZ #define TARGET_SZ IPT_ENTRY_TARGET_SZ+IPT_CM_TARGET_INFO_SZ -#define RESTORE_OUTPUT_RULE_SZ IPT_ENTRY_SZ+MATCH_SZ+TARGET_SZ +#define RESTORE_OUTPUT_RULE_SZ IPT_ENTRY_SZ+MATCH_SZ+TARGET_SZ #define OFFSET_MATCH IPT_ENTRY_SZ #define OFFSET_MATCH_INFO OFFSET_MATCH+IPT_ENTRY_MATCH_SZ #define OFFSET_TARGET OFFSET_MATCH_INFO+IPT_CT_INFO_SZ #define OFFSET_TARGET_INFO OFFSET_TARGET+IPT_ENTRY_TARGET_SZ - + #define MARK_RULE_SZ IPT_ENTRY_SZ+TARGET_SZ #define MAX_MARK_RULES 100