aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-05-13 17:49:02 +0200
committerLuca Deri <deri@ntop.org>2020-05-13 17:49:02 +0200
commit9dfd0d0071845779487b4e2e14c3599e18a74a8c (patch)
treeb10075a6774e5c4ce3ad26b75495f166af5bac3e
parent17235d234eb6a55fd0753ab4f3b6fc8f66eb7659 (diff)
Code cleanup
-rw-r--r--src/lib/protocols/http.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 56ebdfdec..de4de3aee 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -206,28 +206,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_
if(flow->http_detected && (flow->http.response_status_code != 0))
return;
-#if defined(NDPI_PROTOCOL_1KXUN) || defined(NDPI_PROTOCOL_IQIYI)
- /* PPStream */
- if(flow->l4.tcp.ppstream_stage > 0 && flow->iqiyi_counter == 0) {
- NDPI_LOG_INFO(ndpi_struct, "found PPStream\n");
- ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_PPSTREAM,
- NDPI_PROTOCOL_HTTP, NDPI_PROTOCOL_CATEGORY_STREAMING);
- } else if(flow->iqiyi_counter > 0) {
- NDPI_LOG_INFO(ndpi_struct, "found iQiyi\n");
- ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_IQIYI,
- NDPI_PROTOCOL_HTTP, NDPI_PROTOCOL_CATEGORY_STREAMING);
- }
-#endif
-
-#if defined(NDPI_PROTOCOL_1KXUN) || defined(NDPI_PROTOCOL_IQIYI)
- /* 1KXUN */
- if(flow->kxun_counter > 0) {
- NDPI_LOG_INFO(ndpi_struct, "found 1kxun\n");
- ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_1KXUN, NDPI_PROTOCOL_CATEGORY_STREAMING);
- }
-#endif
-
- if((flow->http.url == NULL)
+ if((flow->http.url == NULL)
&& (packet->http_url_name.len > 0)
&& (packet->host_line.len > 0)) {
int len = packet->http_url_name.len + packet->host_line.len + 1;