reader_util: stop processing a flow (#1666)

We should stop processing a flow if all protocols have been excluded or
if we have already processed too many packets.
This commit is contained in:
Ivan Nardi
2022-07-20 14:48:09 +02:00
committed by GitHub
parent b472a49271
commit c72660d7d3
14 changed files with 15 additions and 13 deletions
+1
View File
@@ -1562,6 +1562,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
iph ? (uint8_t *)iph : (uint8_t *)iph6,
ipsize, time_ms);
enough_packets |= ndpi_flow->fail_with_unknown;
if(enough_packets || (flow->detected_protocol.app_protocol != NDPI_PROTOCOL_UNKNOWN)) {
if((!enough_packets)
&& ndpi_extra_dissection_possible(workflow->ndpi_struct, ndpi_flow))