Class: Dap::Filter::FilterDecodeIPMIChanAuthReply

Inherits:
Object
  • Object
show all
Includes:
BaseDecoder
Defined in:
lib/dap/filter/udp.rb

Overview

Decode a IPMI GetChannelAuth probe response ( zmap: ipmi_623.pkt )

Instance Attribute Summary

Attributes included from Base

#name, #opts

Instance Method Summary collapse

Methods included from BaseDecoder

#process

Methods included from Base

#initialize, #process

Instance Method Details

#decode(data) ⇒ Object



148
149
150
151
152
153
154
155
156
157
# File 'lib/dap/filter/udp.rb', line 148

def decode(data)
  info = Dap::Proto::IPMI::Channel_Auth_Reply.new(data)
  return unless info.valid?
  {}.tap do |h|
    info.fields.each do |f|
      name = f.name
      h[name] = info.send(name).to_s
    end
  end
end