Class: RubySMB::SMB2::Packet::TreeConnectResponse

Inherits:
GenericPacket
  • Object
show all
Defined in:
lib/ruby_smb/smb2/packet/tree_connect_response.rb

Overview

An SMB2 TreeConnectResponse Packet as defined in 2.2.10 SMB2 TREE_CONNECT Response

Constant Summary collapse

COMMAND =
RubySMB::SMB2::Commands::TREE_CONNECT
SMB2_SHARE_TYPE_DISK =

Share Types Physical disk share

0x01
SMB2_SHARE_TYPE_PIPE =

Named pipe share

0x02
SMB2_SHARE_TYPE_PRINT =

Printer share

0x03

Instance Method Summary collapse

Methods inherited from GenericPacket

describe, #display, fields_hashed, format_field, from_hex, #packet_smb_version, read, #status_code, #valid?, walk_fields

Instance Method Details

#initialize_instanceObject



30
31
32
33
# File 'lib/ruby_smb/smb2/packet/tree_connect_response.rb', line 30

def initialize_instance
  super
  smb2_header.flags.reply = 1
end