Class: PacketGen::Header::DHCPv6::IANA
- Defined in:
- lib/packetgen/header/dhcpv6/option.rb
Overview
DHCPv6 Identity Association for Non-temporary Addresses Option
Instance Attribute Summary collapse
-
#iaid ⇒ Integer
32-bit IAID field.
-
#options ⇒ String
options field.
-
#t1 ⇒ Integer
32-bit T1 field.
-
#t2 ⇒ Integer
32-bit T2 field.
Attributes inherited from Option
Instance Method Summary collapse
-
#human_data ⇒ String
Get human-readable data (IAID, T1 and T2).
Methods inherited from Option
human_type, initialize, new, subclasses, to_human
Instance Attribute Details
#iaid ⇒ Integer
32-bit IAID field
144 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 144 define_attr :iaid, BinStruct::Int32 |
#options ⇒ String
options field
156 157 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 156 define_attr :options, BinStruct::String, builder: ->(h, t) { t.new length_from: -> { h[:length].to_i - 12 } } |
#t1 ⇒ Integer
32-bit T1 field
148 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 148 define_attr :t1, BinStruct::Int32 |
#t2 ⇒ Integer
32-bit T2 field
152 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 152 define_attr :t2, BinStruct::Int32 |
Instance Method Details
#human_data ⇒ String
Get human-readable data (IAID, T1 and T2)
161 162 163 |
# File 'lib/packetgen/header/dhcpv6/option.rb', line 161 def human_data '%#x,%u,%u' % [iaid, t1, t2] end |