[asterisk-dev] [Code Review] 4542: DNS: Add NAPTR support and tests

Mark Michelson reviewboard at asterisk.org
Fri Mar 27 09:45:03 CDT 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4542/
-----------------------------------------------------------

(Updated March 27, 2015, 2:45 p.m.)


Review request for Asterisk Developers.


Changes
-------

Uncomment a test case from the nominal NAPTR test in test_dns_naptr.c


Repository: Asterisk


Description
-------

This adds NAPTR support for DNS in Asterisk.

The main parts of this are the functions for allocating a DNS NAPTR record when a resolver wishes to add a NAPTR record, the sorting algorithm for sorting DNS NAPTR records, and the tests that use a mock DNS resolver.

NOTE: There is likely to be some overlap here in this review and Josh's SRV review (/r/4528). Our stance on this is that we will factor out the duplicated code once both SRV and NAPTR have been merged into the main DNS branch. The factoring out of common functions will be placed in its own review.


Diffs (updated)
-----

  /team/group/dns/tests/test_dns_naptr.c PRE-CREATION 
  /team/group/dns/res/res_resolver_unbound.c 433573 
  /team/group/dns/main/dns_naptr.c 433573 
  /team/group/dns/main/dns_core.c 433573 
  /team/group/dns/include/asterisk/dns_internal.h 433573 

Diff: https://reviewboard.asterisk.org/r/4542/diff/


Testing
-------

All previous DNS tests continue to pass, and all new tests added in this review pass as well.


Thanks,

Mark Michelson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150327/93230172/attachment-0001.html>


More information about the asterisk-dev mailing list