Class: RubySMB::SMB2::Packet::IoctlResponse

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

Overview

An SMB2 Ioctl Response Packet as defined in 2.2.32 SMB2 IOCTL Response

Constant Summary collapse

COMMAND =
RubySMB::SMB2::Commands::IOCTL

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



24
25
26
27
# File 'lib/ruby_smb/smb2/packet/ioctl_response.rb', line 24

def initialize_instance
  super
  smb2_header.flags.reply = 1
end

#input_dataObject



29
30
31
# File 'lib/ruby_smb/smb2/packet/ioctl_response.rb', line 29

def input_data
  to_binary_s[input_offset, input_count]
end

#output_dataObject



33
34
35
# File 'lib/ruby_smb/smb2/packet/ioctl_response.rb', line 33

def output_data
  to_binary_s[output_offset, output_count]
end