aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-02-11 18:16:55 +0100
committerGitHub <noreply@github.com>2025-02-11 18:16:55 +0100
commitbaca06bfd2d649d5a9b224e15cb4722382347872 (patch)
tree63bb4e28fa23482be57711626e8bfa0ed021155c /example/reader_util.c
parent1dccaf37b075ebfb726d407b9c4d95fcf2983135 (diff)
ndpiReader: print more DNS information (#2717)
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c5
1 files changed, 5 insertions, 0 deletions
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;