Class: PacketGen::Header::DHCPv6::DUID_EN
- Defined in:
- lib/packetgen/header/dhcpv6/duid.rb
Overview
DUID Based on Enterprise Number
Constant Summary
Constants inherited from DUID
PacketGen::Header::DHCPv6::DUID::TYPES
Instance Attribute Summary collapse
-
#en ⇒ Integer
32-bit entreprise number.
- #identifier ⇒ String
Attributes inherited from DUID
Instance Method Summary collapse
-
#to_human ⇒ String
Get human-readable DUID description.
Methods inherited from DUID
Instance Attribute Details
#en ⇒ Integer
32-bit entreprise number
118 |
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 118 define_attr :en, BinStruct::Int32 |
#identifier ⇒ String
121 |
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 121 define_attr :identifier, BinStruct::String |
Instance Method Details
#to_human ⇒ String
Get human-readable DUID description
125 126 127 |
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 125 def to_human 'DUID_EN<%#x,%s>' % [en, identifier] end |