aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-11-24 12:09:24 +0100
committerToni Uhlig <matzeton@googlemail.com>2022-12-06 12:52:52 +0100
commitd21a38cf029db3fc8f61f00c89452e36b5189bf9 (patch)
tree5c6c500997b218df8bcf02f2cbf3044b086c03b3 /config.h
parentced5f5d4b4f9617966e519fb234e2aaaf677e22b (diff)
Limit the size of base64 serialized raw packet data (8192 bytes per packet).
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'config.h')
-rw-r--r--config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.h b/config.h
index 8d0387634..739cfb53f 100644
--- a/config.h
+++ b/config.h
@@ -36,6 +36,7 @@
#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_PLEN_MAX (1024u * 8u) /* 8kB */
#define nDPId_PACKETS_PER_FLOW_TO_SEND 15u
#define nDPId_PACKETS_PER_FLOW_TO_PROCESS NDPI_DEFAULT_MAX_NUM_PKTS_PER_FLOW_TO_DISSECT
#define nDPId_PACKETS_PER_FLOW_TO_ANALYZE 32u