aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-05-17 20:55:06 +0200
committerLuca Deri <deri@ntop.org>2021-05-17 20:55:06 +0200
commit43a8576efbf1de97fd5e5c266f55a2b8b684ee25 (patch)
tree80bd987b02c592551476f55582826bff93f93512 /example/reader_util.c
parent1ec621c85b9411cc611652fd57a892cfef478af3 (diff)
Reworked human readeable string search in flows
Removed fragment manager code
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index caa49fe07..a1c11532e 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1477,10 +1477,10 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
|| (flow->detected_protocol.master_protocol == NDPI_PROTOCOL_SSH))
) {
if((flow->src2dst_packets+flow->dst2src_packets) < 10 /* MIN_NUM_ENCRYPT_SKIP_PACKETS */)
- skip = 1;
+ skip = 1; /* Skip initial negotiation packets */
}
- if(!skip) {
+ if((!skip) && ((flow->src2dst_packets+flow->dst2src_packets) < 100)) {
if(ndpi_has_human_readeable_string(workflow->ndpi_struct, (char*)packet, header->caplen,
human_readeable_string_len,
flow->human_readeable_string_buffer,