Class: Dap::Filter::FilterDecodeIPMIChanAuthReply
- Inherits:
-
Object
- Object
- Dap::Filter::FilterDecodeIPMIChanAuthReply
- 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
Instance Method Summary collapse
Methods included from BaseDecoder
Methods included from Base
Instance Method Details
#decode(data) ⇒ Object
169 170 171 172 173 174 175 176 177 178 |
# File 'lib/dap/filter/udp.rb', line 169 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 |