aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/dns.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2025-01-30 21:48:53 +0100
committerLuca Deri <deri@ntop.org>2025-01-30 21:48:53 +0100
commitfcff6d5abb168c3318c019fc140ce1e809b40d2b (patch)
tree8109acfcd9e55cf6289c5b6a16f924c5be94e452 /src/lib/protocols/dns.c
parentc669bb31402ffc52aba774163d8a7e25eba00fc5 (diff)
Exported DNS transactionId
Diffstat (limited to 'src/lib/protocols/dns.c')
-rw-r--r--src/lib/protocols/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/dns.c b/src/lib/protocols/dns.c
index bd55f19e7..d78a8e808 100644
--- a/src/lib/protocols/dns.c
+++ b/src/lib/protocols/dns.c
@@ -283,7 +283,7 @@ static int search_valid_dns(struct ndpi_detection_module_struct *ndpi_struct,
memcpy(dns_header, (struct ndpi_dns_packet_header*)&packet->payload[x],
sizeof(struct ndpi_dns_packet_header));
- dns_header->tr_id = ntohs(dns_header->tr_id);
+ flow->protos.dns.transaction_id = dns_header->tr_id = ntohs(dns_header->tr_id);
dns_header->flags = ntohs(dns_header->flags);
dns_header->num_queries = ntohs(dns_header->num_queries);
dns_header->num_answers = ntohs(dns_header->num_answers);