NAME
Net::DHCPv6::Option::PdExclude - PD Exclude option (code 67) -- prefix to exclude from IA_PD
VERSION
version 0.003
SYNOPSIS
# Text form (auto-resolved, truncated to prefix length)
my $opt = Net::DHCPv6::Option::PdExclude->new(
prefix_length => 48,
address => '2001:db8::',
);
# Raw bytes (already truncated to prefix length)
use Socket qw(inet_pton AF_INET6);
my $opt2 = Net::DHCPv6::Option::PdExclude->new(
prefix_length => 48,
address_raw => inet_pton( AF_INET6, '2001:db8::' ),
);
DESCRIPTION
Carries a prefix that the requesting router must exclude from the delegated prefix set. See RFC 6603.
ALPHA STATUS
ALPHA SOFTWARE. This is an early release. The interface is experimental and subject to change without notice.
METHODS
new
Constructor. Requires prefix_length and either address (IPv6 text) or address_raw (prefix bytes). Text addresses are truncated to ceil(prefix_length/8) bytes.
address
Returns the prefix address bytes (variable-length, not full 16 bytes).
address_raw
Returns the prefix address bytes (same as address).
prefix_length
Returns the prefix length in bits.
SEE ALSO
Net::DHCPv6::Option, Net::DHCPv6::OptionList
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