From 1076455c01bfcfa51b24ff8d681e65fd00047dbd Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 14 May 2018 21:40:27 +0200 Subject: Added ndpi_set_detection_preferences() APi call --- example/ndpiReader.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 8560b0910..2aa08feba 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1458,8 +1458,10 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) { ndpi_thread_info[thread_id].workflow = ndpi_workflow_init(&prefs, pcap_handle); /* Preferences */ - ndpi_thread_info[thread_id].workflow->ndpi_struct->http_dont_dissect_response = 0; - ndpi_thread_info[thread_id].workflow->ndpi_struct->dns_dissect_response = 0; + ndpi_set_detection_preferences(ndpi_thread_info[thread_id].workflow->ndpi_struct, + 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_workflow_set_flow_detected_callback(ndpi_thread_info[thread_id].workflow, on_protocol_discovered, (void *)(uintptr_t)thread_id); -- cgit v1.2.3