diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_define.h.in | 3 | ||||
-rw-r--r-- | src/include/ndpi_typedefs.h | 4 |
2 files changed, 4 insertions, 3 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 */ diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 368cdb19d..d796606a0 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -921,7 +921,8 @@ typedef enum { typedef enum { ndpi_pref_direction_detect_disable = 0, - ndpi_pref_enable_tls_block_dissection /* nDPI considers only those blocks past the certificate exchange */ + ndpi_pref_max_packets_to_process, + ndpi_pref_enable_tls_block_dissection, /* nDPI considers only those blocks past the certificate exchange */ } ndpi_detection_preference; /* ntop extensions */ @@ -984,6 +985,7 @@ struct ndpi_detection_module_struct { NDPI_PROTOCOL_BITMASK detection_bitmask; u_int32_t current_ts; + u_int16_t max_packets_to_process; u_int16_t num_tls_blocks_to_follow; u_int8_t skip_tls_blocks_until_change_cipher:1, enable_ja3_plus:1, _notused:6; u_int8_t tls_certificate_expire_in_x_days; |