Class: RubySMB::SMB2::Packet::IoctlRequest

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

Overview

An SMB2 Ioctl Request Packet as defined in 2.2.31 SMB2 IOCTL Request

Constant Summary collapse

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

Instance Method Summary collapse

Methods inherited from GenericPacket

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

Instance Method Details

#calc_input_offsetInteger

Calculates the value for the input_offset field. If the input buffer is empty then this should be set to 0, otherwise it should return the absolute offset of the input buffer.



40
41
42
43
44
45
46
# File 'lib/ruby_smb/smb2/packet/ioctl_request.rb', line 40

def calc_input_offset
  if input_count.zero?
    0
  else
    buffer.abs_offset
  end
end