aboutsummaryrefslogtreecommitdiff
path: root/defs.h
blob: 945dc56e4a8fb48a6e1a065b4576ec74eacbd8c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 */