diff options
author | Alfredo Cardigliano <alfredo.cardigliano@gmail.com> | 2020-09-04 17:23:04 +0200 |
---|---|---|
committer | Alfredo Cardigliano <alfredo.cardigliano@gmail.com> | 2020-09-04 17:23:04 +0200 |
commit | 8ed6409b350a8838b7905aa48b47e430ed48f959 (patch) | |
tree | 42b009d3ba8d874a604f75e367e6aac694101733 /src/include | |
parent | 3f49062db9f8460c3b1e76cf9076d71a1b5090eb (diff) |
Add start_of_block/end_of_block support to TLV
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_typedefs.h | 9 |
1 files changed, 6 insertions, 3 deletions
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 |