Kea 2.7.4
dhcp_parsers.h
Go to the documentation of this file.
1// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef DHCP_PARSERS_H
8#define DHCP_PARSERS_H
9
10#include <asiolink/io_address.h>
11#include <cc/data.h>
15#include <dhcpsrv/cfg_iface.h>
16#include <dhcpsrv/cfg_option.h>
17#include <dhcpsrv/network.h>
18#include <dhcpsrv/subnet.h>
21#include <dhcpsrv/srv_config.h>
24#include <cc/simple_parser.h>
26#include <util/optional.h>
27
28#include <boost/shared_ptr.hpp>
29
30#include <stdint.h>
31#include <string>
32#include <vector>
33
34namespace isc {
35namespace dhcp {
36
39typedef OptionSpaceContainer<OptionContainer, OptionDescriptor,
40 std::string> OptionStorage;
42typedef boost::shared_ptr<OptionStorage> OptionStoragePtr;
43
55template<typename ValueType>
57public:
69 void setParam(const std::string& name, const ValueType& value,
70 const data::Element::Position& position) {
71 values_[name] = value;
72 positions_[name] = position;
73 }
74
83 ValueType getParam(const std::string& name) const {
84 typename std::map<std::string, ValueType>::const_iterator param
85 = values_.find(name);
86
87 if (param == values_.end()) {
88 isc_throw(DhcpConfigError, "Missing parameter '"
89 << name << "'");
90 }
91
92 return (param->second);
93 }
94
109 getPosition(const std::string& name, const data::ConstElementPtr parent =
110 data::ConstElementPtr()) const {
111 typename std::map<std::string, data::Element::Position>::const_iterator
112 pos = positions_.find(name);
113 if (pos == positions_.end()) {
114 return (parent ? parent->getPosition() :
116 }
117
118 return (pos->second);
119 }
120
131 ValueType getOptionalParam(const std::string& name,
132 const ValueType& default_value) const {
133 typename std::map<std::string, ValueType>::const_iterator param
134 = values_.find(name);
135
136 if (param == values_.end()) {
137 return (default_value);
138 }
139
140 return (param->second);
141 }
142
149 void delParam(const std::string& name) {
150 values_.erase(name);
151 positions_.erase(name);
152 }
153
156 void clear() {
157 values_.clear();
158 positions_.clear();
159 }
160
161private:
163 std::map<std::string, ValueType> values_;
164
170 std::map<std::string, data::Element::Position> positions_;
171
172};
173
175typedef std::pair<std::string, isc::data::ConstElementPtr> ConfigPair;
176
178typedef ValueStorage<uint32_t> Uint32Storage;
179typedef boost::shared_ptr<Uint32Storage> Uint32StoragePtr;
180
182typedef ValueStorage<std::string> StringStorage;
183typedef boost::shared_ptr<StringStorage> StringStoragePtr;
184
186typedef ValueStorage<bool> BooleanStorage;
187typedef boost::shared_ptr<BooleanStorage> BooleanStoragePtr;
188
196public:
204 void parse(CfgMACSource& mac_sources, isc::data::ConstElementPtr value);
205};
206
212public:
222 void parse(SrvConfig& srv_cfg, isc::data::ConstElementPtr value);
223};
224
229public:
233 OptionDefParser(const uint16_t address_family);
234
242
243private:
245 uint16_t address_family_;
246};
247
255public:
259 OptionDefListParser(const uint16_t address_family);
260
270
271private:
273 uint16_t address_family_;
274};
275
280typedef std::vector<PoolPtr> PoolStorage;
281typedef boost::shared_ptr<PoolStorage> PoolStoragePtr;
282
291public:
292
294 virtual ~PoolParser() {
295 }
296
308 virtual void parse(PoolStoragePtr pools,
309 isc::data::ConstElementPtr pool_structure,
310 const uint16_t address_family,
311 bool encapsulate_options = true);
312
313protected:
320 virtual PoolPtr poolMaker(isc::asiolink::IOAddress &addr, uint32_t len,
321 int32_t ptype = 0) = 0;
322
331 int32_t ptype = 0) = 0;
332
342 virtual boost::shared_ptr<OptionDataListParser>
343 createOptionDataListParser(const uint16_t address_family) const;
344};
345
354class Pool4Parser : public PoolParser {
355protected:
363 PoolPtr poolMaker (asiolink::IOAddress &addr, uint32_t len,
364 int32_t ignored);
365
374 int32_t ignored);
375};
376
383public:
384
387 }
388
398 virtual void parse(PoolStoragePtr pools,
400 bool encapsulate_options) = 0;
401
402protected:
403
411 virtual boost::shared_ptr<PoolParser> createPoolConfigParser() const = 0;
412};
413
416public:
417
427 void parse(PoolStoragePtr pools, data::ConstElementPtr pools_list,
428 bool encapsulate_options = true);
429
430protected:
431
439 virtual boost::shared_ptr<PoolParser> createPoolConfigParser() const;
440};
441
450public:
451
454 explicit RelayInfoParser(const isc::dhcp::Option::Universe& family);
455
470 void parse(const isc::dhcp::Network::RelayInfoPtr& relay_info,
471 isc::data::ConstElementPtr relay_elem);
472
483 void addAddress(const std::string& name, const std::string& address_str,
485 const isc::dhcp::Network::RelayInfoPtr& relay_info);
486private:
487
489 Option::Universe family_;
490};
491
513public:
514
520 explicit SubnetConfigParser(uint16_t family, bool check_iface = true);
521
524
525protected:
538 bool encapsulate_options);
539
547 isc::asiolink::IOAddress addr, uint8_t len) = 0;
548
549protected:
550
557
565 virtual boost::shared_ptr<OptionDataListParser> createOptionDataListParser() const;
566
574 virtual boost::shared_ptr<PoolsListParser>
576
579
582
585
588
591};
592
600public:
607 Subnet4ConfigParser(bool check_iface = true);
608
617 bool encapsulate_options = true);
618
619protected:
620
628 asiolink::IOAddress addr, uint8_t len);
629
635 void validateResv(const Subnet4Ptr& subnet, ConstHostPtr host);
636
644 virtual boost::shared_ptr<PoolsListParser>
645 createPoolsListParser() const;
646};
647
654public:
655
660 Subnets4ListConfigParser(bool check_iface = true);
661
664 }
665
677 size_t parse(SrvConfigPtr cfg, data::ConstElementPtr subnets_list,
678 bool encapsulate_options = true);
679
687 size_t parse(Subnet4Collection& subnets,
688 data::ConstElementPtr subnets_list,
689 bool encapsulate_options = true);
690
691protected:
692
700 virtual boost::shared_ptr<Subnet4ConfigParser> createSubnetConfigParser() const;
701
704};
705
714class Pool6Parser : public PoolParser {
715protected:
724 PoolPtr poolMaker (asiolink::IOAddress &addr, uint32_t len, int32_t ptype);
725
735 int32_t ptype);
736};
737
740public:
741
751 void parse(PoolStoragePtr pools, data::ConstElementPtr pools_list,
752 bool encapsulate_options = true);
753
754protected:
755
763 virtual boost::shared_ptr<PoolParser> createPoolConfigParser() const;
764};
765
784public:
785
788 PdPoolParser();
789
791 virtual ~PdPoolParser() {
792 }
793
806 void parse(PoolStoragePtr pools, data::ConstElementPtr pd_pool_,
807 bool encapsulate_options = true);
808
809protected:
810
818 virtual boost::shared_ptr<OptionDataListParser>
820
823
828
833};
834
841public:
842
845 }
846
857 void parse(PoolStoragePtr pools, data::ConstElementPtr pd_pool_list);
858
859protected:
860
868 virtual boost::shared_ptr<PdPoolParser>
870};
871
879public:
880
887 Subnet6ConfigParser(bool check_iface = true);
888
897 bool encapsulate_options = true);
898
899protected:
907 virtual void duplicateOptionWarning(uint32_t code,
908 asiolink::IOAddress& addr);
909
917 isc::asiolink::IOAddress addr, uint8_t len);
918
924 void validateResvs(const Subnet6Ptr& subnet, ConstHostPtr host);
925
933 virtual boost::shared_ptr<PoolsListParser>
934 createPoolsListParser() const;
935
943 virtual boost::shared_ptr<PdPoolsListParser>
945};
946
947
954public:
955
960 Subnets6ListConfigParser(bool check_iface = true);
961
964 }
965
978 size_t parse(SrvConfigPtr cfg, data::ConstElementPtr subnets_list,
979 bool encapsulate_options = true);
980
989 size_t parse(Subnet6Collection& subnets,
990 data::ConstElementPtr subnets_list,
991 bool encapsulate_options = true);
992
993protected:
994
1002 virtual boost::shared_ptr<Subnet6ConfigParser> createSubnetConfigParser() const;
1003
1006};
1007
1014public:
1015
1033
1036
1043 // to ElementPtr)
1045 static size_t setAllDefaults(isc::data::ConstElementPtr d2_config);
1046
1047private:
1048
1057 getProtocol(isc::data::ConstElementPtr scope, const std::string& name);
1058
1067 getFormat(isc::data::ConstElementPtr scope, const std::string& name);
1068
1077 getMode(isc::data::ConstElementPtr scope, const std::string& name);
1078};
1079
1081public:
1087};
1088
1089} // end of isc::dhcp namespace
1090} // end of isc namespace
1091
1092#endif // DHCP_PARSERS_H
static const Position & ZERO_POSITION()
Returns Position object with line_ and pos_ set to 0, and with an empty file name.
Definition data.h:126
Common configuration parser for shared networks and subnets.
Wrapper class that holds MAC/hardware address sources.
void parse(isc::data::ConstElementPtr cfg, isc::dhcp::SrvConfig &srv_cfg)
Parse compatibility flags.
Parser for the control-sockets structure.
void parse(SrvConfig &srv_cfg, isc::data::ConstElementPtr value)
"Parses" control-sockets structure
Parser for D2ClientConfig.
D2ClientConfigPtr parse(isc::data::ConstElementPtr d2_client_cfg)
Parses a given dhcp-ddns element into D2ClientConfig.
static const isc::data::SimpleDefaults D2_CLIENT_CONFIG_DEFAULTS
Defaults for the D2 client configuration.
static size_t setAllDefaults(isc::data::ConstElementPtr d2_config)
Sets all defaults for D2 client configuration.
ReplaceClientNameMode
Defines the client name replacement modes.
To be removed. Please use ConfigError instead.
parser for MAC/hardware acquisition sources
void parse(CfgMACSource &mac_sources, isc::data::ConstElementPtr value)
parses parameters value
boost::shared_ptr< Network::RelayInfo > RelayInfoPtr
Pointer to the RelayInfo structure.
Definition network.h:210
Parser for a list of option definitions.
OptionDefListParser(const uint16_t address_family)
Constructor.
void parse(CfgOptionDefPtr cfg, isc::data::ConstElementPtr def_list)
Parses a list of option definitions, create them and store in cfg.
Parser for a single option definition.
OptionDefinitionPtr parse(isc::data::ConstElementPtr option_def)
Parses an entry that describes single option definition.
OptionDefParser(const uint16_t address_family)
Constructor.
Universe
defines option universe DHCPv4 or DHCPv6
Definition option.h:90
Parser for IPv6 prefix delegation definitions.
virtual boost::shared_ptr< OptionDataListParser > createOptionDataListParser() const
Returns an instance of the OptionDataListParser to be used in parsing the option-data structure.
isc::data::ConstElementPtr user_context_
User context (optional, may be null)
void parse(PoolStoragePtr pools, data::ConstElementPtr pd_pool_, bool encapsulate_options=true)
Builds a prefix delegation pool from the given configuration.
virtual ~PdPoolParser()
Virtual destructor.
isc::dhcp::Pool6Ptr pool_
Pointer to the created pool object.
isc::data::ConstElementPtr client_class_
Client class (a client has to belong to to use this pd-pool)
Parser for a list of prefix delegation pools.
virtual boost::shared_ptr< PdPoolParser > createPdPoolConfigParser() const
Returns an instance of the PdPoolParser to be used in parsing the prefix delegation pools.
virtual ~PdPoolsListParser()
Virtual destructor.
void parse(PoolStoragePtr pools, data::ConstElementPtr pd_pool_list)
Parse configuration entries.
Parser for IPv4 pool definitions.
PoolPtr poolMaker(asiolink::IOAddress &addr, uint32_t len, int32_t ignored)
Creates a Pool4 object given a IPv4 prefix and the prefix length.
Parser for IPv6 pool definitions.
PoolPtr poolMaker(asiolink::IOAddress &addr, uint32_t len, int32_t ptype)
Creates a Pool6 object given a IPv6 prefix and the prefix length.
parser for a single pool definition
virtual PoolPtr poolMaker(isc::asiolink::IOAddress &min, isc::asiolink::IOAddress &max, int32_t ptype=0)=0
Creates a Pool object given starting and ending IP addresses.
virtual PoolPtr poolMaker(isc::asiolink::IOAddress &addr, uint32_t len, int32_t ptype=0)=0
Creates a Pool object given a IPv4 prefix and the prefix length.
virtual void parse(PoolStoragePtr pools, isc::data::ConstElementPtr pool_structure, const uint16_t address_family, bool encapsulate_options=true)
parses the actual structure
virtual boost::shared_ptr< OptionDataListParser > createOptionDataListParser(const uint16_t address_family) const
Returns an instance of the OptionDataListParser to be used in parsing the option-data structure.
virtual ~PoolParser()
destructor.
Specialization of the pool list parser for DHCPv4.
void parse(PoolStoragePtr pools, data::ConstElementPtr pools_list, bool encapsulate_options=true)
parses the actual structure
virtual boost::shared_ptr< PoolParser > createPoolConfigParser() const
Returns an instance of the Pool4Parser to be used in parsing the address pools.
Specialization of the pool list parser for DHCPv6.
void parse(PoolStoragePtr pools, data::ConstElementPtr pools_list, bool encapsulate_options=true)
parses the actual structure
virtual boost::shared_ptr< PoolParser > createPoolConfigParser() const
Returns an instance of the Pool6Parser to be used in parsing the address pools.
Parser for a list of pools.
virtual boost::shared_ptr< PoolParser > createPoolConfigParser() const =0
Returns an instance of the PoolParser to be used in parsing the address pools.
virtual ~PoolsListParser()
destructor.
virtual void parse(PoolStoragePtr pools, isc::data::ConstElementPtr pools_list, bool encapsulate_options)=0
parses the actual structure
parser for additional relay information
RelayInfoParser(const isc::dhcp::Option::Universe &family)
constructor
void addAddress(const std::string &name, const std::string &address_str, isc::data::ConstElementPtr relay_elem, const isc::dhcp::Network::RelayInfoPtr &relay_info)
Attempts to add an IP address to list of relay addresses.
void parse(const isc::dhcp::Network::RelayInfoPtr &relay_info, isc::data::ConstElementPtr relay_elem)
parses the actual relay parameters
Specifies current DHCP configuration.
Definition srv_config.h:185
Subnet4ConfigParser(bool check_iface=true)
Constructor.
virtual boost::shared_ptr< PoolsListParser > createPoolsListParser() const
Returns an instance of the Pools4ListParser to be used in parsing the address pools.
void validateResv(const Subnet4Ptr &subnet, ConstHostPtr host)
Verifies the host reservation address is in the subnet range.
void initSubnet(data::ConstElementPtr params, asiolink::IOAddress addr, uint8_t len)
Instantiates the IPv4 Subnet based on a given IPv4 address and prefix length.
Subnet4Ptr parse(data::ConstElementPtr subnet, bool encapsulate_options=true)
Parses a single IPv4 subnet configuration and adds to the Configuration Manager.
virtual boost::shared_ptr< PoolsListParser > createPoolsListParser() const
Returns an instance of the Pools6ListParser to be used in parsing the address pools.
virtual boost::shared_ptr< PdPoolsListParser > createPdPoolsListParser() const
Returns an instance of the PdPools6ListParser to be used in parsing the prefix delegation pools.
Subnet6Ptr parse(data::ConstElementPtr subnet, bool encapsulate_options=true)
Parses a single IPv6 subnet configuration and adds to the Configuration Manager.
void initSubnet(isc::data::ConstElementPtr params, isc::asiolink::IOAddress addr, uint8_t len)
Instantiates the IPv6 Subnet based on a given IPv6 address and prefix length.
virtual void duplicateOptionWarning(uint32_t code, asiolink::IOAddress &addr)
Issues a DHCP6 server specific warning regarding duplicate subnet options.
void validateResvs(const Subnet6Ptr &subnet, ConstHostPtr host)
Verifies host reservation addresses are in the subnet range.
Subnet6ConfigParser(bool check_iface=true)
Constructor.
this class parses a single subnet
virtual boost::shared_ptr< PoolsListParser > createPoolsListParser() const =0
Returns an instance of the PoolsListParser to be used in parsing the address pools.
SubnetConfigParser(uint16_t family, bool check_iface=true)
constructor
isc::dhcp::SubnetPtr subnet_
Pointer to the created subnet object.
void createSubnet(isc::data::ConstElementPtr data)
Create a new subnet using a data from child parsers.
virtual void initSubnet(isc::data::ConstElementPtr params, isc::asiolink::IOAddress addr, uint8_t len)=0
Instantiates the subnet based on a given IP prefix and prefix length.
isc::dhcp::Network::RelayInfoPtr relay_info_
Pointer to relay information.
virtual ~SubnetConfigParser()
virtual destructor (does nothing)
uint16_t address_family_
Address family: AF_INET or AF_INET6.
SubnetPtr parse(isc::data::ConstElementPtr subnet, bool encapsulate_options)
parses a subnet description and returns Subnet{4,6} structure
bool check_iface_
Check if the specified interface exists in the system.
virtual boost::shared_ptr< OptionDataListParser > createOptionDataListParser() const
Returns an instance of the OptionDataListParser to be used in parsing the option-data structure.
PoolStoragePtr pools_
Storage for pools belonging to this subnet.
this class parses list of DHCP4 subnets
bool check_iface_
Check if the specified interface exists in the system.
virtual ~Subnets4ListConfigParser()
Virtual destructor.
size_t parse(SrvConfigPtr cfg, data::ConstElementPtr subnets_list, bool encapsulate_options=true)
parses contents of the list
Subnets4ListConfigParser(bool check_iface=true)
constructor
virtual boost::shared_ptr< Subnet4ConfigParser > createSubnetConfigParser() const
Returns an instance of the Subnet4ConfigParser to be used in parsing the subnets.
this class parses a list of DHCP6 subnets
virtual boost::shared_ptr< Subnet6ConfigParser > createSubnetConfigParser() const
Returns an instance of the Subnet6ConfigParser to be used in parsing the subnets.
Subnets6ListConfigParser(bool check_iface=true)
constructor
virtual ~Subnets6ListConfigParser()
Virtual destructor.
bool check_iface_
Check if the specified interface exists in the system.
size_t parse(SrvConfigPtr cfg, data::ConstElementPtr subnets_list, bool encapsulate_options=true)
parses contents of the list
A template class that stores named elements of a given data type.
const data::Element::Position & getPosition(const std::string &name, const data::ConstElementPtr parent=data::ConstElementPtr()) const
Returns position of the data element in the configuration string.
ValueType getParam(const std::string &name) const
Returns the data value for the given parameter.
void setParam(const std::string &name, const ValueType &value, const data::Element::Position &position)
Stores the parameter, its value and the position in the store.
ValueType getOptionalParam(const std::string &name, const ValueType &default_value) const
Returns the data value for an optional parameter.
void delParam(const std::string &name)
Remove the parameter from the store.
void clear()
Deletes all of the entries from the store.
Defines the D2ClientConfig class.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:29
std::vector< SimpleDefault > SimpleDefaults
This specifies all default values in a given scope (e.g. a subnet).
NameChangeFormat
Defines the list of data wire formats supported.
Definition ncr_msg.h:59
NameChangeProtocol
Defines the list of socket protocols supported.
Definition ncr_io.h:69
std::pair< std::string, isc::data::ConstElementPtr > ConfigPair
Combination of parameter name and configuration contents.
boost::shared_ptr< Subnet > SubnetPtr
A generic pointer to either Subnet4 or Subnet6 object.
Definition subnet.h:449
boost::shared_ptr< Subnet4 > Subnet4Ptr
A pointer to a Subnet4 object.
Definition subnet.h:458
std::vector< PoolPtr > PoolStorage
a collection of pools
boost::shared_ptr< StringStorage > StringStoragePtr
boost::shared_ptr< D2ClientConfig > D2ClientConfigPtr
Defines a pointer for D2ClientConfig instances.
boost::shared_ptr< CfgOptionDef > CfgOptionDefPtr
Non-const pointer.
boost::shared_ptr< Subnet6 > Subnet6Ptr
A pointer to a Subnet6 object.
Definition subnet.h:623
boost::multi_index_container< Subnet6Ptr, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::tag< SubnetSubnetIdIndexTag >, boost::multi_index::const_mem_fun< Subnet, SubnetID, &Subnet::getID > >, boost::multi_index::ordered_unique< boost::multi_index::tag< SubnetPrefixIndexTag >, boost::multi_index::const_mem_fun< Subnet, std::string, &Subnet::toText > >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< SubnetModificationTimeIndexTag >, boost::multi_index::const_mem_fun< data::BaseStampedElement, boost::posix_time::ptime, &data::BaseStampedElement::getModificationTime > > > > Subnet6Collection
A collection of Subnet6 objects.
Definition subnet.h:934
boost::shared_ptr< BooleanStorage > BooleanStoragePtr
boost::shared_ptr< SrvConfig > SrvConfigPtr
Non-const pointer to the SrvConfig.
boost::shared_ptr< Uint32Storage > Uint32StoragePtr
ValueStorage< uint32_t > Uint32Storage
a collection of elements that store uint32 values
boost::shared_ptr< OptionDefinition > OptionDefinitionPtr
Pointer to option definition object.
boost::shared_ptr< PoolStorage > PoolStoragePtr
boost::shared_ptr< Pool > PoolPtr
a pointer to either IPv4 or IPv6 Pool
Definition pool.h:483
boost::multi_index_container< Subnet4Ptr, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::tag< SubnetSubnetIdIndexTag >, boost::multi_index::const_mem_fun< Subnet, SubnetID, &Subnet::getID > >, boost::multi_index::ordered_unique< boost::multi_index::tag< SubnetPrefixIndexTag >, boost::multi_index::const_mem_fun< Subnet, std::string, &Subnet::toText > >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< SubnetServerIdIndexTag >, boost::multi_index::const_mem_fun< Network4, asiolink::IOAddress, &Network4::getServerId > >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< SubnetModificationTimeIndexTag >, boost::multi_index::const_mem_fun< data::BaseStampedElement, boost::posix_time::ptime, &data::BaseStampedElement::getModificationTime > > > > Subnet4Collection
A collection of Subnet4 objects.
Definition subnet.h:863
boost::shared_ptr< const Host > ConstHostPtr
Const pointer to the Host object.
Definition host.h:840
ValueStorage< bool > BooleanStorage
Storage for parsed boolean values.
ValueStorage< std::string > StringStorage
a collection of elements that store string values
boost::multi_index_container< OptionDescriptor, boost::multi_index::indexed_by< boost::multi_index::sequenced<>, boost::multi_index::hashed_non_unique< KeyFromKeyExtractor< boost::multi_index::const_mem_fun< Option, uint16_t, &Option::getType >, boost::multi_index::member< OptionDescriptor, OptionPtr, &OptionDescriptor::option_ > > >, boost::multi_index::hashed_non_unique< boost::multi_index::member< OptionDescriptor, bool, &OptionDescriptor::persistent_ > >, boost::multi_index::ordered_non_unique< boost::multi_index::const_mem_fun< data::BaseStampedElement, boost::posix_time::ptime, &data::BaseStampedElement::getModificationTime > >, boost::multi_index::hashed_non_unique< boost::multi_index::tag< OptionIdIndexTag >, boost::multi_index::const_mem_fun< data::BaseStampedElement, uint64_t, &data::BaseStampedElement::getId > >, boost::multi_index::hashed_non_unique< boost::multi_index::member< OptionDescriptor, bool, &OptionDescriptor::cancelled_ > > > > OptionContainer
Multi index container for DHCP option descriptors.
Definition cfg_option.h:300
OptionSpaceContainer< OptionContainer, OptionDescriptor, std::string > OptionStorage
Collection of containers holding option spaces.
boost::shared_ptr< OptionStorage > OptionStoragePtr
Shared pointer to option storage.
boost::shared_ptr< Pool6 > Pool6Ptr
a pointer an IPv6 Pool
Definition pool.h:293
Defines the logger used by the top-level component of kea-lfc.
Represents the position of the data element within a configuration string.
Definition data.h:94