From 34dcf181281fdb2783076199d6e97df6a487173d Mon Sep 17 00:00:00 2001 From: Ivan Nardi Date: Tue, 4 Mar 2025 20:19:29 +0100 Subject: Add a new internal function `internal_giveup()` This function is always called once for every flow, as last code processing the flow itself. As a first usage example, check here if the flow is unidirectional (instead of checking it at every packets) --- src/include/ndpi_typedefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index b3c4486be..8ce77bf54 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1316,7 +1316,7 @@ struct ndpi_flow_struct { u_int16_t guessed_header_category; u_int8_t l4_proto, protocol_id_already_guessed:1, fail_with_unknown:1, init_finished:1, client_packet_direction:1, packet_direction:1, is_ipv6:1, first_pkt_fully_encrypted:1, skip_entropy_check: 1; - u_int8_t monitoring:1, _pad:7; + u_int8_t monitoring:1, already_gaveup:1, _pad:6; u_int16_t num_dissector_calls; ndpi_confidence_t confidence; /* ndpi_confidence_t */ -- cgit v1.2.3