diff options
author | lns <matzeton@googlemail.com> | 2022-07-30 09:01:42 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2022-08-02 11:25:39 +0200 |
commit | 9cc69f88a0528470ded8a80e1956504683ae8754 (patch) | |
tree | 69b39f77a034a7de17997cc316279de2f98b1412 /src/include/ndpi_utils.h | |
parent | ed4f106a0d6ba2d644e95354891b4b68f927c535 (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 'src/include/ndpi_utils.h')
-rw-r--r-- | src/include/ndpi_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |