Added NDPI_MINOR_ISSUES risk used for storing generic/relevant information about issues found on traffic.

This commit is contained in:
Luca Deri
2022-12-31 16:55:55 +01:00
parent 1735931f67
commit 2c551afbd7
12 changed files with 22 additions and 11 deletions
+2 -2
View File
@@ -412,8 +412,8 @@ static int search_valid_dns(struct ndpi_detection_module_struct *ndpi_struct,
rsp_ttl = ntohl(*((u_int32_t*)&packet->payload[x+2]));
if(rsp_ttl == 0)
ndpi_set_risk(ndpi_struct, flow, NDPI_DNS_SUSPICIOUS_TRAFFIC, "DNS Record with zero TTL");
ndpi_set_risk(ndpi_struct, flow, NDPI_MINOR_ISSUES, "DNS Record with zero TTL");
#ifdef DNS_DEBUG
printf("[DNS] TTL = %u\n", rsp_ttl);
printf("[DNS] [response] response_type=%d\n", rsp_type);