From dcdd7562f42e9e6a54a19bf471ebef80236b8845 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 16 May 2018 00:09:12 +0200 Subject: Implemented hash-based categories --- example/ndpiReader.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'example/ndpiReader.c') 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); -- cgit v1.2.3