Implemented EDNS(0) support in DNS dissector

Improved DNS dissection
This commit is contained in:
Luca Deri
2022-12-29 19:38:25 +01:00
parent 560280e6f0
commit 8f91b8ba72
6 changed files with 191 additions and 56 deletions
+1 -1
View File
@@ -1381,7 +1381,7 @@ struct ndpi_flow_struct {
/* the only fields useful for nDPI and ntopng */
struct {
u_int8_t num_queries, num_answers, reply_code, is_query;
u_int16_t query_type, query_class, rsp_type;
u_int16_t query_type, query_class, rsp_type, edns0_udp_payload_size;
ndpi_ip_addr_t rsp_addr; /* The first address in a DNS response packet (A and AAAA) */
char ptr_domain_name[64 /* large enough but smaller than { } tls */];
} dns;