From 9cc69f88a0528470ded8a80e1956504683ae8754 Mon Sep 17 00:00:00 2001 From: lns Date: Sat, 30 Jul 2022 09:01:42 +0200 Subject: Improved nDPI JSON serialization. * fixed autoconf CFLAGS/LDFLAGS MSAN issue which could lead to build errors * introduced portable version of gmtime_r aka ndpi_gmtime_r * do as most as possible of the serialization work in ndpi_utils.c * use flow2json in ndpiReader Signed-off-by: lns --- example/reader_util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'example/reader_util.h') diff --git a/example/reader_util.h b/example/reader_util.h index e61167837..dab9ae57d 100644 --- a/example/reader_util.h +++ b/example/reader_util.h @@ -236,6 +236,8 @@ typedef struct ndpi_flow_info { } softether; }; + ndpi_serializer ndpi_flow_serializer; + char flow_extra_info[16]; char host_server_name[80]; /* Hostname/SNI */ char *bittorent_hash; @@ -348,7 +350,7 @@ typedef struct ndpi_workflow { u_int32_t num_allocated_flows; /* CSV,TLV,JSON serialization interface */ - ndpi_serializer ndpi_serializer; + ndpi_serialization_format ndpi_serialization_format; } ndpi_workflow_t; -- cgit v1.2.3