From 913c8d5a18258d0b6fa0b7240d5d3a122b6910a3 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 4 Aug 2020 01:55:21 +0200 Subject: moved more default config options into config.h Signed-off-by: Toni Uhlig --- config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config.h') 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 -- cgit v1.2.3