9 #ifndef DNS_RDATACLASS_H 10 #define DNS_RDATACLASS_H 1 18 class MasterLoaderCallbacks;
27 #ifndef ANY_TSIG_250_H 28 #define ANY_TSIG_250_H 1 48 class AbstractMessageRenderer;
67 explicit TSIG(
const std::string& type_str);
73 virtual std::string toText()
const;
76 virtual int compare(
const Rdata& other)
const;
105 TSIG(
const Name& algorithm, uint64_t time_signed, uint16_t fudge,
106 uint16_t mac_size,
const void* mac, uint16_t original_id,
107 uint16_t
error, uint16_t other_len,
const void* other_data);
118 TSIG& operator=(
const TSIG& source);
126 const Name& getAlgorithm()
const;
133 uint64_t getTimeSigned()
const;
138 uint16_t getFudge()
const;
143 uint16_t getMACSize()
const;
157 const void* getMAC()
const;
162 uint16_t getOriginalID()
const;
167 uint16_t getError()
const;
172 uint16_t getOtherLen()
const;
179 const void* getOtherData()
const;
190 #endif // ANY_TSIG_250_H 216 class AbstractMessageRenderer;
227 explicit A(
const std::string& type_str);
233 virtual std::string toText()
const;
236 virtual int compare(
const Rdata& other)
const;
253 #ifndef GENERIC_AFSDB_18_H 254 #define GENERIC_AFSDB_18_H 1 274 class AbstractMessageRenderer;
291 explicit AFSDB(
const std::string& type_str);
297 virtual std::string toText()
const;
300 virtual int compare(
const Rdata& other)
const;
318 const Name& getServer()
const;
323 uint16_t getSubtype()
const;
336 #endif // GENERIC_AFSDB_18_H 344 #ifndef GENERIC_CAA_257_H 345 #define GENERIC_CAA_257_H 1 366 class AbstractMessageRenderer;
379 explicit CAA(
const std::string& type_str);
385 virtual std::string toText()
const;
388 virtual int compare(
const Rdata& other)
const;
392 CAA(uint8_t flags,
const std::string& tag,
const std::string& value);
393 CAA& operator=(
const CAA& source);
401 uint8_t getFlags()
const;
404 const std::string& getTag()
const;
411 const std::vector<uint8_t>& getValue()
const;
423 #endif // GENERIC_CAA_257_H 431 #ifndef GENERIC_CNAME_5_H 432 #define GENERIC_CNAME_5_H 1 450 class AbstractMessageRenderer;
461 explicit CNAME(
const std::string& type_str);
467 virtual std::string toText()
const;
470 virtual int compare(
const Rdata& other)
const;
476 const Name& getCname()
const;
485 #endif // GENERIC_CNAME_5_H 493 #ifndef GENERIC_DLV_32769_H 494 #define GENERIC_DLV_32769_H 1 516 class AbstractMessageRenderer;
537 explicit DLV(
const std::string& type_str);
543 virtual std::string toText()
const;
546 virtual int compare(
const Rdata& other)
const;
559 DLV& operator=(
const DLV& source);
567 uint16_t getTag()
const;
577 #endif // GENERIC_DLV_32769_H 585 #ifndef GENERIC_DNAME_39_H 586 #define GENERIC_DNAME_39_H 1 604 class AbstractMessageRenderer;
615 explicit DNAME(
const std::string& type_str);
621 virtual std::string toText()
const;
624 virtual int compare(
const Rdata& other)
const;
630 const Name& getDname()
const;
639 #endif // GENERIC_DNAME_39_H 657 #ifndef GENERIC_DNSKEY_48_H 658 #define GENERIC_DNSKEY_48_H 1 671 class AbstractMessageRenderer;
684 explicit DNSKEY(
const std::string& type_str);
690 virtual std::string toText()
const;
693 virtual int compare(
const Rdata& other)
const;
707 uint16_t getTag()
const;
709 uint16_t getFlags()
const;
710 uint8_t getAlgorithm()
const;
722 #endif // GENERIC_DNSKEY_48_H 730 #ifndef GENERIC_DS_43_H 731 #define GENERIC_DS_43_H 1 753 class AbstractMessageRenderer;
761 template <
class Type, u
int16_t typeCode>
class DSLikeImpl;
774 explicit DS(
const std::string& type_str);
780 virtual std::string toText()
const;
783 virtual int compare(
const Rdata& other)
const;
796 DS& operator=(
const DS& source);
804 uint16_t getTag()
const;
814 #endif // GENERIC_DS_43_H 822 #ifndef GENERIC_HINFO_13_H 823 #define GENERIC_HINFO_13_H 1 828 #include <boost/scoped_ptr.hpp> 829 #include <boost/noncopyable.hpp> 846 class AbstractMessageRenderer;
865 explicit HINFO(
const std::string& type_str);
871 virtual std::string toText()
const;
874 virtual int compare(
const Rdata& other)
const;
883 const std::string getCPU()
const;
884 const std::string getOS()
const;
890 template <
typename T>
891 void toWireHelper(T& outputer)
const;
893 boost::scoped_ptr<HINFOImpl> impl_;
901 #endif // GENERIC_HINFO_13_H 909 #ifndef GENERIC_MINFO_14_H 910 #define GENERIC_MINFO_14_H 1 928 class AbstractMessageRenderer;
945 explicit MINFO(
const std::string& type_str);
951 virtual std::string toText()
const;
954 virtual int compare(
const Rdata& other)
const;
998 #endif // GENERIC_MINFO_14_H 1006 #ifndef GENERIC_MX_15_H 1007 #define GENERIC_MX_15_H 1 1027 class AbstractMessageRenderer;
1038 explicit MX(
const std::string& type_str);
1040 MX(
const MX& other);
1044 virtual std::string toText()
const;
1047 virtual int compare(
const Rdata& other)
const;
1051 MX(uint16_t preference,
const Name& mxname);
1056 const Name& getMXName()
const;
1057 uint16_t getMXPref()
const;
1065 uint16_t preference_;
1073 #endif // GENERIC_MX_15_H 1081 #ifndef GENERIC_NAPTR_35_H 1082 #define GENERIC_NAPTR_35_H 1 1086 #include <boost/scoped_ptr.hpp> 1103 class AbstractMessageRenderer;
1122 explicit NAPTR(
const std::string& type_str);
1128 virtual std::string toText()
const;
1131 virtual int compare(
const Rdata& other)
const;
1140 uint16_t getOrder()
const;
1141 uint16_t getPreference()
const;
1142 const std::string getFlags()
const;
1143 const std::string getServices()
const;
1144 const std::string getRegexp()
const;
1145 const Name& getReplacement()
const;
1150 template <
typename T>
1151 void toWireHelper(T& outputer)
const;
1153 boost::scoped_ptr<NAPTRImpl> impl_;
1160 #endif // GENERIC_NAPTR_35_H 1168 #ifndef GENERIC_NS_2_H 1169 #define GENERIC_NS_2_H 1 1187 class AbstractMessageRenderer;
1198 explicit NS(
const std::string& type_str);
1200 NS(
const NS& other);
1204 virtual std::string toText()
const;
1207 virtual int compare(
const Rdata& other)
const;
1213 explicit NS(
const Name& nsname) : nsname_(nsname) {}
1217 const Name& getNSName()
const;
1226 #endif // GENERIC_NS_2_H 1245 #ifndef GENERIC_NSEC3_50_H 1246 #define GENERIC_NSEC3_50_H 1 1259 class AbstractMessageRenderer;
1272 explicit NSEC3(
const std::string& type_str);
1278 virtual std::string toText()
const;
1281 virtual int compare(
const Rdata& other)
const;
1287 uint8_t getHashalg()
const;
1288 uint8_t getFlags()
const;
1289 uint16_t getIterations()
const;
1290 const std::vector<uint8_t>& getSalt()
const;
1291 const std::vector<uint8_t>& getNext()
const;
1303 #endif // GENERIC_NSEC3_50_H 1322 #ifndef GENERIC_NSEC3PARAM_51_H 1323 #define GENERIC_NSEC3PARAM_51_H 1 1336 class AbstractMessageRenderer;
1343 struct NSEC3PARAMImpl;
1349 explicit NSEC3PARAM(
const std::string& type_str);
1355 virtual std::string toText()
const;
1358 virtual int compare(
const Rdata& other)
const;
1367 uint8_t getHashalg()
const;
1368 uint8_t getFlags()
const;
1369 uint16_t getIterations()
const;
1370 const std::vector<uint8_t>& getSalt()
const;
1375 NSEC3PARAMImpl* impl_;
1382 #endif // GENERIC_NSEC3PARAM_51_H 1399 #ifndef GENERIC_NSEC_47_H 1400 #define GENERIC_NSEC_47_H 1 1413 class AbstractMessageRenderer;
1426 explicit NSEC(
const std::string& type_str);
1432 virtual std::string toText()
const;
1435 virtual int compare(
const Rdata& other)
const;
1438 NSEC& operator=(
const NSEC& source);
1448 const Name& getNextName()
const;
1458 #endif // GENERIC_NSEC_47_H 1466 #ifndef GENERIC_OPT_41_H 1467 #define GENERIC_OPT_41_H 1 1473 #include <boost/shared_ptr.hpp> 1488 class AbstractMessageRenderer;
1501 explicit OPT(
const std::string& type_str);
1507 virtual std::string toText()
const;
1510 virtual int compare(
const Rdata& other)
const;
1516 OPT& operator=(
const OPT& source);
1528 boost::shared_ptr<std::vector<uint8_t> >& data);
1531 uint16_t getCode()
const;
1534 const uint8_t* getData()
const;
1538 uint16_t getLength()
const;
1542 boost::shared_ptr<std::vector<uint8_t> > data_;
1553 void appendPseudoRR(uint16_t code,
const uint8_t* data, uint16_t length);
1561 const std::vector<PseudoRR>& getPseudoRRs()
const;
1571 #endif // GENERIC_OPT_41_H 1579 #ifndef GENERIC_PTR_12_H 1580 #define GENERIC_PTR_12_H 1 1598 class AbstractMessageRenderer;
1609 explicit PTR(
const std::string& type_str);
1615 virtual std::string toText()
const;
1618 virtual int compare(
const Rdata& other)
const;
1625 explicit PTR(
const Name& ptr_name) : ptr_name_(ptr_name) {}
1629 const Name& getPTRName()
const;
1638 #endif // GENERIC_PTR_12_H 1646 #ifndef GENERIC_RP_17_H 1647 #define GENERIC_RP_17_H 1 1665 class AbstractMessageRenderer;
1682 explicit RP(
const std::string& type_str);
1684 RP(
const RP& other);
1688 virtual std::string toText()
const;
1691 virtual int compare(
const Rdata& other)
const;
1702 mailbox_(mailbox), text_(text)
1739 #endif // GENERIC_RP_17_H 1755 #ifndef GENERIC_RRSIG_46_H 1756 #define GENERIC_RRSIG_46_H 1 1769 class AbstractMessageRenderer;
1788 explicit RRSIG(
const std::string& type_str);
1794 virtual std::string toText()
const;
1797 virtual int compare(
const Rdata& other)
const;
1804 const RRType& typeCovered()
const;
1807 RRSIGImpl* constructFromLexer(
MasterLexer& lexer,
const Name* origin);
1816 #endif // GENERIC_RRSIG_46_H 1824 #ifndef GENERIC_SOA_6_H 1825 #define GENERIC_SOA_6_H 1 1844 class AbstractMessageRenderer;
1855 explicit SOA(
const std::string& type_str);
1861 virtual std::string toText()
const;
1864 virtual int compare(
const Rdata& other)
const;
1868 SOA(
const Name& mname,
const Name& rname, uint32_t serial,
1869 uint32_t refresh, uint32_t retry, uint32_t expire,
1873 Serial getSerial()
const;
1876 uint32_t getMinimum()
const;
1883 uint8_t numdata_[20];
1890 #endif // GENERIC_SOA_6_H 1898 #ifndef GENERIC_SPF_99_H 1899 #define GENERIC_SPF_99_H 1 1919 class AbstractMessageRenderer;
1940 explicit SPF(
const std::string& type_str);
1946 virtual std::string toText()
const;
1949 virtual int compare(
const Rdata& other)
const;
1962 SPF& operator=(
const SPF& source);
1974 const std::vector<std::vector<uint8_t> >& getString()
const;
1985 #endif // GENERIC_SPF_99_H 1993 #ifndef GENERIC_SSHFP_44_H 1994 #define GENERIC_SSHFP_44_H 1 2015 class AbstractMessageRenderer;
2028 explicit SSHFP(
const std::string& type_str);
2034 virtual std::string toText()
const;
2037 virtual int compare(
const Rdata& other)
const;
2041 SSHFP(uint8_t algorithm, uint8_t fingerprint_type,
2042 const std::string& fingerprint);
2049 uint8_t getAlgorithmNumber()
const;
2050 uint8_t getFingerprintType()
const;
2051 const std::vector<uint8_t>& getFingerprint()
const;
2052 size_t getFingerprintLength()
const;
2055 SSHFPImpl* constructFromLexer(
MasterLexer& lexer);
2064 #endif // GENERIC_SSHFP_44_H 2072 #ifndef GENERIC_TKEY_249_H 2073 #define GENERIC_TKEY_249_H 1 2093 class AbstractMessageRenderer;
2112 explicit TKEY(
const std::string& type_str);
2118 virtual std::string toText()
const;
2121 virtual int compare(
const Rdata& other)
const;
2145 TKEY(
const Name& algorithm, uint32_t inception, uint32_t expire,
2146 uint16_t mode, uint16_t
error, uint16_t key_len,
2147 const void* key, uint16_t other_len,
const void* other_data);
2158 TKEY& operator=(
const TKEY& source);
2166 const Name& getAlgorithm()
const;
2171 uint32_t getInception()
const;
2174 std::string getInceptionDate()
const;
2179 uint32_t getExpire()
const;
2182 std::string getExpireDate()
const;
2187 uint16_t getMode()
const;
2192 uint16_t getError()
const;
2197 uint16_t getKeyLen()
const;
2202 const void* getKey()
const;
2207 uint16_t getOtherLen()
const;
2214 const void* getOtherData()
const;
2229 #endif // GENERIC_TKEY_249_H 2237 #ifndef GENERIC_TLSA_52_H 2238 #define GENERIC_TLSA_52_H 1 2259 class AbstractMessageRenderer;
2272 explicit TLSA(
const std::string& type_str);
2278 virtual std::string toText()
const;
2281 virtual int compare(
const Rdata& other)
const;
2285 TLSA(uint8_t certificate_usage, uint8_t selector,
2286 uint8_t matching_type,
const std::string& certificate_assoc_data);
2287 TLSA& operator=(
const TLSA& source);
2293 uint8_t getCertificateUsage()
const;
2294 uint8_t getSelector()
const;
2295 uint8_t getMatchingType()
const;
2296 const std::vector<uint8_t>& getData()
const;
2297 size_t getDataLength()
const;
2309 #endif // GENERIC_TLSA_52_H 2317 #ifndef GENERIC_TXT_16_H 2318 #define GENERIC_TXT_16_H 1 2338 class AbstractMessageRenderer;
2346 template<
class Type, u
int16_t typeCode>
class TXTLikeImpl;
2353 explicit TXT(
const std::string& type_str);
2359 virtual std::string toText()
const;
2362 virtual int compare(
const Rdata& other)
const;
2366 TXT& operator=(
const TXT& source);
2378 #endif // GENERIC_TXT_16_H 2404 class AbstractMessageRenderer;
2415 explicit A(
const std::string& type_str);
2421 virtual std::string toText()
const;
2424 virtual int compare(
const Rdata& other)
const;
2459 class AbstractMessageRenderer;
2470 explicit A(
const std::string& type_str);
2476 virtual std::string toText()
const;
2479 virtual int compare(
const Rdata& other)
const;
2502 #ifndef IN_AAAA_28_H 2503 #define IN_AAAA_28_H 1 2522 class AbstractMessageRenderer;
2533 explicit AAAA(
const std::string& type_str);
2539 virtual std::string toText()
const;
2542 virtual int compare(
const Rdata& other)
const;
2555 #endif // IN_AAAA_28_H 2563 #ifndef IN_DHCID_49_H 2564 #define IN_DHCID_49_H 1 2582 class AbstractMessageRenderer;
2599 explicit DHCID(
const std::string& type_str);
2605 virtual std::string toText()
const;
2608 virtual int compare(
const Rdata& other)
const;
2615 const std::vector<uint8_t>& getDigest()
const;
2625 std::vector<uint8_t> digest_;
2631 #endif // IN_DHCID_49_H 2640 #define IN_SRV_33_H 1 2658 class AbstractMessageRenderer;
2677 explicit SRV(
const std::string& type_str);
2683 virtual std::string toText()
const;
2686 virtual int compare(
const Rdata& other)
const;
2699 SRV& operator=(
const SRV& source);
2711 uint16_t getPriority()
const;
2716 uint16_t getWeight()
const;
2721 uint16_t getPort()
const;
2729 const Name& getTarget()
const;
2739 #endif // IN_SRV_33_H 2742 #endif // DNS_RDATACLASS_H rdata::TSIG class represents the TSIG RDATA as defined in RFC2845.
The Name class encapsulates DNS names.
rdata::RRSIG class represents the RRSIG RDATA as defined in RFC4034.
rdata::generic::DS class represents the DS RDATA as defined in RFC3658.
NS(const Name &nsname)
Specialized constructor.
This class defines DNS serial numbers and serial arithmetic.
The Rdata class is an abstract base class that provides a set of common interfaces to manipulate conc...
rdata::TKEY class represents the TKEY RDATA as defined in RFC2930.
Name getText() const
Return the value of the text field.
static const uint16_t GSS_API_MODE
The GSS_API constant for the Mode field.
A class representing a pseudo RR (or option) within an OPT RR (see RFC 6891).
rdata::SRV class represents the SRV RDATA as defined in RFC2782.
rdata::generic::RP class represents the RP RDATA as defined in RFC1183.
Options
Options how the parsing should work.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
rdata::DHCID class represents the DHCID RDATA as defined in RFC4701.
Name getEmailbox() const
Return the value of the emailbox field.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
PTR(const Name &ptr_name)
Specialized constructor.
rdata::generic::MINFO class represents the MINFO RDATA as defined in RFC1035.
Defines the logger used by the top-level component of kea-lfc.
HINFO class represents the HINFO rdata defined in RFC1034, RFC1035
rdata::SPF class represents the SPF RDATA as defined in RFC4408.
The RRType class encapsulates DNS resource record types.
Name getMailbox() const
Return the value of the mailbox field.
rdata::AFSDB class represents the AFSDB RDATA as defined in RFC1183.
NAPTR class represents the NAPTR rdata defined in RFC2915, RFC2168 and RFC3403
RP(const Name &mailbox, const Name &text)
We use the default copy constructor and assignment operator.
rdata::generic::DLV class represents the DLV RDATA as defined in RFC4431.
Name getRmailbox() const
Return the value of the rmailbox field.
Tokenizer for parsing DNS master files.
Set of issue callbacks for a loader.