Sha256: 61cf9ac890b33360c553d4acc695d8bfbaebe7dbf338ee293277f01adbf77873

Contents?: true

Size: 603 Bytes

Versions: 10

Compression:

Stored size: 603 Bytes

Contents

module RubySMB
  module SMB2
    module Packet
      # An SMB2 Echo response Packet as defined in
      # [2.2.29 SMB2 ECHO Response](https://msdn.microsoft.com/en-us/library/cc246541.aspx)
      class EchoResponse < RubySMB::GenericPacket
        endian       :little
        smb2_header  :smb2_header
        uint16       :structure_size, label: 'Structure Size', initial_value: 4
        uint16       :reserved

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby_smb-1.0.3 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-1.0.2 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-1.0.1 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-1.0.0 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-0.0.24 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-0.0.23 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-0.0.22 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-0.0.21 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-0.0.20 lib/ruby_smb/smb2/packet/echo_response.rb
ruby_smb-0.0.19 lib/ruby_smb/smb2/packet/echo_response.rb