Class: PacketGen::Header::DHCPv6::IATA

Inherits:
Option
  • Object
show all
Defined in:
lib/packetgen/header/dhcpv6/option.rb

Overview

DHCPv6 Identity Association for Temporary Addresses Option

Author:

  • Sylvain Daubert

Since:

  • 2.5.0

Instance Attribute Summary collapse

Attributes inherited from Option

#length, #type

Instance Method Summary collapse

Methods inherited from Option

human_type, initialize, new, subclasses, to_human

Instance Attribute Details

#iaidInteger

32-bit IAID field

Returns:

  • (Integer)


175
# File 'lib/packetgen/header/dhcpv6/option.rb', line 175

define_attr :iaid, BinStruct::Int32

#optionsString

options field

Returns:

  • (String)


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_dataString

Get human-readable data (IAID)

Returns:

  • (String)

Since:

  • 2.5.0



184
185
186
# File 'lib/packetgen/header/dhcpv6/option.rb', line 184

def human_data
  '%#x' % iaid
end