]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: add TX orientation
authorEric Leblond <el@stamus-networks.com>
Mon, 23 Jan 2023 19:03:12 +0000 (20:03 +0100)
committerVictor Julien <vjulien@oisf.net>
Fri, 31 Mar 2023 17:30:07 +0000 (19:30 +0200)
Set no inspection in the opposite side of the transaction.

Ticket: #5799

rust/src/dns/dns.rs

index 5ed5c43994bd1e17a8a4de31e98b179324b7e7b7..9bc4f6681b751a592b05999d3fb01f9c8f100621 100644 (file)
@@ -412,6 +412,7 @@ impl DNSState {
 
                 let mut tx = self.new_tx();
                 tx.request = Some(request);
+                tx.tx_data.set_inspect_direction(Direction::ToServer);
                 self.transactions.push_back(tx);
 
                 if z_flag {
@@ -490,6 +491,7 @@ impl DNSState {
                     }
                 }
                 tx.response = Some(response);
+                tx.tx_data.set_inspect_direction(Direction::ToClient);
                 self.transactions.push_back(tx);
 
                 if z_flag {