Commit f1b0e910 authored by Bob Halley's avatar Bob Halley
Browse files

additional data support

parent 4e37c87d
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: mx_15.c,v 1.17 1999/08/02 22:18:00 halley Exp $ */
/* $Id: mx_15.c,v 1.18 1999/08/03 01:21:23 halley Exp $ */
#ifndef RDATA_GENERIC_MX_15_C
#define RDATA_GENERIC_MX_15_C
......@@ -199,12 +199,17 @@ static dns_result_t
additionaldata_mx(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
dns_name_t name;
isc_region_t region;
REQUIRE(rdata->type == 15);
(void)add;
(void)arg;
dns_name_init(&name, NULL);
dns_rdata_toregion(rdata, &region);
isc_region_consume(&region, 2);
dns_name_fromregion(&name, &region);
return (DNS_R_SUCCESS);
return ((add)(arg, &name, dns_rdatatype_a));
}
#endif /* RDATA_GENERIC_MX_15_C */
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: ns_2.c,v 1.14 1999/08/02 22:18:00 halley Exp $ */
/* $Id: ns_2.c,v 1.15 1999/08/03 01:21:23 halley Exp $ */
#ifndef RDATA_GENERIC_NS_2_C
#define RDATA_GENERIC_NS_2_C
......@@ -172,12 +172,16 @@ static dns_result_t
additionaldata_ns(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
dns_name_t name;
isc_region_t region;
REQUIRE(rdata->type == 2);
(void)add;
(void)arg;
dns_name_init(&name, NULL);
dns_rdata_toregion(rdata, &region);
dns_name_fromregion(&name, &region);
return (DNS_R_SUCCESS);
return ((add)(arg, &name, dns_rdatatype_a));
}
#endif /* RDATA_GENERIC_NS_2_C */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment