HTTP response is now dissected so we can match mime types on responses

This commit is contained in:
Luca
2015-06-18 16:24:03 +02:00
parent 5b62fa3464
commit 9d361ec772
3 changed files with 21 additions and 14 deletions
+3 -3
View File
@@ -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);