aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_typedefs.h
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2019-08-27 12:56:15 +0200
committerLuca <deri@ntop.org>2019-08-27 12:56:15 +0200
commit2acffb41638233f6576663b77bfdd7574014fd1d (patch)
tree797ee5b4e550a15f4d7d4299c9dccf929aec1cf6 /src/include/ndpi_typedefs.h
parentb837f3753d247b0653b22383eabe8525f684ab29 (diff)
Initial work towards traffic classification
Diffstat (limited to 'src/include/ndpi_typedefs.h')
-rw-r--r--src/include/ndpi_typedefs.h12
1 files changed, 12 insertions, 0 deletions
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__ */