Class: RubySMB::SMB1::Packet::SessionSetupLegacyResponse::DataBlock
- Inherits:
-
DataBlock
- Object
- BinData::Record
- DataBlock
- RubySMB::SMB1::Packet::SessionSetupLegacyResponse::DataBlock
- Defined in:
- lib/ruby_smb/smb1/packet/session_setup_legacy_response.rb
Overview
Represents the specific layout of the DataBlock for a RubySMB::SMB1::Packet::SessionSetupResponse Packet. Windows 95/98/ME may return byte_count=0 with no string fields.
Instance Method Summary collapse
-
#do_read(io) ⇒ Object
Override to handle Win95 responses with byte_count=0.
Methods inherited from DataBlock
calculate_byte_count, #calculate_byte_count, data_fields, #field_enabled?
Instance Method Details
#do_read(io) ⇒ Object
Override to handle Win95 responses with byte_count=0.
24 25 26 27 28 29 30 31 |
# File 'lib/ruby_smb/smb1/packet/session_setup_legacy_response.rb', line 24 def do_read(io) byte_count.do_read(io) return unless byte_count > 0 pad.do_read(io) native_os.do_read(io) native_lan_man.do_read(io) primary_domain.do_read(io) end |