Class: RubySMB::SMB1::Packet::Trans2::SetPathInformationRequestTrans2Data

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/ruby_smb/smb1/packet/trans2/set_path_information_request.rb

Overview

The Trans2 Data Block for a SET_PATH_INFORMATION request as defined in MS-CIFS 2.2.6.7.1 Request.

The data layout depends on the Information Level being set, so the block carries an opaque byte buffer that the caller fills in for the target info level. SMB_SET_FILE_UNIX_LINK (0x0201) for example carries the symlink target as a null-terminated string.

Instance Method Summary collapse

Instance Method Details

#lengthObject

Returns the length of the Trans2Data struct in number of bytes



38
39
40
# File 'lib/ruby_smb/smb1/packet/trans2/set_path_information_request.rb', line 38

def length
  do_num_bytes
end