From 709e460c896861f413baa5189d46b15ba06c2673 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 3 Dec 2023 09:03:56 +0100 Subject: Add realtime protocol output to `ndpiReader`. * support for using a new flow callback invoked before the flow memory is free'd * minor fixes * Win32 gmtime fix Signed-off-by: Toni Uhlig --- example/reader_util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example/reader_util.c') diff --git a/example/reader_util.c b/example/reader_util.c index 64b00b18f..480c3f180 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1423,6 +1423,9 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl flow->flow_payload = flow->ndpi_flow->flow_payload, flow->flow_payload_len = flow->ndpi_flow->flow_payload_len; flow->ndpi_flow->flow_payload = NULL; /* We'll free the memory */ + if(workflow->flow_callback != NULL) + workflow->flow_callback(workflow, flow, workflow->flow_callback_userdata); + ndpi_free_flow_info_half(flow); } } -- cgit v1.2.3