aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2018-05-14 21:40:27 +0200
committerLuca Deri <deri@ntop.org>2018-05-14 21:40:27 +0200
commit1076455c01bfcfa51b24ff8d681e65fd00047dbd (patch)
tree1ffe59c0ae57a55499cece7a2131431bdcf6eea2 /example/ndpiReader.c
parent2d486aeed8e6450cc8034d6244848297bdefc31e (diff)
Added ndpi_set_detection_preferences() APi call
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c6
1 files changed, 4 insertions, 2 deletions
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);