diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-06-30 21:23:10 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-06-30 21:23:10 +0200 |
commit | 4ca38c90cfe529e9fdd6f843680820074a869149 (patch) | |
tree | 15431349e0daf8502ee771fad1083bd713753ff9 /main.c | |
parent | aa77fd75f90a2d0decb4b98ba7fc720c28b3d29c (diff) |
do not guess protocol if detection successful and completed
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -950,7 +950,9 @@ static void ndpi_process_packet(uint8_t * const args, if (flow_to_process->ndpi_flow->num_processed_pkts == 0xFF) { return; - } else if (flow_to_process->ndpi_flow->num_processed_pkts == 0xFE) { + } else if (flow_to_process->detection_completed == 0 && + flow_to_process->ndpi_flow->num_processed_pkts == 0xFE) + { /* last chance to guess something, better then nothing */ uint8_t protocol_was_guessed = 0; flow_to_process->guessed_protocol = |