NAME
Net::DHCPv6::Option::IANA - Identity Association for Non-temporary Addresses option (code 3)
VERSION
version 0.001
SYNOPSIS
my $iana = Net::DHCPv6::Option::IANA->new(iaid => 42, t1 => 3600, t2 => 5400);
$iana->add_option($iaaddr);
print $iana->iaid;
print $iana->get_option($OPTION_IAADDR)->address;
DESCRIPTION
Implements the IA_NA option (OPTION_IA_NA, code 3) per RFC 8415 §21.4. Contains an IAID, T1, T2, and sub-options (typically IAAddr options).
ALPHA STATUS
ALPHA SOFTWARE. This is an early release. The interface is experimental and subject to change without notice.
METHODS
- new(iaid => $num, t1 => $num, t2 => $num, options => $optionlist)
-
Constructor.
iaidis required;t1,t2, andoptionsdefault to 0 and an empty Net::DHCPv6::OptionList. - iaid
-
Returns the IAID.
- t1
-
Returns T1 (renew time) in seconds.
- t2
-
Returns T2 (rebind time) in seconds.
- options
-
Returns the internal Net::DHCPv6::OptionList of sub-options.
- add_option($option)
-
Add a sub-option.
- get_option($code)
-
Retrieve the first sub-option with the given code.
SEE ALSO
Net::DHCPv6::Option, Net::DHCPv6::Option::IAAddr, Net::DHCPv6::Option::IAPD
AUTHOR
Dean Hamstead <dean@fragfest.com.au>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2026 by Dean Hamstead.
This is free software, licensed under:
The MIT (X11) License