Class: PacketGen::Header::DHCPv6::DUID_LL
- Inherits:
-
DUID
- Object
- Types::Fields
- DUID
- PacketGen::Header::DHCPv6::DUID_LL
- Defined in:
- lib/packetgen/header/dhcpv6/duid.rb
Overview
DUID Based on Link-layer
Constant Summary
Constants inherited from DUID
PacketGen::Header::DHCPv6::DUID::TYPES
Instance Attribute Summary collapse
-
#htype ⇒ Integer
16-bit hardware protocol type.
- #link_addr ⇒ Eth::MacAddr
Attributes inherited from DUID
Instance Method Summary collapse
-
#to_human ⇒ String
Get human-readable DUID description.
Methods inherited from DUID
Methods included from Types::Fieldable
#format_inspect, #read, #sz, #to_s, #type_name
Methods inherited from Types::Fields
#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field
Constructor Details
This class inherits a constructor from PacketGen::Types::Fields
Instance Attribute Details
#htype ⇒ Integer
16-bit hardware protocol type
140 |
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 140 define_field :htype, Types::Int16, default: 1 |
#link_addr ⇒ Eth::MacAddr
143 |
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 143 define_field :link_addr, Eth::MacAddr |
Instance Method Details
#to_human ⇒ String
Get human-readable DUID description
147 148 149 |
# File 'lib/packetgen/header/dhcpv6/duid.rb', line 147 def to_human "DUID_LL<#{link_addr}>" end |