From baca06bfd2d649d5a9b224e15cb4722382347872 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Tue, 11 Feb 2025 18:16:55 +0100 Subject: ndpiReader: print more DNS information (#2717) --- example/reader_util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'example/reader_util.c') diff --git a/example/reader_util.c b/example/reader_util.c index 9c2622ca0..67d31d36a 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1418,6 +1418,11 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl if(flow->ndpi_flow->protos.dns.geolocation_iata_code[0] != '\0') strcpy(flow->dns.geolocation_iata_code, flow->ndpi_flow->protos.dns.geolocation_iata_code); + if(flow->ndpi_flow->protos.dns.ptr_domain_name[0] != '\0') + strcpy(flow->dns.ptr_domain_name, flow->ndpi_flow->protos.dns.ptr_domain_name); + + flow->dns.transaction_id = flow->ndpi_flow->protos.dns.transaction_id; + #if 0 if(0) { u_int8_t i; -- cgit v1.2.3