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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user