Kea: d2_config.h Source File

| Kea 2.2.0

d2_config.h
Go to the documentation of this file.
1// Copyright (C) 2013-2021 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 D2_CONFIG_H
8#define D2_CONFIG_H
9
10#include <asiolink/io_service.h>
11#include <cc/data.h>
12#include <cc/simple_parser.h>
13#include <cc/cfg_to_element.h>
14#include <cc/user_context.h>
15#include <d2srv/d2_tsig_key.h>
16#include <dhcpsrv/parsers/dhcp_parsers.h>
17#include <exceptions/exceptions.h>
18#include <process/d_cfg_mgr.h>
19
20#include <boost/foreach.hpp>
21
22#include <stdint.h>
23#include <string>
24
25namespace isc {
26namespace d2 {
27
133
136 class D2CfgError : public isc::Exception {
137public:
138 D2CfgError(const char* file, size_t line, const char* what) :
139 isc::Exception(file, line, what) { };
140};
141
143 class D2Params {
144public:
160 D2Params(const isc::asiolink::IOAddress& ip_address,
161 const size_t port,
162 const size_t dns_server_timeout,
163 const dhcp_ddns::NameChangeProtocol& ncr_protocol,
164 const dhcp_ddns::NameChangeFormat& ncr_format);
165
168 D2Params();
169
171 virtual ~D2Params();
172
174 const isc::asiolink::IOAddress& getIpAddress() const {
175 return(ip_address_);
176 }
177
179 size_t getPort() const {
180 return(port_);
181 }
182
184 size_t getDnsServerTimeout() const {
185 return(dns_server_timeout_);
186 }
187
189 const dhcp_ddns::NameChangeProtocol& getNcrProtocol() const {
190 return(ncr_protocol_);
191 }
192
194 const dhcp_ddns::NameChangeFormat& getNcrFormat() const {
195 return(ncr_format_);
196 }
197
205 std::string getConfigSummary() const;
206
208 bool operator == (const D2Params& other) const;
209
211 bool operator != (const D2Params& other) const;
212
214 std::string toText() const;
215
216protected:
228 virtual void validateContents();
229
230private:
232 isc::asiolink::IOAddress ip_address_;
233
235 size_t port_;
236
238 size_t dns_server_timeout_;
239
242 dhcp_ddns::NameChangeProtocol ncr_protocol_;
243
246 dhcp_ddns::NameChangeFormat ncr_format_;
247};
248
253std::ostream&
254 operator<<(std::ostream& os, const D2Params& config);
255
257 typedef boost::shared_ptr<D2Params> D2ParamsPtr;
258
266 class TSIGKeyInfo : public isc::data::UserContext, public isc::data::CfgToElement {
267public:
269
270 static const char* HMAC_MD5_STR;
271 static const char* HMAC_SHA1_STR;
272 static const char* HMAC_SHA256_STR;
273 static const char* HMAC_SHA224_STR;
274 static const char* HMAC_SHA384_STR;
275 static const char* HMAC_SHA512_STR;
276 //}@
277
309 TSIGKeyInfo(const std::string& name, const std::string& algorithm,
310 const std::string& secret, uint32_t digestbits = 0);
311
313 virtual ~TSIGKeyInfo();
314
318 const std::string getName() const {
319 return (name_);
320 }
321
325 const std::string getAlgorithm() const {
326 return (algorithm_);
327 }
328
332 uint32_t getDigestbits() const {
333 return (digestbits_);
334 }
335
339 const std::string getSecret() const {
340 return (secret_);
341 }
342
347 const D2TsigKeyPtr& getTSIGKey() const {
348 return (tsig_key_);
349 }
350
364 static const dns::Name& stringToAlgorithmName(const std::string&
365 algorithm_id);
366
370 virtual isc::data::ElementPtr toElement() const;
371
372private:
381 void remakeKey();
382
387 std::string name_;
388
390 std::string algorithm_;
391
393 std::string secret_;
394
397 uint32_t digestbits_;
398
400 D2TsigKeyPtr tsig_key_;
401};
402
404 typedef boost::shared_ptr<TSIGKeyInfo> TSIGKeyInfoPtr;
405
407 typedef std::map<std::string, TSIGKeyInfoPtr> TSIGKeyInfoMap;
408
410 typedef std::pair<std::string, TSIGKeyInfoPtr> TSIGKeyInfoMapPair;
411
413 typedef boost::shared_ptr<TSIGKeyInfoMap> TSIGKeyInfoMapPtr;
414
415
421 class DnsServerInfo : public isc::data::UserContext, public isc::data::CfgToElement {
422public:
424 static const uint32_t STANDARD_DNS_PORT = 53;
425
442 DnsServerInfo(const std::string& hostname,
443 isc::asiolink::IOAddress ip_address,
444 uint32_t port = STANDARD_DNS_PORT,
445 bool enabled = true,
446 const TSIGKeyInfoPtr& tsig_key_info = TSIGKeyInfoPtr(),
447 bool inherited_key = true);
448
450 virtual ~DnsServerInfo();
451
455 const std::string getHostname() const {
456 return (hostname_);
457 }
458
462 uint32_t getPort() const {
463 return (port_);
464 }
465
469 const isc::asiolink::IOAddress& getIpAddress() const {
470 return (ip_address_);
471 }
472
477 bool isEnabled() const {
478 return (enabled_);
479 }
480
482 void enable() {
483 enabled_ = true;
484 }
485
487 void disable() {
488 enabled_ = false;
489 }
490
495 const std::string getKeyName() const;
496
501 const TSIGKeyInfoPtr& getTSIGKeyInfo() {
502 return (tsig_key_info_);
503 }
504
506 std::string toText() const;
507
511 virtual isc::data::ElementPtr toElement() const;
512
513private:
516 std::string hostname_;
517
520 isc::asiolink::IOAddress ip_address_;
521
523 uint32_t port_;
524
527 bool enabled_;
528
531 TSIGKeyInfoPtr tsig_key_info_;
532
535 bool inherited_key_;
536};
537
538std::ostream&
539 operator<<(std::ostream& os, const DnsServerInfo& server);
540
542 typedef boost::shared_ptr<DnsServerInfo> DnsServerInfoPtr;
543
545 typedef std::vector<DnsServerInfoPtr> DnsServerInfoStorage;
546
548 typedef boost::shared_ptr<DnsServerInfoStorage> DnsServerInfoStoragePtr;
549
550
558 class DdnsDomain : public isc::data::UserContext, public isc::data::CfgToElement {
559public:
565 DdnsDomain(const std::string& name, DnsServerInfoStoragePtr servers,
566 const std::string& key_name = "");
567
569 virtual ~DdnsDomain();
570
574 const std::string getName() const {
575 return (name_);
576 }
577
584 const std::string getKeyName() const {
585 return (key_name_);
586 }
587
591 const DnsServerInfoStoragePtr& getServers() {
592 return (servers_);
593 }
594
598 virtual isc::data::ElementPtr toElement() const;
599
600private:
602 std::string name_;
603
605 DnsServerInfoStoragePtr servers_;
606
608 std::string key_name_;
609};
610
612 typedef boost::shared_ptr<DdnsDomain> DdnsDomainPtr;
613
615 typedef std::map<std::string, DdnsDomainPtr> DdnsDomainMap;
616
618 typedef std::pair<std::string, DdnsDomainPtr> DdnsDomainMapPair;
619
621 typedef boost::shared_ptr<DdnsDomainMap> DdnsDomainMapPtr;
622
634 class DdnsDomainListMgr : public isc::data::CfgToElement {
635public:
637 static const char* wildcard_domain_name_;
638
642 DdnsDomainListMgr(const std::string& name);
643
645 virtual ~DdnsDomainListMgr ();
646
665 virtual bool matchDomain(const std::string& fqdn, DdnsDomainPtr& domain);
666
670 const std::string getName() const {
671 return (name_);
672 }
673
677 uint32_t size() const {
678 return (domains_->size());
679 }
680
685 const DdnsDomainPtr& getWildcardDomain() {
686 return (wildcard_domain_);
687 }
688
692 const DdnsDomainMapPtr &getDomains() {
693 return (domains_);
694 }
695
699 void setDomains(DdnsDomainMapPtr domains);
700
704 virtual isc::data::ElementPtr toElement() const;
705
706private:
708 std::string name_;
709
711 DdnsDomainMapPtr domains_;
712
714 DdnsDomainPtr wildcard_domain_;
715};
716
718typedef boost::shared_ptr<DdnsDomainListMgr> DdnsDomainListMgrPtr;
719
730 class DScalarContext : public process::ConfigBase {
731public:
732
734 DScalarContext() {
735 };
736
738 virtual ~DScalarContext() {
739 }
740
744 virtual process::ConfigPtr clone() {
745 return (process::ConfigPtr(new DScalarContext(*this)));
746 }
747
751 virtual isc::data::ElementPtr toElement() const {
752 isc_throw(isc::NotImplemented, "DScalarContext::ElementPtr");
753 }
754
755protected:
757 DScalarContext(const DScalarContext& rhs) : ConfigBase(rhs) {
758 }
759
760private:
762 DScalarContext& operator=(const DScalarContext& rhs);
763};
764
766 typedef boost::shared_ptr<DScalarContext> DScalarContextPtr;
767
772 class TSIGKeyInfoParser : public data::SimpleParser {
773public:
782 TSIGKeyInfoPtr parse(data::ConstElementPtr key_config);
783
784};
785
790 class TSIGKeyInfoListParser : public data::SimpleParser {
791public:
804 TSIGKeyInfoMapPtr parse(data::ConstElementPtr key_list_config);
805};
806
811 class DnsServerInfoParser : public data::SimpleParser {
812public:
829 DnsServerInfoPtr parse(data::ConstElementPtr server_config,
830 data::ConstElementPtr domain_config,
831 const TSIGKeyInfoMapPtr keys);
832};
833
839 class DnsServerInfoListParser : public data::SimpleParser {
840public:
854 DnsServerInfoStoragePtr parse(data::ConstElementPtr server_list_config,
855 data::ConstElementPtr domain_config,
856 const TSIGKeyInfoMapPtr keys);
857};
858
863 class DdnsDomainParser : public data::SimpleParser {
864public:
874 DdnsDomainPtr parse(data::ConstElementPtr domain_config,
875 const TSIGKeyInfoMapPtr keys);
876};
877
882 class DdnsDomainListParser : public data::SimpleParser {
883public:
896 DdnsDomainMapPtr parse(data::ConstElementPtr domain_list_config,
897 const TSIGKeyInfoMapPtr keys);
898};
899
905 class DdnsDomainListMgrParser : public data::SimpleParser {
906public:
918 DdnsDomainListMgrPtr parse(data::ConstElementPtr mgr_config,
919 const std::string& mgr_name,
920 const TSIGKeyInfoMapPtr keys);
921};
922
923} // end of isc::d2 namespace
924} // end of isc namespace
925
926#endif // D2_CONFIG_H
cfg_to_element.h
isc::Exception
This is a base class for exceptions thrown from the DNS library module.
Definition: exceptions/exceptions.h:23
isc::Exception::what
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Definition: exceptions/exceptions.cc:32
isc::NotImplemented
A generic exception that is thrown when a function is not implemented.
Definition: exceptions/exceptions.h:166
isc::asiolink::IOAddress
The IOAddress class represents an IP addresses (version agnostic)
Definition: io_address.h:45
isc::d2::D2CfgError
Exception thrown when the error during configuration handling occurs.
Definition: d2_config.h:136
isc::d2::D2CfgError::D2CfgError
D2CfgError(const char *file, size_t line, const char *what)
Definition: d2_config.h:138
isc::d2::D2Params
Acts as a storage vault for D2 global scalar parameters.
Definition: d2_config.h:143
isc::d2::D2Params::getDnsServerTimeout
size_t getDnsServerTimeout() const
Return the DNS server timeout value.
Definition: d2_config.h:184
isc::d2::D2Params::D2Params
D2Params()
Default constructor The default constructor creates an instance that has updates disabled.
Definition: d2_config.cc:43
isc::d2::D2Params::getIpAddress
const isc::asiolink::IOAddress & getIpAddress() const
Return the IP address D2 listens on.
Definition: d2_config.h:174
isc::d2::D2Params::operator!=
bool operator!=(const D2Params &other) const
Compares two D2Params's for inequality.
Definition: d2_config.cc:100
isc::d2::D2Params::getNcrFormat
const dhcp_ddns::NameChangeFormat & getNcrFormat() const
Return the expected format of inbound requests (NCRs).
Definition: d2_config.h:194
isc::d2::D2Params::getPort
size_t getPort() const
Return the TCP/UPD port D2 listens on.
Definition: d2_config.h:179
isc::d2::D2Params::operator==
bool operator==(const D2Params &other) const
Compares two D2Params's for equality.
Definition: d2_config.cc:91
isc::d2::D2Params::~D2Params
virtual ~D2Params()
Destructor.
Definition: d2_config.cc:51
isc::d2::D2Params::getNcrProtocol
const dhcp_ddns::NameChangeProtocol & getNcrProtocol() const
Return the socket protocol in use.
Definition: d2_config.h:189
isc::d2::D2Params::getConfigSummary
std::string getConfigSummary() const
Return summary of the configuration used by D2.
Definition: d2_config.cc:83
isc::d2::D2Params::toText
std::string toText() const
Generates a string representation of the class contents.
Definition: d2_config.cc:105
isc::d2::D2Params::validateContents
virtual void validateContents()
Validates member values.
Definition: d2_config.cc:54
isc::d2::DScalarContext
Storage container for scalar configuration parameters.
Definition: d2_config.h:730
isc::d2::DScalarContext::DScalarContext
DScalarContext()
Constructor.
Definition: d2_config.h:734
isc::d2::DScalarContext::toElement
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
Definition: d2_config.h:751
isc::d2::DScalarContext::clone
virtual process::ConfigPtr clone()
Creates a clone of a DStubContext.
Definition: d2_config.h:744
isc::d2::DScalarContext::~DScalarContext
virtual ~DScalarContext()
Destructor.
Definition: d2_config.h:738
isc::d2::DScalarContext::DScalarContext
DScalarContext(const DScalarContext &rhs)
Copy constructor.
Definition: d2_config.h:757
isc::d2::DdnsDomainListMgrParser
Parser for DdnsDomainListMgr.
Definition: d2_config.h:905
isc::d2::DdnsDomainListMgrParser::parse
DdnsDomainListMgrPtr parse(data::ConstElementPtr mgr_config, const std::string &mgr_name, const TSIGKeyInfoMapPtr keys)
Performs the actual parsing of the given manager element.
Definition: d2_config.cc:655
isc::d2::DdnsDomainListMgr
Provides storage for and management of a list of DNS domains.
Definition: d2_config.h:634
isc::d2::DdnsDomainListMgr::getName
const std::string getName() const
Fetches the manager's name.
Definition: d2_config.h:670
isc::d2::DdnsDomainListMgr::DdnsDomainListMgr
DdnsDomainListMgr(const std::string &name)
Constructor.
Definition: d2_config.cc:299
isc::d2::DdnsDomainListMgr::getDomains
const DdnsDomainMapPtr & getDomains()
Fetches the domain list.
Definition: d2_config.h:692
isc::d2::DdnsDomainListMgr::getWildcardDomain
const DdnsDomainPtr & getWildcardDomain()
Fetches the wild card domain.
Definition: d2_config.h:685
isc::d2::DdnsDomainListMgr::matchDomain
virtual bool matchDomain(const std::string &fqdn, DdnsDomainPtr &domain)
Matches a given name to a domain based on a longest match scheme.
Definition: d2_config.cc:326
isc::d2::DdnsDomainListMgr::setDomains
void setDomains(DdnsDomainMapPtr domains)
Sets the manger's domain list to the given list of domains.
Definition: d2_config.cc:308
isc::d2::DdnsDomainListMgr::wildcard_domain_name_
static const char * wildcard_domain_name_
defines the domain name for denoting the wildcard domain.
Definition: d2_config.h:637
isc::d2::DdnsDomainListMgr::~DdnsDomainListMgr
virtual ~DdnsDomainListMgr()
Destructor.
Definition: d2_config.cc:304
isc::d2::DdnsDomainListMgr::size
uint32_t size() const
Returns the number of domains in the domain list.
Definition: d2_config.h:677
isc::d2::DdnsDomainListMgr::toElement
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
Definition: d2_config.cc:391
isc::d2::DdnsDomainListParser
Parser for a list of DdnsDomains.
Definition: d2_config.h:882
isc::d2::DdnsDomainListParser::parse
DdnsDomainMapPtr parse(data::ConstElementPtr domain_list_config, const TSIGKeyInfoMapPtr keys)
Performs the actual parsing of the given list "ddns-domain" elements.
Definition: d2_config.cc:631
isc::d2::DdnsDomainParser
Parser for DdnsDomain.
Definition: d2_config.h:863
isc::d2::DdnsDomainParser::parse
DdnsDomainPtr parse(data::ConstElementPtr domain_config, const TSIGKeyInfoMapPtr keys)
Performs the actual parsing of the given "ddns-domain" element.
Definition: d2_config.cc:595
isc::d2::DdnsDomain
Represents a DNS domain that is may be updated dynamically.
Definition: d2_config.h:558
isc::d2::DdnsDomain::getKeyName
const std::string getKeyName() const
Getter which returns the domain's TSIG key name.
Definition: d2_config.h:584
isc::d2::DdnsDomain::getName
const std::string getName() const
Getter which returns the domain's name.
Definition: d2_config.h:574
isc::d2::DdnsDomain::getServers
const DnsServerInfoStoragePtr & getServers()
Getter which returns the domain's list of servers.
Definition: d2_config.h:591
isc::d2::DdnsDomain::DdnsDomain
DdnsDomain(const std::string &name, DnsServerInfoStoragePtr servers, const std::string &key_name="")
Constructor.
Definition: d2_config.cc:260
isc::d2::DdnsDomain::~DdnsDomain
virtual ~DdnsDomain()
Destructor.
Definition: d2_config.cc:266
isc::d2::DdnsDomain::toElement
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
Definition: d2_config.cc:270
isc::d2::DnsServerInfoListParser
Parser for a list of DnsServerInfos.
Definition: d2_config.h:839
isc::d2::DnsServerInfoListParser::parse
DnsServerInfoStoragePtr parse(data::ConstElementPtr server_list_config, data::ConstElementPtr domain_config, const TSIGKeyInfoMapPtr keys)
Performs the actual parsing of the given list "dns-server" elements.
Definition: d2_config.cc:578
isc::d2::DnsServerInfoParser
Parser for DnsServerInfo.
Definition: d2_config.h:811
isc::d2::DnsServerInfoParser::parse
DnsServerInfoPtr parse(data::ConstElementPtr server_config, data::ConstElementPtr domain_config, const TSIGKeyInfoMapPtr keys)
Performs the actual parsing of the given "dns-server" element.
Definition: d2_config.cc:486
isc::d2::DnsServerInfo
Represents a specific DNS Server.
Definition: d2_config.h:421
isc::d2::DnsServerInfo::isEnabled
bool isEnabled() const
Convenience method which returns whether or not the server is enabled.
Definition: d2_config.h:477
isc::d2::DnsServerInfo::toText
std::string toText() const
Returns a text representation for the server.
Definition: d2_config.cc:227
isc::d2::DnsServerInfo::getKeyName
const std::string getKeyName() const
Convenience method which returns the server's TSIG key name.
Definition: d2_config.cc:218
isc::d2::DnsServerInfo::getTSIGKeyInfo
const TSIGKeyInfoPtr & getTSIGKeyInfo()
Getter which returns the server's TSIGKey info.
Definition: d2_config.h:501
isc::d2::DnsServerInfo::getHostname
const std::string getHostname() const
Getter which returns the server's hostname.
Definition: d2_config.h:455
isc::d2::DnsServerInfo::DnsServerInfo
DnsServerInfo(const std::string &hostname, isc::asiolink::IOAddress ip_address, uint32_t port=STANDARD_DNS_PORT, bool enabled=true, const TSIGKeyInfoPtr &tsig_key_info=TSIGKeyInfoPtr(), bool inherited_key=true)
Constructor.
Definition: d2_config.cc:203
isc::d2::DnsServerInfo::toElement
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
Definition: d2_config.cc:234
isc::d2::DnsServerInfo::getPort
uint32_t getPort() const
Getter which returns the server's port number.
Definition: d2_config.h:462
isc::d2::DnsServerInfo::enable
void enable()
Sets the server's enabled flag to true.
Definition: d2_config.h:482
isc::d2::DnsServerInfo::STANDARD_DNS_PORT
static const uint32_t STANDARD_DNS_PORT
defines DNS standard port value
Definition: d2_config.h:424
isc::d2::DnsServerInfo::disable
void disable()
Sets the server's enabled flag to false.
Definition: d2_config.h:487
isc::d2::DnsServerInfo::getIpAddress
const isc::asiolink::IOAddress & getIpAddress() const
Getter which returns the server's ip_address.
Definition: d2_config.h:469
isc::d2::DnsServerInfo::~DnsServerInfo
virtual ~DnsServerInfo()
Destructor.
Definition: d2_config.cc:214
isc::d2::TSIGKeyInfoListParser
Parser for a list of TSIGKeyInfos.
Definition: d2_config.h:790
isc::d2::TSIGKeyInfoListParser::parse
TSIGKeyInfoMapPtr parse(data::ConstElementPtr key_list_config)
Performs the parsing of the given list "tsig-key" elements.
Definition: d2_config.cc:463
isc::d2::TSIGKeyInfoParser
Parser for TSIGKeyInfo.
Definition: d2_config.h:772
isc::d2::TSIGKeyInfoParser::parse
TSIGKeyInfoPtr parse(data::ConstElementPtr key_config)
Performs the actual parsing of the given "tsig-key" element.
Definition: d2_config.cc:408
isc::d2::TSIGKeyInfo
Represents a TSIG Key.
Definition: d2_config.h:266
isc::d2::TSIGKeyInfo::HMAC_SHA224_STR
static const char * HMAC_SHA224_STR
Definition: d2_config.h:273
isc::d2::TSIGKeyInfo::getAlgorithm
const std::string getAlgorithm() const
Getter which returns the key's algorithm string ID.
Definition: d2_config.h:325
isc::d2::TSIGKeyInfo::TSIGKeyInfo
TSIGKeyInfo(const std::string &name, const std::string &algorithm, const std::string &secret, uint32_t digestbits=0)
Constructor.
Definition: d2_config.cc:135
isc::d2::TSIGKeyInfo::~TSIGKeyInfo
virtual ~TSIGKeyInfo()
Destructor.
Definition: d2_config.cc:142
isc::d2::TSIGKeyInfo::getTSIGKey
const D2TsigKeyPtr & getTSIGKey() const
Getter which returns the TSIG key used to sign and verify messages.
Definition: d2_config.h:347
isc::d2::TSIGKeyInfo::HMAC_MD5_STR
static const char * HMAC_MD5_STR
Defines string values for the supported TSIG algorithms.
Definition: d2_config.h:270
isc::d2::TSIGKeyInfo::getName
const std::string getName() const
Getter which returns the key's name.
Definition: d2_config.h:318
isc::d2::TSIGKeyInfo::toElement
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
Definition: d2_config.cc:185
isc::d2::TSIGKeyInfo::HMAC_SHA1_STR
static const char * HMAC_SHA1_STR
Definition: d2_config.h:271
isc::d2::TSIGKeyInfo::HMAC_SHA256_STR
static const char * HMAC_SHA256_STR
Definition: d2_config.h:272
isc::d2::TSIGKeyInfo::getDigestbits
uint32_t getDigestbits() const
Getter which returns the key's minimum truncated length.
Definition: d2_config.h:332
isc::d2::TSIGKeyInfo::stringToAlgorithmName
static const dns::Name & stringToAlgorithmName(const std::string &algorithm_id)
Converts algorithm id to dns::TSIGKey algorithm dns::Name.
Definition: d2_config.cc:146
isc::d2::TSIGKeyInfo::HMAC_SHA512_STR
static const char * HMAC_SHA512_STR
Definition: d2_config.h:275
isc::d2::TSIGKeyInfo::getSecret
const std::string getSecret() const
Getter which returns the key's secret.
Definition: d2_config.h:339
isc::d2::TSIGKeyInfo::HMAC_SHA384_STR
static const char * HMAC_SHA384_STR
Definition: d2_config.h:274
isc::data::SimpleParser
A simple parser.
Definition: lib/cc/simple_parser.h:68
isc::dns::Exception
Definition: dns/exceptions.h:25
isc::dns::Name
The Name class encapsulates DNS names.
Definition: name.h:223
isc::process::ConfigBase
Base class for all configurations.
Definition: config_base.h:33
d2_tsig_key.h
d_cfg_mgr.h
data.h
dhcp_parsers.h
exceptions.h
isc_throw
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
Definition: exceptions/exceptions.h:210
io_service.h
simple_parser.h
isc::d2::DdnsDomainListMgrPtr
boost::shared_ptr< DdnsDomainListMgr > DdnsDomainListMgrPtr
Defines a pointer for DdnsDomain instances.
Definition: d2_cfg_mgr.h:153
isc::d2::DdnsDomainPtr
boost::shared_ptr< DdnsDomain > DdnsDomainPtr
Defines a pointer for DdnsDomain instances.
Definition: d2_config.h:612
isc::d2::DdnsDomainMapPtr
boost::shared_ptr< DdnsDomainMap > DdnsDomainMapPtr
Defines a pointer to DdnsDomain storage containers.
Definition: d2_config.h:621
isc::d2::TSIGKeyInfoMapPair
std::pair< std::string, TSIGKeyInfoPtr > TSIGKeyInfoMapPair
Defines a iterator pairing of name and TSIGKeyInfo.
Definition: d2_config.h:410
isc::d2::DnsServerInfoPtr
boost::shared_ptr< DnsServerInfo > DnsServerInfoPtr
Defines a pointer for DnsServerInfo instances.
Definition: d2_config.h:542
isc::d2::DdnsDomainMap
std::map< std::string, DdnsDomainPtr > DdnsDomainMap
Defines a map of DdnsDomains, keyed by the domain name.
Definition: d2_config.h:615
isc::d2::DdnsDomainMapPair
std::pair< std::string, DdnsDomainPtr > DdnsDomainMapPair
Defines a iterator pairing domain name and DdnsDomain.
Definition: d2_config.h:618
isc::d2::TSIGKeyInfoPtr
boost::shared_ptr< TSIGKeyInfo > TSIGKeyInfoPtr
Defines a pointer for TSIGKeyInfo instances.
Definition: d2_config.h:404
isc::d2::DnsServerInfoStorage
std::vector< DnsServerInfoPtr > DnsServerInfoStorage
Defines a storage container for DnsServerInfo pointers.
Definition: d2_config.h:545
isc::d2::TSIGKeyInfoMap
std::map< std::string, TSIGKeyInfoPtr > TSIGKeyInfoMap
Defines a map of TSIGKeyInfos, keyed by the name.
Definition: d2_config.h:407
isc::d2::operator<<
std::ostream & operator<<(std::ostream &os, const D2Params &config)
Dumps the contents of a D2Params as text to an output stream.
Definition: d2_config.cc:120
isc::d2::DnsServerInfoStoragePtr
boost::shared_ptr< DnsServerInfoStorage > DnsServerInfoStoragePtr
Defines a pointer to DnsServerInfo storage containers.
Definition: d2_config.h:548
isc::d2::D2ParamsPtr
boost::shared_ptr< D2Params > D2ParamsPtr
Defines a pointer for D2Params instances.
Definition: d2_config.h:257
isc::d2::DScalarContextPtr
boost::shared_ptr< DScalarContext > DScalarContextPtr
Defines a pointer for DScalarContext instances.
Definition: d2_config.h:766
isc::d2::D2TsigKeyPtr
boost::shared_ptr< D2TsigKey > D2TsigKeyPtr
Type of pointer to a D2 TSIG key.
Definition: d2_tsig_key.h:71
isc::d2::TSIGKeyInfoMapPtr
boost::shared_ptr< TSIGKeyInfoMap > TSIGKeyInfoMapPtr
Defines a pointer to map of TSIGkeyInfos.
Definition: d2_config.h:413
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
isc::data::ElementPtr
boost::shared_ptr< Element > ElementPtr
Definition: data.h:24
isc::dhcp_ddns::NameChangeFormat
NameChangeFormat
Defines the list of data wire formats supported.
Definition: ncr_msg.h:60
isc::dhcp_ddns::NameChangeProtocol
NameChangeProtocol
Defines the list of socket protocols supported.
Definition: ncr_io.h:68
isc::process::ConfigPtr
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the ConfigBase.
Definition: config_base.h:176
isc
Defines the logger used by the top-level component of kea-lfc.
Definition: agent_parser.cc:143
isc::data::CfgToElement
Abstract class for configuration Cfg_* classes.
Definition: cfg_to_element.h:29
isc::data::UserContext
Base class for user context.
Definition: user_context.h:22
user_context.h