BIND 10 #3262: Add suuport for Rdata values for RRsets with class of NONE to libdns++

BIND 10 Development do-not-reply at isc.org
Wed Dec 11 13:29:45 UTC 2013


#3262: Add suuport for Rdata values for  RRsets with class of NONE to libdns++
-------------------------------------+-------------------------------------
            Reporter:  tmark         |                        Owner:
                Type:  defect        |  UnAssigned
            Priority:  high          |                       Status:
           Component:  libdns++      |  closed
            Keywords:                |                    Milestone:  New
           Sensitive:  0             |  Tasks
         Sub-Project:  DNS           |                   Resolution:
Estimated Difficulty:  0             |  complete
         Total Hours:  0             |                 CVSS Scoring:
                                     |              Defect Severity:  N/A
                                     |  Feature Depending on Ticket:
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
Changes (by tmark):

 * status:  new => closed
 * resolution:   => complete


Comment:

 There is an undocumented behavior which allows RData to be added to
 currently any class RRSet.
 The addRdata(const RdataPtr&)  variant, will simply add the RDataPtr
 without making a copy of
 the underlying object as do other variants.   It is in this object copy
 that the failure was occurring.  The following snippet currently works for
 any RRClass:

 {{{
         dns::rdata::ConstRdataPtr rdata;
         if (ncr_->isV4()) {
             rdata.reset(new dns::rdata::in::A(ncr_->getIpAddress()));
             rrset->addRdata(rdata);
         }
 }}}

 However, this is not 100% correct.  A new ticket is being opened which
 will add validation to
 this variant that will allow class the matching class as well as class
 NONE.

 This ticket is closed.

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


More information about the bind10-tickets mailing list