address. The allocation engine will try to offer this address to
the client.
-% ALLOC_ENGINE_V4_RECLAIMED_LEASES_DELETE begin deletion of reclaimed leases expired more than %1 seconds ago
-This debug message is issued when the allocation engine begins
-deletion of the reclaimed leases which have expired more than
-a specified number of seconds ago. This operation is triggered
-periodically according to the "flush-reclaimed-timer-wait-time"
-parameter. The "hold-reclaimed-time" parameter defines a number
-of seconds for which the leases are stored before they are
-removed.
-
-% ALLOC_ENGINE_V4_RECLAIMED_LEASES_DELETE_COMPLETE successfully deleted %1 expired-reclaimed leases
-This debug message is issued when the server successfully deletes
-"expired-reclaimed" leases from the lease database. The number of
-deleted leases is included in the log message.
-
-% ALLOC_ENGINE_V4_RECLAIMED_LEASES_DELETE_FAILED deletion of expired-reclaimed leases failed: %1
-This error message is issued when the deletion of "expired-reclaimed"
-leases from the database failed. The error message is appended to
-the log message.
-
% ALLOC_ENGINE_V4_LEASE_RECLAMATION_FAILED failed to reclaim the lease %1: %2
This error message is logged when the allocation engine fails to
reclaim an expired lease. The reason for the failure is included in the
when: (a) client doesn't have any reservations, (b) client has
reservation but the reserved address is leased to another client.
+% ALLOC_ENGINE_V4_RECLAIMED_LEASES_DELETE begin deletion of reclaimed leases expired more than %1 seconds ago
+This debug message is issued when the allocation engine begins
+deletion of the reclaimed leases which have expired more than
+a specified number of seconds ago. This operation is triggered
+periodically according to the "flush-reclaimed-timer-wait-time"
+parameter. The "hold-reclaimed-time" parameter defines a number
+of seconds for which the leases are stored before they are
+removed.
+
+% ALLOC_ENGINE_V4_RECLAIMED_LEASES_DELETE_COMPLETE successfully deleted %1 expired-reclaimed leases
+This debug message is issued when the server successfully deletes
+"expired-reclaimed" leases from the lease database. The number of
+deleted leases is included in the log message.
+
+% ALLOC_ENGINE_V4_RECLAIMED_LEASES_DELETE_FAILED deletion of expired-reclaimed leases failed: %1
+This error message is issued when the deletion of "expired-reclaimed"
+leases from the database failed. The error message is appended to
+the log message.
+
% ALLOC_ENGINE_V4_REQUEST_ADDRESS_RESERVED %1: requested address %2 is reserved
This message is issued when the allocation engine refused to
allocate address requested by the client because this
/// @brief Test that leases can be reclaimed without being removed.
void testReclaimExpiredLeasesUpdateState() {
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Mark leases with even indexes as expired.
if (evenLeaseIndex(i)) {
// The higher the index, the more expired the lease.
/// @brief Test that the leases may be reclaimed by being deleted.
void testReclaimExpiredLeasesDelete() {
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Mark leases with even indexes as expired.
if (evenLeaseIndex(i)) {
// The higher the index, the more expired the lease.
/// @brief Test that it is possible to specify the limit for the number
/// of reclaimed leases.
void testReclaimExpiredLeasesLimit() {
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Mark all leaes as expired. The higher the index the less
// expired the lease.
expire(i, 1000 - i);
BOOST_STATIC_ASSERT(TEST_LEASES_NUM % reclamation_group_size == 0);
// Leases will be reclaimed in groups of 10.
- for (int i = reclamation_group_size; i < TEST_LEASES_NUM;
+ for (unsigned int i = reclamation_group_size; i < TEST_LEASES_NUM;
i += reclamation_group_size) {
// Reclaim 10 most expired leases out of TEST_LEASES_NUM. Since
// DNS must be started for the D2 client to accept NCRs.
ASSERT_NO_THROW(enableDDNS());
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Expire all leases with even indexes.
if (evenLeaseIndex(i)) {
// The higher the index, the more expired the lease.
// DNS must be started for the D2 client to accept NCRs.
ASSERT_NO_THROW(enableDDNS());
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Expire only leases with even indexes.
if (evenLeaseIndex(i)) {
// The higher the index, the more expired the lease.
BOOST_STATIC_ASSERT(TEST_LEASES_NUM % reclamation_group_size == 0);
// Leases will be reclaimed in groups of 10
- for (int i = 10; i < TEST_LEASES_NUM; i += reclamation_group_size) {
+ for (unsigned int i = 10; i < TEST_LEASES_NUM; i += reclamation_group_size) {
// Reclaim 10 most expired leases. Note that the leases with the
// higher index are more expired. For example, if the
// TEST_LEASES_NUM is equal to 100, the most expired lease will
/// @brief This test verfies that callouts are executed for each expired
/// lease when installed.
void testReclaimExpiredLeasesHooks() {
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
if (evenLeaseIndex(i)) {
expire(i, 1000 - i);
}
/// @brief This test verfies that callouts are executed for each expired
/// lease and that the lease is not reclaimed when skip flag is set.
void testReclaimExpiredLeasesHooksWithSkip() {
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
if (evenLeaseIndex(i)) {
expire(i, 1000 - i);
}
/// the execution of the lease reclamation routine.
void testReclaimExpiredLeasesTimeout(const uint16_t timeout) {
// Leases are segregated from the most expired to the least expired.
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
expire(i, 2000 - i);
}
/// @brief This test verifies that expired-reclaimed leases are removed
/// from the lease database.
void testDeleteExpiredReclaimedLeases() {
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Mark leases with even indexes as expired.
if (evenLeaseIndex(i)) {
// The higher the index, the more expired the lease.
// This test requires that the number of leases is an even number.
BOOST_STATIC_ASSERT(TEST_LEASES_NUM % 2 == 0);
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Mark all leaes as expired. The higher the index the less
// expired the lease.
expire(i, 1000 - i);
// Leases will be reclaimed in groups of 8.
const size_t reclamation_group_size = 8;
- for (int i = reclamation_group_size; i < TEST_LEASES_NUM;
+ for (unsigned int i = reclamation_group_size; i < TEST_LEASES_NUM;
i += reclamation_group_size) {
// Reclaim 8 most expired leases out of TEST_LEASES_NUM.
// DNS must be started for the D2 client to accept NCRs.
ASSERT_NO_THROW(enableDDNS());
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Set client identifiers for leases with even indexes only.
if (evenLeaseIndex(i)) {
setUniqueClientId(i);
// This test requires that the number of leases is an even number.
BOOST_STATIC_ASSERT(TEST_LEASES_NUM % 2 == 0);
- for (int i = 0; i < TEST_LEASES_NUM; ++i) {
+ for (unsigned int i = 0; i < TEST_LEASES_NUM; ++i) {
// Mark all leaes as expired. The higher the index the less
// expired the lease.
expire(i, 1000 - i);
// Leases will be reclaimed in groups of 8.
const size_t reclamation_group_size = 8;
- for (int i = reclamation_group_size; i < TEST_LEASES_NUM;
+ for (unsigned int i = reclamation_group_size; i < TEST_LEASES_NUM;
i += reclamation_group_size) {
// Reclaim 8 most expired leases out of TEST_LEASES_NUM.