aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-08-04 01:55:21 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-08-04 01:55:21 +0200
commit913c8d5a18258d0b6fa0b7240d5d3a122b6910a3 (patch)
tree1bc9119bf606ebc782ae249a412aedf79e83cc8d /config.h
parent88b85cecb83757f6a4617a97980a6540822c72be (diff)
moved more default config options into config.h
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'config.h')
-rw-r--r--config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.h b/config.h
index 2d50aa1c6..aaca0fac9 100644
--- a/config.h
+++ b/config.h
@@ -1,8 +1,19 @@
#ifndef CONFIG_H
#define CONFIG_H 1
+/* macros shared across multiple executables */
#define COLLECTOR_UNIX_SOCKET "/tmp/ndpid-collector.sock"
#define DISTRIBUTOR_HOST "127.0.0.1"
#define DISTRIBUTOR_PORT 7000
+/* nDPId default config options */
+#define nDPId_MAX_FLOW_ROOTS_PER_THREAD 2048
+#define nDPId_MAX_IDLE_FLOWS_PER_THREAD 64
+#define nDPId_TICK_RESOLUTION 1000
+#define nDPId_MAX_READER_THREADS 4
+#define nDPId_IDLE_SCAN_PERIOD 10000 /* msec */
+#define nDPId_MAX_IDLE_TIME 300000 /* msec */
+#define nDPId_INITIAL_THREAD_HASH 0x03dd018b
+#define nDPId_MAX_PACKETS_PER_FLOW_TO_SEND 15
+
#endif