Sha256: 2cca1e064ef9b1ea16eafdd17eb3915fb986ce5b8f5f50ce37b3d985d5626f58

Contents?: true

Size: 1.35 KB

Versions: 53

Compression:

Stored size: 1.35 KB

Contents

module RubySMB
  module SMB2
    module Packet
      # An SMB2 Read Request Packet as defined in
      # [2.2.19 SMB2 READ Request](https://msdn.microsoft.com/en-us/library/cc246527.aspx)
      class ReadRequest < RubySMB::GenericPacket
        COMMAND = RubySMB::SMB2::Commands::READ

        endian :little

        smb2_header           :smb2_header
        uint16                :structure_size,        label: 'Structure Size',  initial_value: 49
        uint8                 :padding,               label: 'Padding',         initial_value: 0x50
        uint8                 :flags,                 label: 'Flags'
        uint32                :read_length,           label: 'Read Length'
        uint64                :offset,                label: 'Read Offset'
        smb2_fileid           :file_id,               label: 'File ID'
        uint32                :min_bytes,             label: 'Minimum Count'
        uint32                :channel,               label: 'Channel'
        uint32                :remaining_bytes,       label: 'Remaining Bytes'
        uint16                :channel_offset,        label: 'Read Channel Info Offset'
        uint16                :channel_length,        label: 'Read Channel Info Length'
        string                :buffer,                label: 'Read Channel info Buffer', initial_value: 0x00

      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
ruby_smb-3.3.12 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.11 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.10 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.9 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.7 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.6 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.5 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.4 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.3 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.2 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.1 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.3.0 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.2.8 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.2.7 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.2.6 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.2.5 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.2.4 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.2.3 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.2.2 lib/ruby_smb/smb2/packet/read_request.rb
ruby_smb-3.2.1 lib/ruby_smb/smb2/packet/read_request.rb