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 --- src/include/ndpi_utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/ndpi_utils.h') diff --git a/src/include/ndpi_utils.h b/src/include/ndpi_utils.h index 6469d30d9..de68b0c11 100644 --- a/src/include/ndpi_utils.h +++ b/src/include/ndpi_utils.h @@ -57,6 +57,8 @@ extern u_int8_t ndpi_ends_with(char *str, char *ends); #ifndef NDPI_CFFI_PREPROCESSING int ndpi_vsnprintf(char * str, size_t size, char const * format, va_list va_args); int ndpi_snprintf(char * str, size_t size, char const * format, ...); +struct tm *ndpi_gmtime_r(const time_t *restrict timep, + struct tm *restrict result); #endif #endif -- cgit v1.2.3