From: Eric Leblond Date: Mon, 23 Jan 2023 19:03:12 +0000 (+0100) Subject: dns: add TX orientation X-Git-Tag: suricata-7.0.0-rc2~469 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8926d8246518363188c2ecbfb46fa7d9576f33e6;p=thirdparty%2Fsuricata.git dns: add TX orientation Set no inspection in the opposite side of the transaction. Ticket: #5799 --- diff --git a/rust/src/dns/dns.rs b/rust/src/dns/dns.rs index 5ed5c43994..9bc4f6681b 100644 --- a/rust/src/dns/dns.rs +++ b/rust/src/dns/dns.rs @@ -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 {