summaryrefslogtreecommitdiffstats
path: root/xtables.c
diff options
context:
space:
mode:
Diffstat (limited to 'xtables.c')
-rw-r--r--xtables.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/xtables.c b/xtables.c
index c8988893..3c89a9d1 100644
--- a/xtables.c
+++ b/xtables.c
@@ -39,6 +39,15 @@
#ifndef NO_SHARED_LIBS
#include <dlfcn.h>
#endif
+#ifndef IPT_SO_GET_REVISION_MATCH /* Old kernel source. */
+# define IPT_SO_GET_REVISION_MATCH (IPT_BASE_CTL + 2)
+# define IPT_SO_GET_REVISION_TARGET (IPT_BASE_CTL + 3)
+#endif
+#ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */
+# define IP6T_SO_GET_REVISION_MATCH 68
+# define IP6T_SO_GET_REVISION_TARGET 69
+#endif
+
#define NPROTO 255