aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-02-01 15:36:00 +0100
committerToni Uhlig <matzeton@googlemail.com>2021-02-06 15:41:30 +0100
commit69b4e662c773c3cfdad29035e7668457e5960c99 (patch)
treeb6b73c02402cebe43749880c6a118d23c488bc09 /config.h
parent257cce1dccb19190ebcb4c48bac421a21daa4a56 (diff)
nDPIsrvd C API overhaul and massive simplification.
* nDPIsrvd.h does flow mgmt out of the box * dissect received JSON strings via callback * added new JSON key/values for packet-flows (usecTimestamp/L3/L4 info) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'config.h')
-rw-r--r--config.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/config.h b/config.h
index b744746c0..94b08465d 100644
--- a/config.h
+++ b/config.h
@@ -5,27 +5,27 @@
#define COLLECTOR_UNIX_SOCKET "/tmp/ndpid-collector.sock"
#define DISTRIBUTOR_UNIX_SOCKET "/tmp/ndpid-distributor.sock"
#define DISTRIBUTOR_HOST "127.0.0.1"
-#define DISTRIBUTOR_PORT 7000
+#define DISTRIBUTOR_PORT 7000u
/*
* NOTE: Buffer size needs to keep in sync with other implementations
* e.g. dependencies/nDPIsrvd.py
*/
-#define NETWORK_BUFFER_MAX_SIZE 12288 /* 8192 + 4096 */
-#define NETWORK_BUFFER_LENGTH_DIGITS 5
+#define NETWORK_BUFFER_MAX_SIZE 12288u /* 8192 + 4096 */
+#define NETWORK_BUFFER_LENGTH_DIGITS 5u
#define NETWORK_BUFFER_LENGTH_DIGITS_STR "5"
/* nDPId default config options */
#define nDPId_PIDFILE "/tmp/ndpid.pid"
-#define nDPId_MAX_FLOWS_PER_THREAD 4096
-#define nDPId_MAX_IDLE_FLOWS_PER_THREAD 512
-#define nDPId_TICK_RESOLUTION 1000
-#define nDPId_MAX_READER_THREADS 32
-#define nDPId_IDLE_SCAN_PERIOD 10000 /* 10 sec */
-#define nDPId_IDLE_TIME 600000 /* 600 sec */
-#define nDPId_TCP_POST_END_FLOW_TIME 60000 /* 60 sec */
+#define nDPId_MAX_FLOWS_PER_THREAD 4096u
+#define nDPId_MAX_IDLE_FLOWS_PER_THREAD 512u
+#define nDPId_TICK_RESOLUTION 1000u
+#define nDPId_MAX_READER_THREADS 32u
+#define nDPId_IDLE_SCAN_PERIOD 10000u /* 10 sec */
+#define nDPId_IDLE_TIME 600000u /* 600 sec */
+#define nDPId_TCP_POST_END_FLOW_TIME 60000u /* 60 sec */
#define nDPId_THREAD_DISTRIBUTION_SEED 0x03dd018b
-#define nDPId_PACKETS_PER_FLOW_TO_SEND 15
+#define nDPId_PACKETS_PER_FLOW_TO_SEND 15u
#define nDPId_FLOW_STRUCT_SEED 0x5defc104
/* nDPIsrvd default config options */