]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mqtt: add TX orientation
authorEric Leblond <el@stamus-networks.com>
Mon, 23 Jan 2023 19:04:00 +0000 (20:04 +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/mqtt/mqtt.rs

index d771d86ef484db829fd1ec30aac127b64b565f14..f81cfc2604ba7a235e900a0c213d05da339654a2 100644 (file)
@@ -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;