Keep track of how many dissectors calls we made for each flow (#1657)

This commit is contained in:
Ivan Nardi
2022-07-11 09:47:47 +02:00
committed by GitHub
parent df599e5eff
commit b4cb14ec19
357 changed files with 382 additions and 7 deletions
+2
View File
@@ -203,6 +203,7 @@ typedef struct ndpi_flow_info {
// result only, not used for flow identification
ndpi_protocol detected_protocol;
ndpi_confidence_t confidence;
u_int16_t num_dissector_calls;
// Flow data analysis
pkt_timeval src2dst_last_pkt_time, dst2src_last_pkt_time, flow_last_pkt_time;
@@ -296,6 +297,7 @@ typedef struct ndpi_stats {
u_int16_t max_packet_len;
u_int64_t dpi_packet_count[3];
u_int64_t flow_confidence[NDPI_CONFIDENCE_MAX];
u_int64_t num_dissector_calls;
} ndpi_stats_t;