From 8ed6409b350a8838b7905aa48b47e430ed48f959 Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Fri, 4 Sep 2020 17:23:04 +0200 Subject: Add start_of_block/end_of_block support to TLV --- src/include/ndpi_typedefs.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 31a718bde..a1d843c83 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1439,8 +1439,9 @@ typedef enum { ndpi_serialization_format_csv } ndpi_serialization_format; -/* Note: key supports string and uint32 (compressed to uint8/uint16) only, - * this is also enforced by the API */ +/* Note: + * - up to 16 types (TLV encoding: "4 bit key type" << 4 | "4 bit value type") + * - key supports string and uint32 (compressed to uint8/uint16) only, this is also enforced by the API */ typedef enum { ndpi_serialization_unknown = 0, ndpi_serialization_end_of_record, @@ -1453,7 +1454,9 @@ typedef enum { ndpi_serialization_int32, ndpi_serialization_int64, ndpi_serialization_float, - ndpi_serialization_string + ndpi_serialization_string, + ndpi_serialization_start_of_block, + ndpi_serialization_end_of_block } ndpi_serialization_type; #define NDPI_SERIALIZER_DEFAULT_HEADER_SIZE 1024 -- cgit v1.2.3