aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-04-07 19:17:37 +0200
committerLuca Deri <deri@ntop.org>2020-04-07 19:17:37 +0200
commitdb8497778ddc578a58caf5447f0b5de3972f64c6 (patch)
treeddd498ece57a403f7ff133e6135309e0182762b6 /example/ndpiReader.c
parentdea883a25d97a9b5564cfb6b9d1b0d61a8a818f3 (diff)
Fixes #853 and adds a self check for duplicates
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 1f09e610e..bc9df4294 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -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);