config: move cfg of aggressiviness and opportunistic TLS to the new API

This commit is contained in:
Nardi Ivan
2024-01-18 10:21:24 +01:00
committed by Ivan Nardi
parent 4cbe2674ab
commit 311d8b6dae
14 changed files with 73 additions and 186 deletions
-10
View File
@@ -1074,16 +1074,6 @@ extern "C" {
lru_cache_type cache_type,
struct ndpi_lru_cache_stats *stats);
int ndpi_set_opportunistic_tls(struct ndpi_detection_module_struct *ndpi_struct,
u_int16_t proto, int value);
int ndpi_get_opportunistic_tls(struct ndpi_detection_module_struct *ndpi_struct,
u_int16_t proto);
int ndpi_set_protocol_aggressiveness(struct ndpi_detection_module_struct *ndpi_struct,
u_int16_t proto, u_int32_t value);
u_int32_t ndpi_get_protocol_aggressiveness(struct ndpi_detection_module_struct *ndpi_struct,
u_int16_t proto);
/**
* Find a protocol id associated with a string automata
*
+12 -8
View File
@@ -174,6 +174,18 @@ struct ndpi_detection_module_config_struct {
int tls_sha1_fingerprint_enabled;
int smtp_opportunistic_tls_enabled;
int imap_opportunistic_tls_enabled;
int pop_opportunistic_tls_enabled;
int ftp_opportunistic_tls_enabled;
int stun_opportunistic_tls_enabled;
int ookla_aggressiveness;
NDPI_PROTOCOL_BITMASK ip_list_bitmask;
int flow_risk_lists_enabled;
@@ -294,14 +306,6 @@ struct ndpi_detection_module_struct {
/* *** If you add a new LRU cache, please update lru_cache_type above! *** */
int opportunistic_tls_smtp_enabled;
int opportunistic_tls_imap_enabled;
int opportunistic_tls_pop_enabled;
int opportunistic_tls_ftp_enabled;
int opportunistic_tls_stun_enabled;
u_int32_t aggressiveness_ookla;
int tcp_ack_paylod_heuristic;
int fully_encrypted_based_on_first_pkt_heuristic;