From 170849f156fe7b803eb08f91722bfaa576f3084f Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 26 Nov 2024 18:43:22 +0100 Subject: Removed old USE_LEGACY_AHO_CORASICK code --- src/include/ndpi_private.h | 4 ---- src/include/ndpi_typedefs.h | 2 -- 2 files changed, 6 deletions(-) (limited to 'src/include') diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h index a8399f65a..9dbc57324 100644 --- a/src/include/ndpi_private.h +++ b/src/include/ndpi_private.h @@ -358,11 +358,7 @@ struct ndpi_detection_module_struct { /* *** If you add a new Patricia tree, please update ptree_type above! *** */ struct { -#ifdef USE_LEGACY_AHO_CORASICK - ndpi_automa hostnames, hostnames_shadow; -#else ndpi_domain_classify *sc_hostnames, *sc_hostnames_shadow; -#endif void *ipAddresses, *ipAddresses_shadow; /* Patricia */ void *ipAddresses6, *ipAddresses6_shadow; /* Patricia IPv6*/ u_int8_t categories_loaded; diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 6d2373a76..175d61a42 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -41,8 +41,6 @@ /* Used by both nDPI core and patricia code under third-party */ #include "ndpi_patricia_typedefs.h" -// #define USE_LEGACY_AHO_CORASICK - #ifndef NDPI_CFFI_PREPROCESSING #ifndef u_char typedef unsigned char u_char; -- cgit v1.2.3