Commit 0e919917 authored by Bob Halley's avatar Bob Halley
Browse files

class to rdclass

parent d981ca64
......@@ -1013,7 +1013,7 @@ t_dns_db_newversion(char **av) {
dns_rdata_init(&added_rdata);
added_rdata.data = (unsigned char *)"\x10\x00\x00\x01";
added_rdata.length = 4;
added_rdata.class = rdataclass;
added_rdata.rdclass = rdataclass;
added_rdata.type = rdatatype;
dns_rdataset_init(&added_rdataset);
......@@ -1348,7 +1348,7 @@ t_dns_db_closeversion_1(char **av) {
dns_rdata_init(&added_rdata);
added_rdata.data = (unsigned char *)"\x10\x00\x00\x01";
added_rdata.length = 4;
added_rdata.class = rdataclass;
added_rdata.rdclass = rdataclass;
added_rdata.type = new_rdatatype;
dns_rdataset_init(&added_rdataset);
......@@ -1694,7 +1694,7 @@ t_dns_db_closeversion_2(char **av) {
dns_rdata_init(&added_rdata);
added_rdata.data = (unsigned char *)"\x10\x00\x00\x01";
added_rdata.length = 4;
added_rdata.class = rdataclass;
added_rdata.rdclass = rdataclass;
added_rdata.type = new_rdatatype;
dns_rdataset_init(&added_rdataset);
......
......@@ -40,13 +40,13 @@ dns_result_t dns_rdataclass_fromtext(dns_rdataclass_t *classp,
* DNS_R_NOTIMPLEMENTED class is known, but not implemented
*/
dns_result_t dns_rdataclass_totext(dns_rdataclass_t class,
dns_result_t dns_rdataclass_totext(dns_rdataclass_t rdclass,
isc_buffer_t *target);
/*
* Put a textual representation of class 'class' into 'target'.
* Put a textual representation of class 'rdclass' into 'target'.
*
* Requires:
* 'class' is a valid class.
* 'rdclass' is a valid class.
*
* 'target' is a valid text buffer.
*
......
......@@ -725,7 +725,7 @@ getrdata(dns_name_t *name, isc_buffer_t *source, dns_message_t *msg,
*/
rdata->data = (unsigned char *)"";
rdata->length = 0;
rdata->class = rdclass;
rdata->rdclass = rdclass;
rdata->type = rdtype;
return DNS_R_SUCCESS;
}
......@@ -1048,7 +1048,7 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
msg->rdclass, rdtype, rdatalen, rdata);
if (result != DNS_R_SUCCESS)
return (result);
rdata->class = rdclass;
rdata->rdclass = rdclass;
/*
* XXXMLG Perform a totally ugly hack here to pull
......
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