Class: Dap::Filter::FilterDecodeDTLS
- Inherits:
-
Object
- Object
- Dap::Filter::FilterDecodeDTLS
- Includes:
- BaseDecoder
- Defined in:
- lib/dap/filter/udp.rb
Overview
Quickly decode a DTLS message
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
344 345 346 347 348 349 350 351 352 353 354 |
# File 'lib/dap/filter/udp.rb', line 344 def decode(data) return unless data.length >= 13 info = Dap::Proto::DTLS::RecordLayer.new(data) return unless (info && info.valid?) {}.tap do |h| info.fields.each do |f| name = f.name h[name] = info.send(name).to_s end end end |