aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_typedefs.h
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2023-09-05 17:03:20 +0200
committerLuca Deri <deri@ntop.org>2023-09-05 17:03:20 +0200
commit978df906b38c26a359b2d91089e70e133cc7502e (patch)
treeac44a768d718f0a3265b3d11c01ab9305adc34dd /src/include/ndpi_typedefs.h
parent0080d0d092e245aa865bf757e682496e97257d25 (diff)
Improved classification further reducing memory used
Diffstat (limited to 'src/include/ndpi_typedefs.h')
-rw-r--r--src/include/ndpi_typedefs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index 553440a2b..53535a441 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -1199,8 +1199,13 @@ typedef struct {
bool is_compressed;
} ndpi_binary_bitmap;
+#define MAX_NUM_NDPI_DOMAIN_CLASSIFICATIONS 16
+
typedef struct {
- ndpi_binary_bitmap *bitmap;
+ struct {
+ u_int16_t class_id;
+ ndpi_bitmap64 *domains;
+ } classes[MAX_NUM_NDPI_DOMAIN_CLASSIFICATIONS];
} ndpi_domain_classify;
#ifdef NDPI_LIB_COMPILATION