aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-11-18 11:26:05 +0100
committerToni Uhlig <matzeton@googlemail.com>2022-11-21 11:26:05 +0100
commit64f6abfdbedf00994f3614757efbeabe14afd87e (patch)
tree28946fd8385147a80abe006b8739cad383bf248e /config.h
parent77ee336cc941694b078906b7afda51dd21538450 (diff)
Unified nDPId/nDPIsrvd command line argument storage.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'config.h')
-rw-r--r--config.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/config.h b/config.h
index afc8d1d20..8d0387634 100644
--- a/config.h
+++ b/config.h
@@ -2,6 +2,7 @@
#define CONFIG_H 1
/* macros shared across multiple executables */
+#define DEFAULT_CHUSER "nobody"
#define COLLECTOR_UNIX_SOCKET "/tmp/ndpid-collector.sock"
#define DISTRIBUTOR_UNIX_SOCKET "/tmp/ndpid-distributor.sock"
#define DISTRIBUTOR_HOST "127.0.0.1"
@@ -23,17 +24,17 @@
#define nDPId_MAX_IDLE_FLOWS_PER_THREAD (nDPId_MAX_FLOWS_PER_THREAD / 32u)
#define nDPId_MAX_READER_THREADS 32u
#define nDPId_ERROR_EVENT_THRESHOLD_N 16u
-#define nDPId_ERROR_EVENT_THRESHOLD_TIME TIME_S_TO_US(10u) /* 10 sec */
-#define nDPId_DAEMON_STATUS_INTERVAL TIME_S_TO_US(600u) /* 600 sec */
+#define nDPId_ERROR_EVENT_THRESHOLD_TIME TIME_S_TO_US(10u) /* 10 sec */
+#define nDPId_DAEMON_STATUS_INTERVAL TIME_S_TO_US(600u) /* 600 sec */
#define nDPId_MEMORY_PROFILING_LOG_INTERVAL TIME_S_TO_US(5u) /* 5 sec */
-#define nDPId_COMPRESSION_SCAN_INTERVAL TIME_S_TO_US(20u) /* 20 sec */
-#define nDPId_COMPRESSION_FLOW_INACTIVITY TIME_S_TO_US(30u) /* 30 sec */
-#define nDPId_FLOW_SCAN_INTERVAL TIME_S_TO_US(10u) /* 10 sec */
-#define nDPId_GENERIC_IDLE_TIME TIME_S_TO_US(600u) /* 600 sec */
-#define nDPId_ICMP_IDLE_TIME TIME_S_TO_US(120u) /* 120 sec */
-#define nDPId_TCP_IDLE_TIME TIME_S_TO_US(7440u) /* 7440 sec */
-#define nDPId_UDP_IDLE_TIME TIME_S_TO_US(180u) /* 180 sec */
-#define nDPId_TCP_POST_END_FLOW_TIME TIME_S_TO_US(120u) /* 120 sec */
+#define nDPId_COMPRESSION_SCAN_INTERVAL TIME_S_TO_US(20u) /* 20 sec */
+#define nDPId_COMPRESSION_FLOW_INACTIVITY TIME_S_TO_US(30u) /* 30 sec */
+#define nDPId_FLOW_SCAN_INTERVAL TIME_S_TO_US(10u) /* 10 sec */
+#define nDPId_GENERIC_IDLE_TIME TIME_S_TO_US(600u) /* 600 sec */
+#define nDPId_ICMP_IDLE_TIME TIME_S_TO_US(120u) /* 120 sec */
+#define nDPId_TCP_IDLE_TIME TIME_S_TO_US(7440u) /* 7440 sec */
+#define nDPId_UDP_IDLE_TIME TIME_S_TO_US(180u) /* 180 sec */
+#define nDPId_TCP_POST_END_FLOW_TIME TIME_S_TO_US(120u) /* 120 sec */
#define nDPId_THREAD_DISTRIBUTION_SEED 0x03dd018b
#define nDPId_PACKETS_PER_FLOW_TO_SEND 15u
#define nDPId_PACKETS_PER_FLOW_TO_PROCESS NDPI_DEFAULT_MAX_NUM_PKTS_PER_FLOW_TO_DISSECT