aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2018-05-16 00:09:12 +0200
committerLuca Deri <deri@ntop.org>2018-05-16 00:09:12 +0200
commitdcdd7562f42e9e6a54a19bf471ebef80236b8845 (patch)
treec12aabe8775b4b53a24fd08f1180de7eeffc768c /example
parent66b759ca690425aa94b88b05f5a23818dce0b4be (diff)
Implemented hash-based categories
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index c3b49aa41..76fad23dd 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1464,6 +1464,8 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
ndpi_pref_http_dont_dissect_response, 0);
ndpi_set_detection_preferences(ndpi_thread_info[thread_id].workflow->ndpi_struct,
ndpi_pref_dns_dissect_response, 0);
+ ndpi_set_detection_preferences(ndpi_thread_info[thread_id].workflow->ndpi_struct,
+ ndpi_pref_enable_category_substring_match, 0);
ndpi_workflow_set_flow_detected_callback(ndpi_thread_info[thread_id].workflow,
on_protocol_discovered, (void *)(uintptr_t)thread_id);