Kea 3.1.7
lease_mgr.cc File Reference
#include <config.h>
#include <cc/command_interpreter.h>
#include <dhcp/libdhcp++.h>
#include <dhcp/option_custom.h>
#include <dhcpsrv/cfgmgr.h>
#include <dhcpsrv/dhcpsrv_log.h>
#include <dhcpsrv/lease_mgr.h>
#include <exceptions/exceptions.h>
#include <stats/stats_mgr.h>
#include <util/encode/encode.h>
#include <util/str.h>
#include <boost/algorithm/string.hpp>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <sstream>
#include <string>
#include <time.h>
Include dependency graph for lease_mgr.cc:

Go to the source code of this file.

Namespaces

namespace  isc
 Defines the logger used by the top-level component of kea-lfc.
namespace  isc::dhcp

Macros

#define STATE_MASK(new_state, old_state)
 Creates a mask out of two states: new state and old state.

Variables

constexpr uint16_t isc::dhcp::ASSIGNED_ASSIGNED
 Constant expression state masks for use in switch statements.
constexpr uint16_t isc::dhcp::ASSIGNED_DECLINED
constexpr uint16_t isc::dhcp::ASSIGNED_RECLAIMED
constexpr uint16_t isc::dhcp::ASSIGNED_REGISTERED
constexpr uint16_t isc::dhcp::ASSIGNED_RELEASED
constexpr uint16_t isc::dhcp::DECLINED_ASSIGNED
constexpr uint16_t isc::dhcp::DECLINED_DECLINED
constexpr uint16_t isc::dhcp::DECLINED_RECLAIMED
constexpr uint16_t isc::dhcp::DECLINED_REGISTERED
constexpr uint16_t isc::dhcp::DECLINED_RELEASED
constexpr uint16_t isc::dhcp::RECLAIMED_ASSIGNED
constexpr uint16_t isc::dhcp::RECLAIMED_DECLINED
constexpr uint16_t isc::dhcp::RECLAIMED_REGISTERED
constexpr uint16_t isc::dhcp::REGISTERED_ASSIGNED = STATE_MASK(Lease::STATE_REGISTERED, Lease::STATE_DEFAULT)
constexpr uint16_t isc::dhcp::REGISTERED_DECLINED
constexpr uint16_t isc::dhcp::REGISTERED_RECLAIMED
constexpr uint16_t isc::dhcp::REGISTERED_REGISTERED
constexpr uint16_t isc::dhcp::REGISTERED_RELEASED
constexpr uint16_t isc::dhcp::RELEASED_ASSIGNED
constexpr uint16_t isc::dhcp::RELEASED_DECLINED
constexpr uint16_t isc::dhcp::RELEASED_REGISTERED

Macro Definition Documentation

◆ STATE_MASK

#define STATE_MASK ( new_state,
old_state )
Value:
((new_state << 4) | old_state)

Creates a mask out of two states: new state and old state.

Definition at line 1440 of file lease_mgr.cc.

Referenced by isc::dhcp::LeaseMgr::updateStatsOnUpdate(), and isc::dhcp::LeaseMgr::updateStatsOnUpdate().