[svn] commit: r534 - /branches/parkinglot/src/lib/dns/cpp/rrtype.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Jan 26 23:08:23 UTC 2010
Author: jinmei
Date: Tue Jan 26 23:08:23 2010
New Revision: 534
Log:
added some more well known RR Type constants
Modified:
branches/parkinglot/src/lib/dns/cpp/rrtype.h
Modified: branches/parkinglot/src/lib/dns/cpp/rrtype.h
==============================================================================
--- branches/parkinglot/src/lib/dns/cpp/rrtype.h (original)
+++ branches/parkinglot/src/lib/dns/cpp/rrtype.h Tue Jan 26 23:08:23 2010
@@ -253,6 +253,10 @@
// 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_;
@@ -273,6 +277,38 @@
RRType::NS()
{
static RRType rrtype(2);
+
+ 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);
}
More information about the bind10-changes
mailing list