diff options
author | Luca Deri <deri@ntop.org> | 2023-04-24 08:49:11 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2023-04-24 08:49:11 +0200 |
commit | c4ba981370ff437f27a5da5048e3211beb6c7a5a (patch) | |
tree | 1b0728efeee29c2bf7dd0a7a8b09516b5e4cd8e3 | |
parent | d3e67faf20960f735ce8c5ee834dfe24829fac88 (diff) |
Compilation fix on RH7
-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 +} |