aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-05-08 18:24:07 +0200
committerLuca Deri <deri@ntop.org>2020-05-08 18:24:07 +0200
commit39ae57e6a3d93cb91def5d76fc54e89075f01867 (patch)
treea504474079d55560c51f7a83ecf4d7826732007b
parentc9b37b92f5efcfc35cf82346b0b79faed631579b (diff)
Cleaned hyperscan leftover
Added further hyperscan hooks
-rw-r--r--src/include/ndpi_typedefs.h4
-rw-r--r--src/lib/ndpi_main.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index ca1da4ff2..ef3da7cc5 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -1099,7 +1099,9 @@ struct ndpi_detection_module_struct {
u_int8_t direction_detect_disable:1, /* disable internal detection of packet direction */
_pad:7;
- void *hyperscan; /* Intel Hyperscan */
+#ifdef CUSTOM_NDPI_PROTOCOLS
+ #include "../../../nDPI-custom/custom_ndpi_typedefs.h"
+#endif
};
#endif /* NDPI_LIB_COMPILATION */
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index db5e14778..6e2c30006 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -2305,6 +2305,10 @@ void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_str) {
if(ndpi_str->custom_categories.ipAddresses_shadow != NULL)
ndpi_Destroy_Patricia((patricia_tree_t *) ndpi_str->custom_categories.ipAddresses_shadow, free_ptree_data);
+#ifdef CUSTOM_NDPI_PROTOCOLS
+#include "../../../nDPI-custom/ndpi_exit_detection_module.c"
+#endif
+
ndpi_free(ndpi_str);
}
}