From 2768da06377ab64fccbb1bf97460e892e0548a60 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 16 Dec 2020 14:45:29 +0100 Subject: Improved HTTP dissection --- src/lib/protocols/http.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/lib/protocols') diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 1a6b2f613..266b441ac 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -359,10 +359,6 @@ int http_process_user_agent(struct ndpi_detection_module_struct *ndpi_struct, setHttpUserAgent(ndpi_struct, flow, token); } } - } else if((ua_ptr_len > 14) && (memcmp(ua, "netflix-ios-app", 15) == 0)) { - NDPI_LOG_INFO(ndpi_struct, "found netflix\n"); - ndpi_int_http_add_connection(ndpi_struct, flow, NDPI_PROTOCOL_NETFLIX, NDPI_PROTOCOL_CATEGORY_STREAMING); - return -1; } } @@ -849,7 +845,8 @@ static void ndpi_check_http_tcp(struct ndpi_detection_module_struct *ndpi_struct NDPI_EXCLUDE_PROTO(ndpi_struct, flow); http_bitmask_exclude_other(flow); return; - } + } else + ndpi_int_http_add_connection(ndpi_struct, flow, NDPI_PROTOCOL_HTTP, NDPI_PROTOCOL_CATEGORY_WEB); NDPI_LOG_DBG2(ndpi_struct, "Filename HTTP found: %d, we look for line info..\n", filename_start); -- cgit v1.2.3