![]() |
Kea
1.5.0
|
Address/prefix allocator that gets an address based on a hash. More...
#include <alloc_engine.h>
Inheritance diagram for isc::dhcp::AllocEngine::HashedAllocator:Public Member Functions | |
| HashedAllocator (Lease::Type type) | |
| default constructor (does nothing) More... | |
| virtual isc::asiolink::IOAddress | pickAddress (const SubnetPtr &subnet, const ClientClasses &client_classes, const DuidPtr &duid, const isc::asiolink::IOAddress &hint) |
| returns an address based on hash calculated from client's DUID. More... | |
Public Member Functions inherited from isc::dhcp::AllocEngine::Allocator | |
| Allocator (Lease::Type pool_type) | |
| Default constructor. More... | |
| virtual | ~Allocator () |
| virtual destructor More... | |
Additional Inherited Members | |
Protected Attributes inherited from isc::dhcp::AllocEngine::Allocator | |
| Lease::Type | pool_type_ |
| defines pool type allocation More... | |
Address/prefix allocator that gets an address based on a hash.
Definition at line 177 of file alloc_engine.h.
| isc::dhcp::AllocEngine::HashedAllocator::HashedAllocator | ( | Lease::Type | type | ) |
default constructor (does nothing)
| type | - specifies allocation type |
Definition at line 287 of file alloc_engine.cc.
References isc_throw.
|
virtual |
returns an address based on hash calculated from client's DUID.
| subnet | an address will be picked from pool of that subnet |
| client_classes | list of classes client belongs to |
| duid | Client's DUID |
| hint | a hint (last address that was picked) |
Implements isc::dhcp::AllocEngine::Allocator.
Definition at line 294 of file alloc_engine.cc.
References isc_throw.