From 2acffb41638233f6576663b77bfdd7574014fd1d Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 27 Aug 2019 12:56:15 +0200 Subject: Initial work towards traffic classification --- src/include/ndpi_typedefs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/include/ndpi_typedefs.h') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index bdb5a76e1..2aacf847a 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1363,4 +1363,16 @@ typedef struct { u_int16_t str_len; } ndpi_string; +/* **************************************** */ + +struct ndpi_analyze_struct { + u_int32_t *values; + u_int32_t sum_total, num_data_entries, next_value_insert_index; + u_int16_t num_values_array_len /* lenght of the values array */; +}; + +#define DEFAULT_SERIES_LEN 64 +#define MAX_SERIES_LEN 512 +#define MIN_SERIES_LEN 8 + #endif /* __NDPI_TYPEDEFS_H__ */ -- cgit v1.2.3