diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-03-02 10:06:37 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-03-02 10:06:37 +0100 |
commit | 61053862dea6474150fd7c9d1b6c446911e2eea5 (patch) | |
tree | be395d74c9e5d60d475b3bff08129b0db70325c1 /src/include/ndpi_define.h.in | |
parent | 7a7e4ee69f272900d6869b8fa07800653c4298a1 (diff) |
Added configureable ndpi packet processing limit.improved/ndpi-max-packets-to-process
* 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.in | 3 |
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 */ |