Class: RubySMB::SMB2::Packet::IoctlRequest2
- Inherits:
-
GenericPacket
- Object
- GenericPacket
- RubySMB::SMB2::Packet::IoctlRequest2
- Defined in:
- lib/smbRpc/updateRuby_smb/ioctl_request.rb
Overview
An SMB2 Ioctl Request Packet as defined in [2.2.31 SMB2 IOCTL Request](msdn.microsoft.com/en-us/library/cc246545.aspx)
Constant Summary collapse
- COMMAND =
copy IoctlRequest to IoctlRequest2 to change max_output_response initial_value
RubySMB::SMB2::Commands::IOCTL
Instance Method Summary collapse
-
#calc_input_offset ⇒ Integer
Calculates the value for the input_offset field.
Instance Method Details
#calc_input_offset ⇒ Integer
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.
42 43 44 45 46 47 48 |
# File 'lib/smbRpc/updateRuby_smb/ioctl_request.rb', line 42 def calc_input_offset if input_count.zero? 0 else buffer.abs_offset end end |