Class: PacketGen::Header::DHCPv6::DUID_EN

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

Overview

DUID Based on Enterprise Number

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

#enInteger

32-bit entreprise number

Returns:

  • (Integer)


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

define_attr :en, BinStruct::Int32

#identifierString

Returns:

  • (String)


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

define_attr :identifier, BinStruct::String

Instance Method Details

#to_humanString

Get human-readable DUID description

Returns:

  • (String)

Since:

  • 2.5.0



125
126
127
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 125

def to_human
  'DUID_EN<%#x,%s>' % [en, identifier]
end