Serialization fix
This commit is contained in:
@@ -1327,7 +1327,17 @@ typedef enum {
|
|||||||
#define NDPI_SERIALIZER_STATUS_ARRAY (1 << 1)
|
#define NDPI_SERIALIZER_STATUS_ARRAY (1 << 1)
|
||||||
#define NDPI_SERIALIZER_STATUS_EOR (1 << 2)
|
#define NDPI_SERIALIZER_STATUS_EOR (1 << 2)
|
||||||
|
|
||||||
typedef void* ndpi_serializer;
|
typedef struct {
|
||||||
|
u_int32_t buffer_size, size_used;
|
||||||
|
ndpi_serialization_format fmt;
|
||||||
|
u_int32_t status;
|
||||||
|
u_int8_t *buffer;
|
||||||
|
char csv_separator[2];
|
||||||
|
} ndpi_private_serializer;
|
||||||
|
|
||||||
|
#define ndpi_private_deserializer ndpi_private_serializer
|
||||||
|
|
||||||
|
typedef struct { char c[sizeof(ndpi_private_serializer)]; } ndpi_serializer;
|
||||||
|
|
||||||
#define ndpi_deserializer ndpi_serializer
|
#define ndpi_deserializer ndpi_serializer
|
||||||
|
|
||||||
|
|||||||
@@ -41,16 +41,6 @@
|
|||||||
#include <sys/endian.h>
|
#include <sys/endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
u_int32_t buffer_size, size_used;
|
|
||||||
ndpi_serialization_format fmt;
|
|
||||||
u_int32_t status;
|
|
||||||
u_int8_t *buffer;
|
|
||||||
char csv_separator[2];
|
|
||||||
} ndpi_private_serializer;
|
|
||||||
|
|
||||||
#define ndpi_private_deserializer ndpi_private_serializer
|
|
||||||
|
|
||||||
/* ********************************** */
|
/* ********************************** */
|
||||||
|
|
||||||
static u_int64_t ndpi_htonll(u_int64_t v) {
|
static u_int64_t ndpi_htonll(u_int64_t v) {
|
||||||
|
|||||||
Reference in New Issue
Block a user