From: Eric Leblond Date: Mon, 23 Jan 2023 19:04:00 +0000 (+0100) Subject: mqtt: add TX orientation X-Git-Tag: suricata-7.0.0-rc2~467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=322f3896ba2989e3d81ce7737ef77dae742beb37;p=thirdparty%2Fsuricata.git mqtt: add TX orientation Set no inspection in the opposite side of the transaction. Ticket: #5799 --- diff --git a/rust/src/mqtt/mqtt.rs b/rust/src/mqtt/mqtt.rs index d771d86ef4..f81cfc2604 100644 --- a/rust/src/mqtt/mqtt.rs +++ b/rust/src/mqtt/mqtt.rs @@ -180,8 +180,10 @@ impl MQTTState { tx.tx_id = self.tx_id; if toclient { tx.toclient = true; + tx.tx_data.set_inspect_direction(Direction::ToClient); } else { tx.toserver = true; + tx.tx_data.set_inspect_direction(Direction::ToServer); } if self.transactions.len() > unsafe { MQTT_MAX_TX } { let mut index = self.tx_index_completed;