[svn] commit: r1063 - /trunk/src/lib/dns/cpp/message.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Mar 1 22:26:45 UTC 2010
Author: jinmei
Date: Mon Mar 1 22:26:45 2010
New Revision: 1063
Log:
failed to commit the updated header file
Modified:
trunk/src/lib/dns/cpp/message.h
Modified: trunk/src/lib/dns/cpp/message.h
==============================================================================
--- trunk/src/lib/dns/cpp/message.h (original)
+++ trunk/src/lib/dns/cpp/message.h Mon Mar 1 22:26:45 2010
@@ -280,6 +280,7 @@
class Rcode {
public:
+ Rcode(uint16_t code);
uint16_t getCode() const { return (code_); }
bool operator==(const Rcode& other) const { return (code_ == other.code_); }
std::string toText() const;
@@ -299,9 +300,13 @@
static const Rcode& RESERVED13();
static const Rcode& RESERVED14();
static const Rcode& RESERVED15();
-private:
- Rcode(uint16_t code) : code_(code) {}
+ // Extended Rcodes follow (EDNS required)
+ static const Rcode& BADVERS();
+private:
uint16_t code_;
+
+ // EDNS-extended RCODEs are 12-bit unsigned integers.
+ static const uint16_t MAX_RCODE = 0xfff;
};
inline const Rcode&
@@ -413,6 +418,13 @@
Rcode::RESERVED15()
{
static Rcode c(15);
+ return (c);
+}
+
+inline const Rcode&
+Rcode::BADVERS()
+{
+ static Rcode c(16);
return (c);
}
More information about the bind10-changes
mailing list