Sha256: d8faa92effdaaf5c5f828a9ab21b277ee0e77c9d221224d3dcd37d7e621f687d

Contents?: true

Size: 744 Bytes

Versions: 63

Compression:

Stored size: 744 Bytes

Contents

module RubySMB
  module Nbss


    # Representation of the NetBIOS Negative Session Service Response packet as defined in
    # [4.3.4 SESSION REQUEST PACKET](https://tools.ietf.org/html/rfc1002)
    class NegativeSessionResponse < BinData::Record
      endian :big

      session_header :session_header
      uint8          :error_code, label: 'Error Code'

      def error_msg
        case error_code
        when 0x80
          'Not listening on called name'
        when 0x81
          'Not listening for calling name'
        when 0x82
          'Called name not present'
        when 0x83
          'Called name present, but insufficient resources'
        when 0x8F
          'Unspecified error'
        end
      end
    end

  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
ruby_smb-3.3.12 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.11 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.10 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.9 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.7 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.6 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.5 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.4 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.3 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.2 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.1 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.3.0 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.2.8 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.2.7 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.2.6 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.2.5 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.2.4 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.2.3 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.2.2 lib/ruby_smb/nbss/negative_session_response.rb
ruby_smb-3.2.1 lib/ruby_smb/nbss/negative_session_response.rb