aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_define.h.in
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2022-03-02 12:02:09 +0100
committerGitHub <noreply@github.com>2022-03-02 12:02:09 +0100
commit4da1453d904f03c536a6b982217d9785338a7f92 (patch)
tree95fdbf7cc66ebe5a56b6861df818fec82398a379 /src/include/ndpi_define.h.in
parent736a80f9ce7a73e8c136d3621facb1bdb3637e65 (diff)
Added configureable ndpi packet processing limit. (#1466)
* The current behaviour ignores any user preferences and was also incorrectly implemented, because the flow->num_processed_pkts wraps every 65535 and nDPI will process packets again until NDPI_MAX_NUM_PKTS_PER_FLOW_TO_DISSECT reached. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/include/ndpi_define.h.in')
-rw-r--r--src/include/ndpi_define.h.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/ndpi_define.h.in b/src/include/ndpi_define.h.in
index b16e0a63b..c6eb512ae 100644
--- a/src/include/ndpi_define.h.in
+++ b/src/include/ndpi_define.h.in
@@ -156,8 +156,7 @@
/* misc definitions */
#define NDPI_DEFAULT_MAX_TCP_RETRANSMISSION_WINDOW_SIZE 0x10000
-#define NDPI_MAX_NUM_PKTS_PER_FLOW_TO_DISSECT 32
-
+#define NDPI_DEFAULT_MAX_NUM_PKTS_PER_FLOW_TO_DISSECT 32
/* TODO: rebuild all memory areas to have a more aligned memory block here */