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