Commit b4db6707 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

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
parent 8c390e89
...@@ -253,6 +253,10 @@ public: ...@@ -253,6 +253,10 @@ public:
// hard-coded for a proof of concept. // hard-coded for a proof of concept.
static const RRType& A(); static const RRType& A();
static const RRType& NS(); static const RRType& NS();
static const RRType& MX();
static const RRType& SOA();
static const RRType& TXT();
static const RRType& AAAA();
private: private:
uint16_t typecode_; uint16_t typecode_;
...@@ -277,6 +281,38 @@ RRType::NS() ...@@ -277,6 +281,38 @@ RRType::NS()
return (rrtype); 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. /// \brief Insert the \c RRType as a string into stream.
/// ///
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment