|
|
|
@ -15,10 +15,16 @@
|
|
|
|
|
* 02110-1301, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
use log::*;
|
|
|
|
|
use smb::smb::*;
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "debug")]
|
|
|
|
|
use log::*;
|
|
|
|
|
|
|
|
|
|
impl SMBState {
|
|
|
|
|
#[cfg(not(feature = "debug"))]
|
|
|
|
|
pub fn _debug_tx_stats(&self) { }
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "debug")]
|
|
|
|
|
pub fn _debug_tx_stats(&self) {
|
|
|
|
|
if self.transactions.len() > 1 {
|
|
|
|
|
let txf = self.transactions.first().unwrap();
|
|
|
|
@ -31,6 +37,9 @@ impl SMBState {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(not(feature = "debug"))]
|
|
|
|
|
pub fn _dump_txs(&self) { }
|
|
|
|
|
#[cfg(feature = "debug")]
|
|
|
|
|
pub fn _dump_txs(&self) {
|
|
|
|
|
let len = self.transactions.len();
|
|
|
|
|
for i in 0..len {
|
|
|
|
@ -59,6 +68,10 @@ impl SMBState {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(not(feature = "debug"))]
|
|
|
|
|
pub fn _debug_state_stats(&self) { }
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "debug")]
|
|
|
|
|
pub fn _debug_state_stats(&self) {
|
|
|
|
|
SCLogNotice!("ssn2vec_map {} guid2name_map {} ssn2vecoffset_map {} ssn2tree_map {} ssn2maxsize_map {} ssnguid2vec_map {} tcp_buffer_ts {} tcp_buffer_tc {} file_ts_guid {} file_tc_guid {} transactions {}", self.ssn2vec_map.len(), self.guid2name_map.len(), self.ssn2vecoffset_map.len(), self.ssn2tree_map.len(), self.ssn2maxsize_map.len(), self.ssnguid2vec_map.len(), self.tcp_buffer_ts.len(), self.tcp_buffer_tc.len(), self.file_ts_guid.len(), self.file_tc_guid.len(), self.transactions.len());
|
|
|
|
|
}
|
|
|
|
|