Improved DGA detection with trigrams. Disadvantage: slower startup time

Reworked Tor dissector embedded in TLS (fixes #1141)
Removed false positive on HTTP User-Agent
This commit is contained in:
Luca Deri
2021-03-03 00:41:07 +01:00
parent 4c00ff89df
commit 56bfb439f8
29 changed files with 266 additions and 265 deletions
+9
View File
@@ -2450,3 +2450,12 @@ int ndpi_hash_add_entry(ndpi_str_hash *h, char *key, u_int8_t key_len, u_int8_t
return(0);
}
/* ******************************************************************** */
void ndpi_set_risk(struct ndpi_flow_struct *flow, ndpi_risk_enum r) {
u_int32_t v = 1 << r;
// NDPI_SET_BIT(flow->risk, (u_int32_t)r);
flow->risk |= v;
}