summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorMartin Josefsson <gandalf@wlug.westbo.se>2005-01-05 15:21:15 +0000
committerMartin Josefsson <gandalf@wlug.westbo.se>2005-01-05 15:21:15 +0000
commit2b9a577a68c49d4ac3f44dbf0eb6c622de6b5c30 (patch)
tree92a30862afdca9f0b52edbc277a2a1862a87119b /extensions
parent225f462b814a47394858b5994acdcc4f3c951a66 (diff)
Make it compile on current kernels, the future isn't here yet.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libipt_LOG.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/libipt_LOG.c b/extensions/libipt_LOG.c
index 0f1cf9e9..39d6fb0b 100644
--- a/extensions/libipt_LOG.c
+++ b/extensions/libipt_LOG.c
@@ -11,6 +11,12 @@
#define LOG_DEFAULT_LEVEL LOG_WARNING
+#ifndef IPT_LOG_UID /* Old kernel */
+#define IPT_LOG_UID 0x08 /* Log UID owning local socket */
+#undef IPT_LOG_MASK
+#define IPT_LOG_MASK 0x0f
+#endif
+
/* Function which prints out usage message. */
static void
help(void)