Update world_of_warcraft.c

Commented the first part of the dissector, as it steals traffic from other Battle.net based protocols.
This commit is contained in:
Matteo Bracci
2015-07-17 18:43:32 +02:00
parent d215d6d861
commit 5165102f81
+2
View File
@@ -61,6 +61,7 @@ void ndpi_search_worldofwarcraft(struct ndpi_detection_module_struct
NDPI_LOG(NDPI_PROTOCOL_WORLDOFWARCRAFT, ndpi_struct, NDPI_LOG_DEBUG, "Search World of Warcraft.\n"); NDPI_LOG(NDPI_PROTOCOL_WORLDOFWARCRAFT, ndpi_struct, NDPI_LOG_DEBUG, "Search World of Warcraft.\n");
if (packet->tcp != NULL) { if (packet->tcp != NULL) {
/*
if ((packet->payload_packet_len > NDPI_STATICSTRING_LEN("POST /") && if ((packet->payload_packet_len > NDPI_STATICSTRING_LEN("POST /") &&
memcmp(packet->payload, "POST /", NDPI_STATICSTRING_LEN("POST /")) == 0) || memcmp(packet->payload, "POST /", NDPI_STATICSTRING_LEN("POST /")) == 0) ||
(packet->payload_packet_len > NDPI_STATICSTRING_LEN("GET /") && (packet->payload_packet_len > NDPI_STATICSTRING_LEN("GET /") &&
@@ -76,6 +77,7 @@ void ndpi_search_worldofwarcraft(struct ndpi_detection_module_struct
return; return;
} }
} }
*/
if (packet->payload_packet_len > NDPI_STATICSTRING_LEN("GET /") if (packet->payload_packet_len > NDPI_STATICSTRING_LEN("GET /")
&& memcmp(packet->payload, "GET /", NDPI_STATICSTRING_LEN("GET /")) == 0) { && memcmp(packet->payload, "GET /", NDPI_STATICSTRING_LEN("GET /")) == 0) {
ndpi_parse_packet_line_info(ndpi_struct, flow); ndpi_parse_packet_line_info(ndpi_struct, flow);