Sha256: 4e1d80f90e355b4bf30a9d33554a9deb0b8df1fbc9241cc813f77159729789e1
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
# frozen_string_literal: true # 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. module PacketGen::Plugin class SMB module Negotiate # A SMB_Dialect struct containing: # * a 8-bit {#format} field, which should be set to 0x02, # * a null-terminated string identifying a SMB dialect. # @author Sylvain Daubert class Dialect < PacketGen::Types::Fields # @!attribute format # 8-bit format. Should be +2+ to indicate a null-terminated string for # {#dialect} field. # @return [Integer] define_field :format, PacketGen::Types::Int8, default: 2 # @!attribute dialect # Null-terminated string identifying a SMB dialect. # @return [String] define_field :dialect,PacketGen::Types::CString # @return [String] def to_human self[:dialect].to_human end end # Specialized {PacketGen::Types::Array} to embed {Dialect Dialects}. # @author Sylvain Daubert class ArrayOfDialect < PacketGen::Types::Array set_of Dialect end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
packetgen-plugin-smb-0.6.3 | lib/packetgen/plugin/smb/negotiate/dialect.rb |
packetgen-plugin-smb-0.6.2 | lib/packetgen/plugin/smb/negotiate/dialect.rb |