diff options
Diffstat (limited to 'src/lib/protocols/hots.c')
-rw-r--r-- | src/lib/protocols/hots.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/protocols/hots.c b/src/lib/protocols/hots.c index bc058b653..ac11f273b 100644 --- a/src/lib/protocols/hots.c +++ b/src/lib/protocols/hots.c @@ -36,11 +36,11 @@ static void ndpi_hots_add_connection(struct ndpi_detection_module_struct *ndpi_s void ndpi_search_hots(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { struct ndpi_packet_struct *packet = &ndpi_struct->packet; + int i, ports[4] = {1119, 1120, 3724, 6113}; NDPI_LOG_DBG(ndpi_struct, "search Heroes of the Storm\n"); - int ports[4] = {1119, 1120, 3724, 6113}; - for (int i = 0; i < 4; i++) { + for (i = 0; i < 4; i++) { if (packet->udp->dest == ntohs(ports[i]) || packet->udp->source == ntohs(ports[i])) { if (packet->payload_packet_len >= 20 && packet->payload_packet_len <= 122) { if (packet->payload[14] == 0x40 && packet->payload[15] == 0x00) { @@ -72,4 +72,4 @@ void init_hots_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK); *id += 1; -}
\ No newline at end of file +} |