Class: PacketGen::Header::DHCPv6::Options

Inherits:
BinStruct::Array
  • Object
show all
Defined in:
lib/packetgen/header/dhcpv6/options.rb

Overview

Container class for DHCPv6 options.

Examples:

Add DHCPv6 options to an Options instance

options = PacketGen::Header::DHCPv6::Options.new
# Add an ElapsedTime option
options << { 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')
options << { type: 1, duid: duid }

Author:

  • Sylvain Daubert

Since:

  • 2.5.0

Constant Summary collapse

HUMAN_SEPARATOR =

Separator used in #to_human.

Since:

  • 2.5.0

';'