Class: PacketGen::Header::DHCPv6::Options
- Inherits:
-
Types::Array
- Object
- Types::Array
- PacketGen::Header::DHCPv6::Options
- Defined in:
- lib/packetgen/header/dhcpv6/options.rb
Overview
Container class for DHCPv6 options.
Add DHCPv6 options to an Options
instance
= PacketGen::Header::DHCP::Options.new
# Add an ElapsedTime option
<< { type: 'ElapsedTime', value: 3600 }
# Add a ClientID. Here, use integer type
duid = PacketGen::Header::DHCPv6::DUID_LL.new(link_addr: '08:00:27:fe:8f:95')
<< { type: 1, duid: duid }
Constant Summary collapse
- HUMAN_SEPARATOR =
Separator used in Types::Array#to_human.
';'
Constants included from Types::LengthFrom
Types::LengthFrom::MAX_SZ_TO_READ
Method Summary
Methods inherited from Types::Array
#<<, #==, #[], #clear, #clear!, #delete, #delete_at, #each, #empty?, #first, #initialize, #initialize_copy, #last, #push, #read, set_of, set_of_klass, #size, #sz, #to_a, #to_human, #to_s
Methods included from Types::LengthFrom
#initialize_length_from, #read_with_length_from, #sz_to_read
Methods included from Types::Fieldable
#format_inspect, #read, #sz, #to_human, #to_s, #type_name
Constructor Details
This class inherits a constructor from PacketGen::Types::Array