Class: PacketGen::Header::DHCPv6::DUID_LL

Inherits:
DUID
  • Object
show all
Defined in:
lib/packetgen/header/dhcpv6/duid.rb

Overview

DUID Based on Link-layer

Author:

  • Sylvain Daubert

Since:

  • 2.5.0

Constant Summary

Constants inherited from DUID

PacketGen::Header::DHCPv6::DUID::TYPES

Instance Attribute Summary collapse

Attributes inherited from DUID

#body, #type

Instance Method Summary collapse

Methods inherited from DUID

#human_type, #read

Instance Attribute Details

#htypeInteger

16-bit hardware protocol type

Returns:

  • (Integer)


138
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 138

define_attr :htype, BinStruct::Int16, default: 1

Returns:



141
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 141

define_attr :link_addr, Eth::MacAddr

Instance Method Details

#to_humanString

Get human-readable DUID description

Returns:

  • (String)

Since:

  • 2.5.0



145
146
147
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 145

def to_human
  "DUID_LL<#{link_addr}>"
end