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

Instance Method Summary collapse

Methods inherited from GenericPacket

describe, #display, fields_hashed, format_field, #packet_smb_version, read, #status_code, walk_fields

Instance Method Details

#initialize_instance ⇒ Object



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

def initialize_instance
  super
  smb2_header.flags.reply = 1
  smb2_header.command     = RubySMB::SMB2::Commands::IOCTL
end

#input_data ⇒ Object



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

def input_data
  to_binary_s[input_offset, input_count]
end

#output_data ⇒ Object



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

def output_data
  to_binary_s[output_offset, output_count]
end