Sha256: 26baff74142b4befd295e798d47a1382175fa00877a20159713e4c616cfc2369

Contents?: true

Size: 886 Bytes

Versions: 3

Compression:

Stored size: 886 Bytes

Contents

module PacketGen::Plugin
  class SMB
    module Negotiate
      # SMB Negotiation Request header.
      #
      # See also {Blocks}, as {Negotiate::Request} is a specialization of {Blocks#words}
      # and {Blocks#bytes}.
      # @author Sylvain Daubert
      class Request < PacketGen::Header::Base
        # @!attribute word_count
        #  The size, in 2-byte words, of the SMB command parameters. It should
        #  be +0+ setup_count+.
        #  @return [Integer]
        define_field :word_count, PacketGen::Types::Int8, default: 0
        # @!attribute byte_count
        #  @return [Integer]
        define_field :byte_count, PacketGen::Types::Int16le
        # @!attribute dialects
        #  @return [ArrayOfDialect]
        define_field :dialects, ArrayOfDialect

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
packetgen-plugin-smb-0.6.1 lib/packetgen/plugin/smb/negotiate/request.rb
packetgen-plugin-smb-0.6.0 lib/packetgen/plugin/smb/negotiate/request.rb
packetgen-plugin-smb-0.5.0 lib/packetgen/plugin/smb/negotiate/request.rb