///
/// @return Vector containing leases for the specified address.
std::vector<Lease6>
- getLeasesByAddress(const asiolink::IOAddress& address) const;
+ getLeasesByAddress(const asiolink::IOAddress& address) const;
/// @brief Returns leases belonging to specified address range.
///
///
/// @return Vector containing leases belonging to specified address range.
std::vector<Lease6>
- getLeasesByAddressRange(const asiolink::IOAddress& first,
- const asiolink::IOAddress& second) const;
+ getLeasesByAddressRange(const asiolink::IOAddress& first,
+ const asiolink::IOAddress& second) const;
/// @brief Returns leases belonging to prefix pool.
///
///
/// @return Vector containing leases belonging to specified prefix pool.
std::vector<Lease6>
- getLeasesByPrefixPool(const asiolink::IOAddress& prefix,
- const uint8_t prefix_len,
- const uint8_t delegated_len) const;
+ getLeasesByPrefixPool(const asiolink::IOAddress& prefix,
+ const uint8_t prefix_len,
+ const uint8_t delegated_len) const;
/// @brief Checks if client has lease for the specified address.
///
const uint8_t prefix_len,
const uint8_t delegated_len) const;
+ /// @brief Checks if client has a lease with zero lifetimes for a prefix.
+ ///
+ /// @param prefix Prefix.
+ /// @param prefix_len Prefix length.
+ ///
+ /// @return true if client has a lease with zero lifetimes for a prefix.
bool hasLeaseWithZeroLifetimeForPrefix(const asiolink::IOAddress& prefix,
const uint8_t prefix_len) const;