Merge remote-tracking branch 'origin/topic/jsiwek/bit-788'

* origin/topic/jsiwek/bit-788:
  BIT-788: use DNS QR field to better identify flow direction.

BIT-788 #merged
This commit is contained in:
Robin Sommer 2015-03-23 10:08:02 -07:00
commit 9999bce142
9 changed files with 38 additions and 9 deletions

View file

@ -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;