Fixes #853 and adds a self check for duplicates

This commit is contained in:
Luca Deri
2020-04-07 19:17:37 +02:00
parent dea883a25d
commit db8497778d
3 changed files with 21 additions and 4 deletions
+3 -1
View File
@@ -95,7 +95,8 @@ static struct ndpi_detection_module_struct *ndpi_info_mod = NULL;
extern u_int32_t max_num_packets_per_flow, max_packet_payload_dissection, max_num_reported_top_payloads;
extern u_int16_t min_pattern_len, max_pattern_len;
extern void ndpi_self_check_host_match(); /* Self check function */
struct flow_info {
struct ndpi_flow_info *flow;
u_int16_t thread_id;
@@ -3242,6 +3243,7 @@ int orginal_main(int argc, char **argv) {
automataUnitTest();
serializerUnitTest();
analyzeUnitTest();
ndpi_self_check_host_match();
gettimeofday(&startup_time, NULL);
ndpi_info_mod = ndpi_init_detection_module(ndpi_no_prefs);