Removed now obsolete NDPI_DETECTION_SUPPORT_IPV6: code is more readeable now

This commit is contained in:
Luca Deri
2021-02-10 19:09:11 +01:00
parent 76ac551ed3
commit ea0309d21b
10 changed files with 19 additions and 102 deletions
-2
View File
@@ -290,9 +290,7 @@ static int search_valid_dns(struct ndpi_detection_module_struct *ndpi_struct,
}
if((((rsp_type == 0x1) && (data_len == 4)) /* A */
#ifdef NDPI_DETECTION_SUPPORT_IPV6
|| ((rsp_type == 0x1c) && (data_len == 16)) /* AAAA */
#endif
)) {
memcpy(&flow->protos.dns.rsp_addr, flow->packet.payload + x, data_len);
}