BIND 10 #595: Refactor function MessageEntry::getRRsetTrustLevel()

BIND 10 Development do-not-reply at isc.org
Fri Feb 25 10:44:45 UTC 2011


#595: Refactor function MessageEntry::getRRsetTrustLevel()
-------------------------------------+-------------------------------------
                 Reporter:           |                Owner:  zhanglikun
  zhanglikun                         |               Status:  reviewing
                     Type:  defect   |            Milestone:  R-Team-
                 Priority:  major    |  Sprint-20110308
                Component:           |           Resolution:
  resolver                           |            Sensitive:  0
                 Keywords:           |  Add Hours to Ticket:  0
Estimated Number of Hours:  0.0      |          Total Hours:  0
                Billable?:  1        |
                Internal?:  0        |
-------------------------------------+-------------------------------------
Changes (by jelte):

 * owner:  jelte => zhanglikun


Comment:

 in getRRsetTrustLevel:

   !QuestionIterator quest_iter = message.beginQuestion();
   const Name& query_name = (*quest_iter)->getName();

 i'd check whether we really do have a question section here (i guess
 assert is good enough);
 assert(quest_iter != message.endQuestion());
 between these lines


 in getDeepestDNAMEOwner(): this assumes that if there are multiple DNAMEs,
 they are ordered from shallowest to deepest. Is that a safe assumption? (i
 don't suspect so. btw if is *is* so, you wouldn't need to compare but
 could simply take the last dname).

 answerHasNonAuthRecord(): the return value of this seems slightly
 different than the name or the comment above it would suggest; if i only
 look at the name or the comment, I would suspect it to also return true if
 the answer section contains out-of-zone data, or data below a delegation
 point. (not that i think this can happen; our responseclassifier would
 have flagged that already i think, but it might be worth explaining what
 it is exactly that it checks in the comment).

 Taken out of its context, it would also give (i think) the wrong result if
 you called it with an answer section that only contains 1 cname record.
 Again, this shouldn't happen with the way it is called right now, but to
 prevent future changes from breaking it, i'd add more explanation to the
 function :)

-- 
Ticket URL: <http://bind10.isc.org/ticket/595#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list