Cleaned hyperscan leftover

Added further hyperscan hooks
This commit is contained in:
Luca Deri
2020-05-08 18:24:07 +02:00
parent c9b37b92f5
commit 39ae57e6a3
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -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 */
+4
View File
@@ -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);
}
}