Sha256: fc32c2eba35bc80b9eb268148843f315eda95481c58155d2f35cacab7423d73a

Contents?: true

Size: 969 Bytes

Versions: 36

Compression:

Stored size: 969 Bytes

Contents

module RubySMB
  module SMB2
    module Packet
      # An SMB2 Query Info Response Packet as defined in
      # [2.2.38 SMB2 QUERY_INFO Response](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/3b1b3598-a898-44ca-bfac-2dcae065247f)
      class QueryInfoResponse < RubySMB::GenericPacket
        COMMAND = RubySMB::SMB2::Commands::QUERY_INFO

        endian       :little
        smb2_header  :smb2_header
        uint16       :structure_size,  label: 'Structure Size', initial_value: 9
        uint16       :buffer_offset,   label: 'Output Buffer Offset', initial_value: -> { buffer.empty? ? 0 : buffer.abs_offset }
        uint32       :buffer_length,   label: 'Output Buffer Length', initial_value: -> { buffer.empty? ? 0 : buffer.do_num_bytes }
        string       :buffer,          read_length: -> { buffer_length }

        def initialize_instance
          super
          smb2_header.flags.reply = 1
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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