aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.h
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2022-07-30 09:01:42 +0200
committerlns <matzeton@googlemail.com>2022-08-02 11:25:39 +0200
commit9cc69f88a0528470ded8a80e1956504683ae8754 (patch)
tree69b39f77a034a7de17997cc316279de2f98b1412 /example/reader_util.h
parented4f106a0d6ba2d644e95354891b4b68f927c535 (diff)
Improved nDPI JSON serialization.improved/ndpi-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 <matzeton@googlemail.com>
Diffstat (limited to 'example/reader_util.h')
-rw-r--r--example/reader_util.h4
1 files changed, 3 insertions, 1 deletions
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;