Class: PacketGen::Header::DHCPv6::IATA
- Defined in:
- lib/packetgen/header/dhcpv6/option.rb
Overview
DHCPv6 Identity Association for Temporary Addresses Option
Instance Attribute Summary collapse
-
#iaid ⇒ Integer
32-bit IAID field.
-
#options ⇒ String
options field.
Attributes inherited from Option
Instance Method Summary collapse
-
#human_data ⇒ String
Get human-readable data (IAID).
Methods inherited from Option
human_type, initialize, new, subclasses, to_human
Instance Attribute Details
#iaid ⇒ Integer
32-bit IAID field
175 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 175 define_attr :iaid, BinStruct::Int32 |
#options ⇒ String
options field
179 180 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 179 define_attr :options, BinStruct::String, builder: ->(h, t) { t.new length_from: -> { h[:length].to_i - 4 } } |
Instance Method Details
#human_data ⇒ String
Get human-readable data (IAID)
184 185 186 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 184 def human_data '%#x' % iaid end |