From: Victor Julien Date: Thu, 18 Mar 2021 10:09:01 +0000 (+0100) Subject: nfs: support per-tx file accounting X-Git-Tag: suricata-6.0.4~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9ff5e2c6e1d78ba71d0decbe849dcac0447dec8;p=thirdparty%2Fsuricata.git nfs: support per-tx file accounting (cherry picked from commit 1d48601c258e944c1c3f9510b2707a6a2415a671) --- diff --git a/rust/src/nfs/nfs.rs b/rust/src/nfs/nfs.rs index 4ccd8c73d7..14290cd290 100644 --- a/rust/src/nfs/nfs.rs +++ b/rust/src/nfs/nfs.rs @@ -623,6 +623,7 @@ impl NFSState { if let Some(NFSTransactionTypeData::FILE(ref mut d)) = tx.type_data { d.file_tracker.tx_id = tx.id - 1; } + tx.tx_data.init_files_opened(); SCLogDebug!("new_file_tx: TX FILE created: ID {} NAME {}", tx.id, String::from_utf8_lossy(file_name)); self.transactions.push(tx);