BIND 10 #2382: introduce generic version of rdata::createRdata(text)

BIND 10 Development do-not-reply at isc.org
Tue Nov 27 18:28:47 UTC 2012


#2382: introduce generic version of rdata::createRdata(text)
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  UnAssigned
  jinmei                             |                Status:  new
                       Type:  task   |             Milestone:
                   Priority:         |  Sprint-20121204
  medium                             |            Resolution:
                  Component:         |             Sensitive:  0
  libdns++                           |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  5
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
  loadzone-ng                        |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
Description changed by jinmei:

Old description:

> Subtask of #2368, depend on #2374 (and slightly #2377), and,
> effectively, depend on many other tickets that implement this version
> for actual derived classes.
>
> The signature would look like this:
>
> {{{#!cpp
> ConstRdataPtr createRdata(const RRType& rrtype, const RRClass& rrclass,
>                           MasterLexer& lexer, const Name* origin,
>                           MasterLoader::Option options,
>                           MasterLoader::Callbacks& callbacks);
> }}}
> Parameter semantics should be mostly obvious.  `origin` may need an
> explanation: it may need for some RDATA that have domain name field
> and its text isn't absolute.
>
> Like the current version, it'll be basically a wrapper of actual
> derived class methods.  But see also BIND 9's
> lib/dns/rdata.c:dns_rdata_fromtext().  It has some other checks,
> so we may have to do similar things.

New description:

 Subtask of #2368, depend on #2374 (and slightly #2377) and #2497.

 The signature would look like this:

 {{{#!cpp
 ConstRdataPtr createRdata(const RRType& rrtype, const RRClass& rrclass,
                           MasterLexer& lexer, const Name* origin,
                           MasterLoader::Option options,
                           MasterLoader::Callbacks& callbacks);
 }}}
 Parameter semantics should be mostly obvious.  `origin` may need an
 explanation: it may need for some RDATA that have domain name field
 and its text isn't absolute.

 Like the current version, it'll be basically a wrapper of actual
 derived class methods (done in #2497).  But see also BIND 9's
 lib/dns/rdata.c:dns_rdata_fromtext().  It has some other checks,
 so we may have to do similar things.

--

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


More information about the bind10-tickets mailing list