diff options
author | Marcin Siodelski <marcin@isc.org> | 2015-10-12 18:05:24 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2015-10-12 18:05:24 +0200 |
commit | fdc6d42b7a05d28a4ddb0d4575fd7c9942a78001 (patch) | |
tree | dc41a32752249f1c660dba10b6311682f7cf851e /src/lib/dhcpsrv/cfg_expiration.h | |
parent | [3975] Updated default Kea configuration file with expiration config. (diff) | |
download | kea-fdc6d42b7a05d28a4ddb0d4575fd7c9942a78001.tar.xz kea-fdc6d42b7a05d28a4ddb0d4575fd7c9942a78001.zip |
[3975] Support for unwarned-reclaim-cycles parameter added.
Diffstat (limited to 'src/lib/dhcpsrv/cfg_expiration.h')
-rw-r--r-- | src/lib/dhcpsrv/cfg_expiration.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/dhcpsrv/cfg_expiration.h b/src/lib/dhcpsrv/cfg_expiration.h index 67fe6be069..0474440023 100644 --- a/src/lib/dhcpsrv/cfg_expiration.h +++ b/src/lib/dhcpsrv/cfg_expiration.h @@ -227,7 +227,7 @@ public: /// are implemented. template<typename Instance> void setupTimers(void (Instance::*reclaim_fun)(const size_t, const uint16_t, - const bool), + const bool, const uint16_t), void (Instance::*delete_fun)(const uint32_t), Instance* instance_ptr) const; @@ -284,8 +284,9 @@ typedef boost::shared_ptr<const CfgExpiration> ConstCfgExpirationPtr; template<typename Instance> void CfgExpiration::setupTimers(void (Instance::*reclaim_fun)(const size_t, - const uint16_t, - const bool), + const uint16_t, + const bool, + const uint16_t), void (Instance::*delete_fun)(const uint32_t), Instance* instance_ptr) const { // One of the parameters passed to the leases' reclamation routine @@ -307,7 +308,8 @@ CfgExpiration::setupTimers(void (Instance::*reclaim_fun)(const size_t, boost::bind(reclaim_fun, instance_ptr, getMaxReclaimLeases(), getMaxReclaimTime(), - flush_timer_disabled), + flush_timer_disabled, + getUnwarnedReclaimCycles()), reclaim_interval, asiolink::IntervalTimer::ONE_SHOT); timer_mgr_->setup(RECLAIM_EXPIRED_TIMER_NAME); |