diff options
author | Ivan Nardi <nardi.ivan@gmail.com> | 2025-03-04 20:19:29 +0100 |
---|---|---|
committer | Ivan Nardi <nardi.ivan@gmail.com> | 2025-03-05 20:51:06 +0100 |
commit | 34dcf181281fdb2783076199d6e97df6a487173d (patch) | |
tree | b78087d59fbc87a99b0507647f3ce6037d63153f /src/include | |
parent | f56831336334dddcff00eaf2132e5e0f226f0e32 (diff) |
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)
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_typedefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |