From f2a5bbef173ee7f5447871f26024b9639735c096 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 29 Sep 2019 21:46:41 +0200 Subject: Reworked categories handling Removed GenericProtocol and replaced with categories Removed ndpi_pref_enable_category_substring_match option: substring matching is now default --- example/ndpiReader.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 7a13b90e2..1a54b59d4 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1851,9 +1851,7 @@ 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_dont_dissect_response, 0); - ndpi_set_detection_preferences(ndpi_thread_info[thread_id].workflow->ndpi_struct, - ndpi_pref_enable_category_substring_match, 1); - + ndpi_workflow_set_flow_detected_callback(ndpi_thread_info[thread_id].workflow, on_protocol_discovered, (void *)(uintptr_t)thread_id); @@ -1906,7 +1904,7 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) { /* TODO free the strdup */ ndpi_load_hostname_category(ndpi_thread_info[thread_id].workflow->ndpi_struct, strdup(name), (ndpi_protocol_category_t)atoi(category)); - } + } } } } -- cgit v1.2.3