summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/iterative_allocation_state.h
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2022-11-21 12:13:01 +0100
committerMarcin Siodelski <marcin@isc.org>2023-01-07 11:45:06 +0100
commitd92cc17a202cc1d6ec491576f9cc7d8abc5ac0ab (patch)
treeea94a8453cc23028e262102f99b1a38bba690135 /src/lib/dhcpsrv/iterative_allocation_state.h
parent[#969] Configure allocator for DHCPv4 (diff)
downloadkea-d92cc17a202cc1d6ec491576f9cc7d8abc5ac0ab.tar.xz
kea-d92cc17a202cc1d6ec491576f9cc7d8abc5ac0ab.zip
[#969] DHCPv6 allocators configurable
Diffstat (limited to 'src/lib/dhcpsrv/iterative_allocation_state.h')
-rw-r--r--src/lib/dhcpsrv/iterative_allocation_state.h35
1 files changed, 12 insertions, 23 deletions
diff --git a/src/lib/dhcpsrv/iterative_allocation_state.h b/src/lib/dhcpsrv/iterative_allocation_state.h
index 278c09fed3..2ff9aa0bad 100644
--- a/src/lib/dhcpsrv/iterative_allocation_state.h
+++ b/src/lib/dhcpsrv/iterative_allocation_state.h
@@ -49,37 +49,26 @@ public:
/// @brief Returns last allocated address or prefix.
///
- /// @param type type of the last allocated lease to be returned.
- /// @return last allocated address or prefix of a given type.
- asiolink::IOAddress getLastAllocated(Lease::Type type) const;
+ /// @return last allocated address or prefix.
+ asiolink::IOAddress getLastAllocated() const;
/// @brief Sets last allocated address or prefix.
///
- /// @param type type of the last allocated lease set.
/// @param address an address or prefix last allocated.
- void setLastAllocated(Lease::Type type, const asiolink::IOAddress& address);
+ void setLastAllocated(const asiolink::IOAddress& address);
private:
- /// @brief Last allocated address.
+ /// @brief Last allocated address or delegated prefix.
///
- /// This is the last allocated address that was previously allocated from
- /// the particular subnet. It should be noted that although the value
- /// is usually correct, there are cases when it is invalid, e.g. after
- /// removing a pool, restarting or changing allocation algorithms. For
- /// that purpose it should be only considered a help that should not be
- /// fully trusted.
- asiolink::IOAddress last_allocated_address_;
-
- /// @brief Last allocated temporary address.
- ///
- /// See @ref last_allocated_address_ for details.
- asiolink::IOAddress last_allocated_ta_;
-
- /// @brief Last allocated IPv6 prefix.
- ///
- /// See @ref last_allocated_address_ for details.
- asiolink::IOAddress last_allocated_pd_;
+ /// This is the last allocated address or delegated prefix that was
+ /// previously allocated from the particular subnet. It should be
+ /// noted that although the value is usually correct, there are
+ /// cases when it is invalid, e.g. after removing a pool,
+ /// restarting or changing allocation algorithms. For that purpose
+ /// it should be only considered a help that should not be fully
+ /// trusted.
+ asiolink::IOAddress last_allocated_;
};
/// @brief Forward declaration of the @c PoolIterativeAllocationState.