pub fn new_generic_tx(&mut self, smb_ver: u8, smb_cmd: u16, key: SMBCommonHdr)
        -> (&mut SMBTransaction)
    {
        let mut tx = self.new_tx();
        if smb_ver == 1 && smb_cmd <= 255 {
            tx.vercmd.set_smb1_cmd(smb_cmd as u8);
        } else if smb_ver == 2 {
            tx.vercmd.set_smb2_cmd(smb_cmd);
        }

        tx.type_data = None;
        tx.request_done = true;
        tx.response_done = self.tc_trunc; // no response expected if tc is truncated
        tx.hdr = key;

        debug!("SMB: TX GENERIC created: ID {} tx list {} {:?}",
                tx.id, self.transactions.len(), &tx);
        self.transactions.push(tx);
        let tx_ref = self.transactions.last_mut();
        return tx_ref.unwrap();
    }
/* generic TX has no type_data and is only used to
     * track a single cmd request/reply pair. */
generic TX has no type_data and is only used to
track a single cmd request/reply pair.
generic TX has no type_data and is only used to track a single cmd request / reply pair .
pub fn new_generic_tx(&mut self, smb_ver: u8, smb_cmd: u16, key: SMBCommonHdr)
        -> (&mut SMBTransaction)
    {
        let mut tx = self.new_tx();
        if smb_ver == 1 && smb_cmd <= 255 {
            tx.vercmd.set_smb1_cmd(smb_cmd as u8);
        } else if smb_ver == 2 {
            tx.vercmd.set_smb2_cmd(smb_cmd);
        }
        tx.type_data = None;
        tx.request_done = true;
        tx.response_done = self.tc_trunc; // no response expected if tc is truncated
        tx.hdr = key;
        debug!("SMB: TX GENERIC created: ID {} tx list {} {:?}",
                tx.id, self.transactions.len(), &tx);
        self.transactions.push(tx);
        let tx_ref = self.transactions.last_mut();
        return tx_ref.unwrap();
    }
pub fn new_generic_tx ( & mut self , smb_ver : u8 , smb_cmd : u16 , key : SMBCommonHdr ) -> ( & mut SMBTransaction ) { let mut tx = self . new_tx ( ) ; if smb_ver == 1 && smb_cmd <= 255 { tx . vercmd . set_smb1_cmd ( smb_cmd as u8 ) ; } else if smb_ver == 2 { tx . vercmd . set_smb2_cmd ( smb_cmd ) ; } tx . type_data = None ; tx . request_done = true ; tx . response_done = self . tc_trunc ; // no response expected if tc is truncated tx . hdr = key ; debug ! ( " " tx id self transactions len ( ) tx ) ; self . transactions . push ( tx ) ; let tx_ref = self . transactions . last_mut ( ) ; return tx_ref . unwrap ( ) ; }
generic TX has no type_data and is only used to
 track a single cmd request/reply pair.
generic TX has no type_data and is only used to track a single cmd request / reply pair .
&mut self
smb_ver
u8
smb_cmd
u16
key
SMBCommonHdr
&mut self
smb_ver
u8
smb_cmd
u16
key
SMBCommonHdr