Add serialization of values list in TLV

This commit is contained in:
Alfredo Cardigliano
2020-10-15 10:45:43 +02:00
parent d5d2a7e3f3
commit 031cd04b7c
3 changed files with 58 additions and 18 deletions
+10
View File
@@ -1217,6 +1217,16 @@ extern "C" {
*/
int ndpi_serialize_end_of_record(ndpi_serializer *serializer);
/**
* Serialize the start of a list with an unterminated string key, where the next serialized items
* will be added (note: keys for the new items are ignored)
* @param serializer The serializer handle
* @param key The field name or ID
* @param klen The key length
* @return 0 on success, a negative number otherwise
*/
int ndpi_serialize_start_of_list_binary(ndpi_serializer *_serializer, const char *key, u_int16_t klen);
/**
* Serialize the start of a list, where the next serialized items will be added (note: keys for
* the new items are ignored)
+3 -1
View File
@@ -1446,7 +1446,9 @@ typedef enum {
ndpi_serialization_float,
ndpi_serialization_string,
ndpi_serialization_start_of_block,
ndpi_serialization_end_of_block
ndpi_serialization_end_of_block,
ndpi_serialization_start_of_list,
ndpi_serialization_end_of_list
} ndpi_serialization_type;
#define NDPI_SERIALIZER_DEFAULT_HEADER_SIZE 1024