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:
@@ -294,6 +294,10 @@ typedef struct ndpi_flow_info {
|
||||
char *username, *password;
|
||||
} telnet;
|
||||
|
||||
struct {
|
||||
char geolocation_iata_code[4];
|
||||
} dns;
|
||||
|
||||
ndpi_multimedia_flow_type multimedia_flow_type;
|
||||
|
||||
void *src_id, *dst_id;
|
||||
|
||||
Reference in New Issue
Block a user