BIND 10 master, updated. e64974ccce21ce592789ca36ba887ffddf2a1486 Merge branch 'trac688'

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jan 14 13:10:36 UTC 2014


The branch, master has been updated
       via  e64974ccce21ce592789ca36ba887ffddf2a1486 (commit)
       via  48ce1e8ebd83672af7910cb7f39b14968ecc40ff (commit)
      from  ec856ca7f468f0c23b19b6ed42282fabf1549de8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e64974ccce21ce592789ca36ba887ffddf2a1486
Merge: ec856ca 48ce1e8
Author: Mukund Sivaraman <muks at isc.org>
Date:   Tue Jan 14 18:35:26 2014 +0530

    Merge branch 'trac688'

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/message.cc |    7 ++++---
 src/lib/dns/message.h  |    4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/message.cc b/src/lib/dns/message.cc
index bb8e176..2bc337a 100644
--- a/src/lib/dns/message.cc
+++ b/src/lib/dns/message.cc
@@ -522,7 +522,7 @@ Message::addRRset(const Section section, RRsetPtr rrset) {
 
 bool
 Message::hasRRset(const Section section, const Name& name,
-                  const RRClass& rrclass, const RRType& rrtype)
+                  const RRClass& rrclass, const RRType& rrtype) const
 {
     if (static_cast<int>(section) >= MessageImpl::NUM_SECTIONS) {
         isc_throw(OutOfRange, "Invalid message section: " << section);
@@ -540,8 +540,9 @@ Message::hasRRset(const Section section, const Name& name,
 }
 
 bool
-Message::hasRRset(const Section section, const RRsetPtr& rrset) {
-    return (hasRRset(section, rrset->getName(), rrset->getClass(), rrset->getType()));
+Message::hasRRset(const Section section, const RRsetPtr& rrset) const {
+    return (hasRRset(section, rrset->getName(),
+                     rrset->getClass(), rrset->getType()));
 }
 
 bool
diff --git a/src/lib/dns/message.h b/src/lib/dns/message.h
index 1c83e1e..aaa0d76 100644
--- a/src/lib/dns/message.h
+++ b/src/lib/dns/message.h
@@ -481,14 +481,14 @@ public:
     /// This should probably be extended to be a "find" method that returns
     /// a matching RRset if found.
     bool hasRRset(const Section section, const Name& name,
-                  const RRClass& rrclass, const RRType& rrtype);
+                  const RRClass& rrclass, const RRType& rrtype) const;
 
     /// \brief Determine whether the given section already has an RRset
     /// matching the one pointed to by the argumet
     ///
     /// \c section must be a valid constant of the \c Section type;
     /// otherwise, an exception of class \c OutOfRange will be thrown.
-    bool hasRRset(const Section section, const RRsetPtr& rrset);
+    bool hasRRset(const Section section, const RRsetPtr& rrset) const;
 
     /// \brief Remove RRSet from Message
     ///



More information about the bind10-changes mailing list