Class: PacketGen::Header::DNS::Option
- Inherits:
-
Types::AbstractTLV
- Object
- Types::Fields
- Types::AbstractTLV
- PacketGen::Header::DNS::Option
- Defined in:
- lib/packetgen/header/dns/option.rb,
lib/packetgen/header/dns/option.rb
Overview
DNS option is a TLV object:
-
#code is a Types::Int16,
-
#data is a Types::String.
Constant Summary
Constants inherited from Types::AbstractTLV
Types::AbstractTLV::FIELD_TYPES
Instance Attribute Summary collapse
-
#code ⇒ Integer
Alias for Types::AbstractTLV#type.
-
#data ⇒ Types::String
Alias for Types::AbstractTLV#value.
Attributes inherited from Types::AbstractTLV
Method Summary
Methods inherited from Types::AbstractTLV
#calc_length, create, define_type_default, define_type_enum, #human_type, #initialize, #read, #to_human
Methods included from Types::Fieldable
#format_inspect, #read, #sz, #to_human, #to_s, #type_name
Methods inherited from Types::Fields
#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field
Constructor Details
This class inherits a constructor from PacketGen::Types::AbstractTLV
Instance Attribute Details
#code ⇒ Integer
Alias for Types::AbstractTLV#type
15 |
# File 'lib/packetgen/header/dns/option.rb', line 15 class Option < Types::AbstractTLV; end |
#data ⇒ Types::String
Alias for Types::AbstractTLV#value
15 |
# File 'lib/packetgen/header/dns/option.rb', line 15 class Option < Types::AbstractTLV; end |