From: Victor Julien Date: Thu, 18 Mar 2021 10:09:01 +0000 (+0100) Subject: nfs: support per-tx file accounting X-Git-Tag: suricata-7.0.0-beta1~1441 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d48601c258e944c1c3f9510b2707a6a2415a671;p=thirdparty%2Fsuricata.git nfs: support per-tx file accounting --- diff --git a/rust/src/nfs/nfs.rs b/rust/src/nfs/nfs.rs index 586cc85e9c..225966cde9 100644 --- a/rust/src/nfs/nfs.rs +++ b/rust/src/nfs/nfs.rs @@ -587,6 +587,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);