Sha256: 510794194298ed04a5351a44efba6ff97abe9713749eeb269603204f07a6f226
Contents?: true
Size: 945 Bytes
Versions: 12
Compression:
Stored size: 945 Bytes
Contents
# This file is part of PacketGen # See https://github.com/sdaubert/packetgen for more informations # Copyright (C) 2016 Sylvain Daubert <sylvain.daubert@laposte.net> # This program is published under MIT license. # frozen_string_literal: true module PacketGen module Header class DHCPv6 # Container class for DHCPv6 {Option options}. # # == Add DHCPv6 options to an +Options+ instance # options = PacketGen::Header::DHCP::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 class Options < Types::Array set_of DHCPv6::Option # Separator used in {#to_human}. HUMAN_SEPARATOR = ';' end end end end
Version data entries
12 entries across 12 versions & 1 rubygems