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");
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
The IOAddress class represents an IP addresses (version agnostic)
bool isV6() const
Convenience function to check for an IPv6 address.
short getFamily() const
Returns the address family.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
uint64_t prefixesInRange(const uint8_t pool_len, const uint8_t delegated_len)
Returns number of available IPv6 prefixes in the specified prefix.
IOAddress offsetAddress(const IOAddress &addr, uint64_t offset)
Finds the address increased by offset.
Defines the logger used by the top-level component of kea-lfc.
asiolink::IOAddress start_
IP address denoting the start of the address range.
asiolink::IOAddress end_
IP address denoting the end of the address range.
AddressRange(const asiolink::IOAddress &start, const asiolink::IOAddress &end)
Constructor.
uint8_t prefix_length_
Prefix length.
uint8_t delegated_length_
Delegated prefix length.
PrefixRange(const asiolink::IOAddress &prefix, const uint8_t length, const uint8_t delegated)
Constructor.
asiolink::IOAddress start_
IP address denoting the start of the prefix range.
asiolink::IOAddress end_
IP address denoting the first address within the last prefix in the prefix range.