mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
added some more well known RR Type constants
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@534 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
@@ -253,6 +253,10 @@ public:
|
||||
// hard-coded for a proof of concept.
|
||||
static const RRType& A();
|
||||
static const RRType& NS();
|
||||
static const RRType& MX();
|
||||
static const RRType& SOA();
|
||||
static const RRType& TXT();
|
||||
static const RRType& AAAA();
|
||||
|
||||
private:
|
||||
uint16_t typecode_;
|
||||
@@ -277,6 +281,38 @@ RRType::NS()
|
||||
return (rrtype);
|
||||
}
|
||||
|
||||
inline const RRType&
|
||||
RRType::SOA()
|
||||
{
|
||||
static RRType rrtype(6);
|
||||
|
||||
return (rrtype);
|
||||
}
|
||||
|
||||
inline const RRType&
|
||||
RRType::MX()
|
||||
{
|
||||
static RRType rrtype(15);
|
||||
|
||||
return (rrtype);
|
||||
}
|
||||
|
||||
inline const RRType&
|
||||
RRType::TXT()
|
||||
{
|
||||
static RRType rrtype(16);
|
||||
|
||||
return (rrtype);
|
||||
}
|
||||
|
||||
inline const RRType&
|
||||
RRType::AAAA()
|
||||
{
|
||||
static RRType rrtype(28);
|
||||
|
||||
return (rrtype);
|
||||
}
|
||||
|
||||
///
|
||||
/// \brief Insert the \c RRType as a string into stream.
|
||||
///
|
||||
|
Reference in New Issue
Block a user