Class: PacketGen::Plugin::SMB::Close::Response

Inherits:
Header::Base
  • Object
show all
Defined in:
lib/packetgen/plugin/smb/close/response.rb

Overview

Close Response.

This is a void container. #word_count and #byte_count should be 0.

Author:

  • Sylvain Daubert

Since:

  • 0.3.0

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#byte_countInteger

Should be 0.

Returns:

  • (Integer)


26
# File 'lib/packetgen/plugin/smb/close/response.rb', line 26

define_field :byte_count, PacketGen::Types::Int16le, default: 0

#word_countInteger

The size, in 2-byte words, of the SMB command parameters. It should be 0.

Returns:

  • (Integer)


21
# File 'lib/packetgen/plugin/smb/close/response.rb', line 21

define_field :word_count, PacketGen::Types::Int8, default: 3

Class Method Details

.protocol_nameString

Give protocol name for this class

Returns:

Since:

  • 0.3.0



30
31
32
# File 'lib/packetgen/plugin/smb/close/response.rb', line 30

def self.protocol_name
  'SMB::Close::Response'
end