summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/lease.h
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2015-09-22 20:36:47 +0200
committerTomek Mrugalski <tomasz@isc.org>2015-09-22 20:36:47 +0200
commit664ac1eabaeea7fda4a53e2a2a32b21076bbb128 (patch)
tree79507098a3f5f4485259d59e7a09adbb932752e5 /src/lib/dhcpsrv/lease.h
parent[master] Merge branch 'trac3973' (diff)
downloadkea-664ac1eabaeea7fda4a53e2a2a32b21076bbb128.tar.xz
kea-664ac1eabaeea7fda4a53e2a2a32b21076bbb128.zip
[3984] Declined IPv4 leases reclaimation implemented
Diffstat (limited to 'src/lib/dhcpsrv/lease.h')
-rw-r--r--src/lib/dhcpsrv/lease.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/lease.h b/src/lib/dhcpsrv/lease.h
index 18d19be29c..a8b65be51a 100644
--- a/src/lib/dhcpsrv/lease.h
+++ b/src/lib/dhcpsrv/lease.h
@@ -177,6 +177,11 @@ struct Lease {
/// otherwise.
bool stateExpiredReclaimed() const;
+ /// @brief Indicates if the lease is in the "declined" state.
+ ///
+ /// @return true if the lease is in the "declined" state, false otherwise.
+ bool stateDeclined() const;
+
/// @brief Returns true if the other lease has equal FQDN data.
///
/// @param other Lease which FQDN data is to be compared with our lease.