Class: PacketGen::Plugin::SMB::Close::Request

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

Overview

Close Request.

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)


35
# File 'lib/packetgen/plugin/smb/close/request.rb', line 35

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

#fidInteger

16-bit FID of the object to close

Returns:

  • (Integer)


23
# File 'lib/packetgen/plugin/smb/close/request.rb', line 23

define_field :fid, PacketGen::Types::Int16le, default: 3

#last_modifiedInteger

32-bit time value encoded as the number of seconds since January 1, 1970 00:00:00.0. The client can request that the last modification time for the file be updated to this time value. A value of 0x00000000 or 0xFFFFFFFF results in the server not updating the last modification time.

Returns:

  • (Integer)


31
# File 'lib/packetgen/plugin/smb/close/request.rb', line 31

define_field :last_modified, PacketGen::Types::Int32le

#word_countInteger

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

Returns:

  • (Integer)


19
# File 'lib/packetgen/plugin/smb/close/request.rb', line 19

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



39
40
41
# File 'lib/packetgen/plugin/smb/close/request.rb', line 39

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