19 : start_(start), end_(end) {
32 : start_(prefix), end_(
IOAddress::IPV6_ZERO_ADDRESS()), prefix_length_(length),
33 delegated_length_(delegated) {
36 <<
start_ <<
" was specified");
40 <<
" must not be lower than prefix length " << static_cast<int>(length));
44 <<
" and prefix length " << static_cast<int>(length)
45 <<
" must not be greater than 128");
54 const uint8_t delegated)
55 : start_(start), end_(end), prefix_length_(0), delegated_length_(delegated) {
66 <<
" must not be greater than 128");
asiolink::IOAddress end_
IP address denoting the end of the address range.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
PrefixRange(const asiolink::IOAddress &prefix, const uint8_t length, const uint8_t delegated)
Constructor.
Defines the logger used by the top-level component of kea-dhcp-ddns.
asiolink::IOAddress end_
IP address denoting the first address within the last prefix in the prefix range. ...
asiolink::IOAddress start_
IP address denoting the start of the address range.
uint8_t prefix_length_
Prefix length.
bool isV6() const
Convenience function to check for an IPv6 address.
IOAddress offsetAddress(const IOAddress &addr, uint64_t offset)
Finds the address increased by offset.
uint64_t prefixesInRange(const uint8_t pool_len, const uint8_t delegated_len)
Returns number of available IPv6 prefixes in the specified prefix.
asiolink::IOAddress start_
IP address denoting the start of the prefix range.
The IOAddress class represents an IP addresses (version agnostic)
short getFamily() const
Returns the address family.
uint8_t delegated_length_
Delegated prefix length.