2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

class to rdclass

This commit is contained in:
Bob Halley
1999-08-02 22:19:30 +00:00
parent d981ca6455
commit 0e919917cc
3 changed files with 8 additions and 8 deletions

View File

@@ -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);

View File

@@ -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.
*

View File

@@ -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