Fix packet counters (#1884)

We need to keep separete counters to keep tracks of packet numbers with
and without any payload.

Regression introduced in 5849863ef
This commit is contained in:
Ivan Nardi
2023-02-13 11:32:17 +01:00
committed by GitHub
parent 200d1d4cfc
commit f10178f8d2
46 changed files with 50 additions and 50 deletions
+3 -3
View File
@@ -1522,9 +1522,9 @@ struct ndpi_flow_struct {
/* Only packets with L5 data (ie no TCP SYN, pure ACKs, ...) */
u_int16_t packet_counter; // can be 0 - 65000
u_int16_t packet_direction_counter[2];
u_int16_t all_packets_counter; /* All packets even those without payload */
/* Every packets */
/* All packets even those without payload */
u_int16_t all_packets_counter;
u_int16_t packet_direction_complete_counter[2]; // can be 0 - 65000
/* NDPI_PROTOCOL_BITTORRENT */