|
|
@ -42,14 +42,13 @@ impl SMBState {
|
|
|
|
for i in 0..len {
|
|
|
|
for i in 0..len {
|
|
|
|
let tx = &self.transactions[i];
|
|
|
|
let tx = &self.transactions[i];
|
|
|
|
let ver = tx.vercmd.get_version();
|
|
|
|
let ver = tx.vercmd.get_version();
|
|
|
|
let _smbcmd;
|
|
|
|
let _smbcmd = if ver == 2 {
|
|
|
|
if ver == 2 {
|
|
|
|
|
|
|
|
let (_, cmd) = tx.vercmd.get_smb2_cmd();
|
|
|
|
let (_, cmd) = tx.vercmd.get_smb2_cmd();
|
|
|
|
_smbcmd = cmd;
|
|
|
|
cmd
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
let (_, cmd) = tx.vercmd.get_smb1_cmd();
|
|
|
|
let (_, cmd) = tx.vercmd.get_smb1_cmd();
|
|
|
|
_smbcmd = cmd as u16;
|
|
|
|
cmd as u16
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
match tx.type_data {
|
|
|
|
match tx.type_data {
|
|
|
|
Some(SMBTransactionTypeData::FILE(ref d)) => {
|
|
|
|
Some(SMBTransactionTypeData::FILE(ref d)) => {
|
|
|
|