Sha256: 3535f40eb37ea45ce37fe78dab2479bcbf78e818a24d23f094ace586fd16999f

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

# This file is part of packetgen-plugin-smb.
# See https://github.com/sdaubert/packetgen-plugin-smb for more informations
# Copyright (C) 2018 Sylvain Daubert <sylvain.daubert@laposte.net>
# This program is published under MIT license.

# frozen_string_literal: true

module PacketGen::Plugin
  class SMB
    module Close
      # Close Response.
      #
      # This is a void container. {#word_count} and {#byte_count} should be 0.
      # @author Sylvain Daubert
      # @since 0.3.0
      class Response < PacketGen::Header::Base
        # @!attribute word_count
        #  The size, in 2-byte words, of the SMB command parameters. It should
        #  be +0+.
        #  @return [Integer]
        define_field :word_count, PacketGen::Types::Int8, default: 3
        define_field :last_modified, PacketGen::Types::Int32le
        # @!attribute byte_count
        #  Should be 0.
        #  @return [Integer]
        define_field :byte_count, PacketGen::Types::Int16le, default: 0

        # Give protocol name for this class
        # @return [String]
        def self.protocol_name
          'SMB::Close::Response'
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
packetgen-plugin-smb-0.6.1 lib/packetgen/plugin/smb/close/response.rb
packetgen-plugin-smb-0.6.0 lib/packetgen/plugin/smb/close/response.rb
packetgen-plugin-smb-0.5.0 lib/packetgen/plugin/smb/close/response.rb
packetgen-plugin-smb-0.4.0 lib/packetgen/plugin/smb/close/response.rb