OID_BOOL, OID_BOOL, OID_VARCHAR, OID_INT8, OID_TEXT, OID_BYTEA,
OID_BYTEA, OID_INT8, OID_INT8, OID_TIMESTAMP },
- "slfqUpdateLease4",
+ "sflqUpdateLease4",
"SELECT sflqUpdateLease4($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)" },
// SLQ_DELETE_LEASE4
OID_INT2, OID_INT4, OID_INT2, OID_BOOL, OID_BOOL, OID_VARCHAR,
OID_BYTEA, OID_INT2, OID_INT2,
OID_INT8, OID_TEXT, OID_INT8, OID_TEXT, OID_TIMESTAMP },
- "slfqUpdateLease6",
+ "sflqUpdateLease6",
"SELECT sflqUpdateLease6(cast($1 as inet), $2, $3, $4, $5, $6, $7, $8, $9, "
"$10, $11, $12, $13, $14, $15, $16, $17, $18, "
"cast($19 as inet), $20)" },
/// @brief Ensures address pair are both v4 and start <= end
///
-/// @param addr input address
-/// @param addr input address
+/// @param start input start address
+/// @param end input end address
///
/// @throw BadValue if either address is not v4 or start > end
void validateV4Range(const IOAddress& start, const IOAddress& end);
/// @brief Ensures address pair are both v6 and start <= end
///
-/// @param addr input address
-/// @param addr input address
+/// @param start input start address
+/// @param end input end address
///
/// @throw BadValue if either address is not v6 or start > end
void validateV6Range(const IOAddress& start, const IOAddress& end);
/// and (re)populates the pool.
///
/// @param start_address first address in the pool.
- /// @param last_address last address in the pool.
+ /// @param end_address last address in the pool.
/// @param subnet_id id of the subnet to which the pool belongs.
/// @param recreate when true, the pool is recreated if it already exits.
///
/// conflicts.
///
/// @param start_address first address in the pool.
- /// @param last_address last address in the pool.
+ /// @param end_address last address in the pool.
///
/// @return A free V4 address or IOAddress::IPV4_ZERO_ADDRESS().
virtual asiolink::IOAddress sflqPickFreeLease4(asiolink::IOAddress start_address,
/// @brief Calls stored procedure to create an SFLQ pool for v6.
///
/// @param start_address first address/prefix in the pool.
- /// @param last_address last address/prefix in the pool.
+ /// @param end_address last address/prefix in the pool.
/// @param lease_type TYPE_NA or TYPE_PD.
/// @param delegated_len bit length of the address/prefix to be leases. For
/// TYPE_NA this parameter should be 128.
/// Note the returned address/prefix must still be checked for HR conflicts.
///
/// @param start_address first address in the pool.
- /// @param last_address last address in the pool.
+ /// @param end_address last address in the pool.
///
/// @return A free V6 address/prefix or IOAddress::IPV6_ZERO_ADDRESS().
virtual asiolink::IOAddress sflqPickFreeLease6(asiolink::IOAddress start_address,
///
/// @param lease v4 lease to test
///
- /// @return true if SLFQ is in use in this config and the lease's subnet uses
+ /// @return true if SFLQ is in use in this config and the lease's subnet uses
/// SFLQ allocation
static bool useSharedFlqStatement(Lease4Ptr lease);
///
/// @param lease v6 lease to test
///
- /// @return true if SLFQ is in use in this config and the lease's subnet uses
+ /// @return true if SFLQ is in use in this config and the lease's subnet uses
/// SFLQ allocation for the lease's lease type.
static bool useSharedFlqStatement(Lease6Ptr lease);
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#ifndef SFQL_ALLOCATION_STATE_H
-#define SFQL_ALLOCATION_STATE_H
+#ifndef SFLQ_ALLOCATION_STATE_H
+#define SFLQ_ALLOCATION_STATE_H
#include <asiolink/io_address.h>
#include <dhcpsrv/allocation_state.h>
} // end of namespace isc::dhcp
} // end of namespace isc
-#endif // SFQL_ALLOCATION_STATE_H
+#endif // SFLQ_ALLOCATION_STATE_H
/// pool rather than one query * the total number of addresses in the
/// pools.
///
-/// The SLFQ data tracks the last address picked for each SFLQ pool such
+/// The SFLQ data tracks the last address picked for each SFLQ pool such
/// that consecutive queries for the same pool will return a different
/// free address. This should minimize conflicts with other servers until
/// the number of free addresses approaches zero.
/// @brief Returns the allocator type string.
///
- /// @return flq string.
+ /// @return shared-flq string.
virtual std::string getType() const {
return ("shared-flq");
}
EXPECT_EQ(exp_remote_id, remote_id);
}
-// Verifies SfqlPoolInfo::toElement() function.
+// Verifies SflqPoolInfo::toElement() function.
TEST(SflqPoolInfo, toElement) {
SflqPoolInfo info;
info.lease_type_ = Lease::TYPE_V4;
/// @brief Destructor
virtual ~SflqTestLeaseMgr();
- /// @brief Factory for creating a SlfqTestLeaseMgr.
+ /// @brief Factory for creating a SflqTestLeaseMgr.
///
/// The only required parameters are "type=sflqtest" adn "universe=4"
/// or "universe=6".