mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
BIT-788: use DNS QR field to better identify flow direction.
This commit is contained in:
parent
3956df4407
commit
8efaae96cd
9 changed files with 38 additions and 9 deletions
|
@ -305,6 +305,9 @@ hook DNS::do_reply(c: connection, msg: dns_msg, ans: dns_answer, reply: string)
|
|||
|
||||
if ( ans$answer_type == DNS_ANS )
|
||||
{
|
||||
if ( ! c$dns?$query )
|
||||
c$dns$query = ans$query;
|
||||
|
||||
c$dns$AA = msg$AA;
|
||||
c$dns$RA = msg$RA;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue