7#ifndef RANDOM_ALLOCATOR_H
8#define RANDOM_ALLOCATOR_H
81 uint8_t hint_prefix_length);
99 uint64_t getRandomNumber(uint64_t limit);
102 std::mt19937 generator_;
The IOAddress class represents an IP addresses (version agnostic)
Base class for all address/prefix allocation algorithms.
PrefixLenMatchType
Type of preferred PD-pool prefix length selection criteria.
Container for storing client class names.
An allocator offering addresses in a random order.
virtual std::string getType() const
Returns the allocator type string.
RandomAllocator(Lease::Type type, const WeakSubnetPtr &subnet)
Constructor.
boost::shared_ptr< PoolRandomAllocationState > PoolRandomAllocationStatePtr
Type of the pointer to the PoolRandomAllocationState.
boost::weak_ptr< Subnet > WeakSubnetPtr
Weak pointer to the Subnet.
boost::shared_ptr< IdentifierBaseType > IdentifierBaseTypePtr
Shared pointer to a IdentifierType.
boost::shared_ptr< Pool > PoolPtr
a pointer to either IPv4 or IPv6 Pool
boost::shared_ptr< Pool6 > Pool6Ptr
a pointer an IPv6 Pool
Defines the logger used by the top-level component of kea-lfc.
Type
Type of lease or pool.