diff options
| author | Lucas Castro <lucas@gnuabordo.com.br> | 2024-01-10 22:33:44 -0300 |
|---|---|---|
| committer | Lucas Castro <lucas@gnuabordo.com.br> | 2024-01-10 22:33:44 -0300 |
| commit | a4270020addc324fb60d2b1b446b41bc31e3baf8 (patch) | |
| tree | 8708f08c66a63f08c0cd88ab1a46faadcd3f4706 /defs.h | |
Import Upstream version 1.0.4upstream/1.0.4
Diffstat (limited to 'defs.h')
| -rw-r--r-- | defs.h | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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 */ |
