Class: RubySMB::Nbss::NegativeSessionResponse

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/ruby_smb/nbss/negative_session_response.rb

Overview

Representation of the NetBIOS Negative Session Service Response packet as defined in 4.3.4 SESSION REQUEST PACKET

Instance Method Summary collapse

Instance Method Details

#error_msgObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/ruby_smb/nbss/negative_session_response.rb', line 13

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