Class: PacketGen::Header::DNS::Option
- Inherits:
-
Types::TLV
- Object
- Types::Fields
- Types::TLV
- PacketGen::Header::DNS::Option
- Defined in:
- lib/packetgen/header/dns/option.rb
Overview
DNS option
Instance Attribute Summary
Attributes inherited from Types::TLV
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Option
constructor
Force Types::TLV#type and Types::TLV#length fields to be Types::Int16.
Methods inherited from Types::TLV
#human_type, #old_type=, #to_human
Methods inherited from Types::Fields
#[], #[]=, #body=, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, #force_binary, inherited, #inspect, #read, #sz, #to_h, #to_s
Constructor Details
#initialize(options = {}) ⇒ Option
Force Types::TLV#type and Types::TLV#length fields to be Types::Int16
11 12 13 |
# File 'lib/packetgen/header/dns/option.rb', line 11 def initialize(={}) super .merge!(t: Types::Int16, l: Types::Int16) end |