DNS: extract geolocation information, if available (#2065)
The option NSID (RFC5001) is used by Google DNS to report the airport code of the metro where the DNS query is handled. This option is quite rare, but the added overhead in DNS code is pretty much zero for "normal" DNS traffic
This commit is contained in:
@@ -1486,6 +1486,7 @@ struct ndpi_flow_struct {
|
||||
u_int8_t num_queries, num_answers, reply_code, is_query;
|
||||
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 geolocation_iata_code[4];
|
||||
char ptr_domain_name[64 /* large enough but smaller than { } tls */];
|
||||
} dns;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user