NAME
Net::DHCPv6::Option::IAAddr - IA Address option (code 5) — address + lifetimes + sub-options
VERSION
version 0.001
SYNOPSIS
my $iaaddr = Net::DHCPv6::Option::IAAddr->new(
address => "\x20\x01\x0d\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01",
preferred_lifetime => 7200,
valid_lifetime => 86400,
);
DESCRIPTION
Implements the IAADDR option (OPTION_IAADDR, code 5) per RFC 8415 §21.6. Contains a 16-byte IPv6 address, preferred lifetime, valid lifetime, and sub-options.
ALPHA STATUS
ALPHA SOFTWARE. This is an early release. The interface is experimental and subject to change without notice.
METHODS
- new(address => $bytes16, preferred_lifetime => $num, valid_lifetime => $num, options => $optionlist)
-
Constructor.
addressis required (16 raw bytes).preferred_lifetimeandvalid_lifetimedefault to 0.optionsdefaults to an empty Net::DHCPv6::OptionList. - address
-
Returns the 16-byte IPv6 address.
- preferred_lifetime
-
Returns preferred lifetime in seconds.
- valid_lifetime
-
Returns valid lifetime 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::IANA
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