Class: PacketGen::Header::DNS::Option

Inherits:
Types::AbstractTLV show all
Defined in:
lib/packetgen/header/dns/option.rb,
lib/packetgen/header/dns/option.rb

Overview

DNS option is a TLV object:

Since:

Constant Summary

Constants inherited from Types::AbstractTLV

Types::AbstractTLV::FIELD_TYPES

Instance Attribute Summary collapse

Attributes inherited from Types::AbstractTLV

#length, #type, #value

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

#codeInteger

Returns:

  • (Integer)


15
# File 'lib/packetgen/header/dns/option.rb', line 15

class Option < Types::AbstractTLV; end

#dataTypes::String

Returns:



15
# File 'lib/packetgen/header/dns/option.rb', line 15

class Option < Types::AbstractTLV; end