config: remove ndpi_set_detection_preferences()

This commit is contained in:
Nardi Ivan
2024-01-18 10:21:24 +01:00
committed by Ivan Nardi
parent 311d8b6dae
commit 1289951b32
8 changed files with 32 additions and 53 deletions
-3
View File
@@ -1035,9 +1035,6 @@ extern "C" {
int ndpi_get_custom_category_match(struct ndpi_detection_module_struct *ndpi_struct,
char *name_or_ip, u_int name_len,
ndpi_protocol_category_t *id);
int ndpi_set_detection_preferences(struct ndpi_detection_module_struct *ndpi_mod,
ndpi_detection_preference pref,
int value);
u_int16_t ndpi_map_user_proto_id_to_ndpi_id(struct ndpi_detection_module_struct *ndpi_str,
u_int16_t user_proto_id);
+2
View File
@@ -148,6 +148,7 @@ typedef struct {
struct ndpi_detection_module_config_struct {
int max_packets_to_process;
int direction_detect_enabled;
char filename_config[CFG_MAX_LEN];
@@ -172,6 +173,7 @@ struct ndpi_detection_module_config_struct {
/* Protocols */
int tls_app_blocks_tracking_enabled;
int tls_sha1_fingerprint_enabled;
int smtp_opportunistic_tls_enabled;
-5
View File
@@ -1071,11 +1071,6 @@ typedef enum {
NDPI_PROTOCOL_ANY_CATEGORY /* Used to handle wildcards */
} ndpi_protocol_category_t;
typedef enum {
ndpi_pref_direction_detect_disable = 0,
ndpi_pref_enable_tls_block_dissection, /* nDPI considers only those blocks past the certificate exchange */
} ndpi_detection_preference;
/* ntop extensions */
typedef struct ndpi_proto_defaults {
char *protoName;