7 #ifndef SANITY_CHECKER_H
8 #define SANITY_CHECKER_H
66 template<
typename LeaseType,
typename SubnetsType>
68 const SubnetsType& subnets);
77 template<
typename LeaseType,
typename SubnetsType>
78 SubnetID findSubnetId(
const LeaseType& lease,
const SubnetsType& subnets);
static bool leaseCheckingEnabled(bool current=true)
Indicates the specified configuration enables lease sanity checking.
boost::shared_ptr< CfgConsistency > CfgConsistencyPtr
Type used to for pointing to CfgConsistency structure.
Code used to conduct various sanity checks.
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
Defines the logger used by the top-level component of kea-dhcp-ddns.
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
void checkLease(Lease4Ptr &lease, bool current=true)
Sanity checks and possibly corrects an IPv4 lease.
uint32_t SubnetID
Unique identifier for a subnet (both v4 and v6)