aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2015-06-18 16:24:03 +0200
committerLuca <deri@ntop.org>2015-06-18 16:24:03 +0200
commit9d361ec772e132b54121012a506a7ba1947e935d (patch)
treed772a7714dbce0b90284b5bc9bde18ee21d51c87 /example
parent5b62fa3464008354a742263f925fc348c2bccf04 (diff)
HTTP response is now dissected so we can match mime types on responses
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index ac3a0497c..a73a29d0c 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -76,7 +76,7 @@ static char *_jsonFilePath = NULL; /**< JSON file path */
#ifdef HAVE_JSON_C
static json_object *jArray_known_flows, *jArray_unknown_flows;
#endif
-static u_int8_t live_capture = 0, full_http_dissection = 0;
+static u_int8_t live_capture = 0, full_http_dissection = 1;
static u_int8_t undetected_flows_deleted = 0;
/**
* User preferences
@@ -897,8 +897,8 @@ static void setupDetection(u_int16_t thread_id) {
exit(-1);
}
- if(full_http_dissection)
- ndpi_thread_info[thread_id].ndpi_struct->http_dissect_response = 1;
+ if(!full_http_dissection)
+ ndpi_thread_info[thread_id].ndpi_struct->http_dont_dissect_response = 1;
// enable all protocols
NDPI_BITMASK_SET_ALL(all);