diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-02-11 18:16:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 18:16:55 +0100 |
commit | baca06bfd2d649d5a9b224e15cb4722382347872 (patch) | |
tree | 63bb4e28fa23482be57711626e8bfa0ed021155c /example/ndpiReader.c | |
parent | 1dccaf37b075ebfb726d407b9c4d95fcf2983135 (diff) |
ndpiReader: print more DNS information (#2717)
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index c8a2148ef..bb0eb2926 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2050,6 +2050,8 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa if(flow->mining.currency[0] != '\0') fprintf(out, "[currency: %s]", flow->mining.currency); if(flow->dns.geolocation_iata_code[0] != '\0') fprintf(out, "[GeoLocation: %s]", flow->dns.geolocation_iata_code); + if(flow->dns.transaction_id != 0) fprintf(out, "[DNS Id: 0x%.4x]", flow->dns.transaction_id); + if(flow->dns.ptr_domain_name[0] != '\0') fprintf(out, "[DNS Ptr: %s]", flow->dns.ptr_domain_name); if((flow->src2dst_packets+flow->dst2src_packets) > 5) { if(flow->iat_c_to_s && flow->iat_s_to_c) { |