aboutsummaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/defs.h b/defs.h
new file mode 100644
index 0000000..945dc56
--- /dev/null
+++ b/defs.h
@@ -0,0 +1,29 @@
+/*
+
+(C) 2009-2011 Mika Ilmaranta <ilmis@nullnet.fi>
+
+License: GPLv2
+
+*/
+
+#ifndef __DEFS_H__
+#define __DEFS_H__
+
+#ifndef TRUE
+#define TRUE (1)
+#define FALSE (0)
+#endif
+
+#define MIN_PERHOST_INTERVAL (20000L) /* 20ms in between sends minimum */
+#define DEFAULT_SELECT_WAIT (10000L) /* wait at least 10ms for incoming packet */
+
+#define FOLLOWED_PKTS (100) /* THIS ABSOLUTELY CAN'T EXCEED 0xffff (65535 decimal) OR THINGS BREAK */
+#define SEQ_LIMITER ((0x10000 / FOLLOWED_PKTS) * FOLLOWED_PKTS)
+
+#define min(x, y) ((x)<(y) ? (x) : (y))
+
+#define PLUGIN_EXPORT_DIR "/var/lib/lsm"
+
+#endif
+
+/* EOF */