Class: PacketGen::Header::DHCPv6::ClientID

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

Overview

DHCPv6 Client ID option

Author:

  • Sylvain Daubert

Since:

  • 2.5.0

Direct Known Subclasses

ServerID

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

#duidDUID

Returns:



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

define_attr :duid, DUID

Instance Method Details

#human_dataString

Get human-readable data (DUID)

Returns:

  • (String)

Since:

  • 2.5.0



124
125
126
# File 'lib/packetgen/header/dhcpv6/option.rb', line 124

def human_data
  self[:duid].to_human
end