+6087. [cleanup] Remove support for the `DNS_NAME_DOWNCASE` option to
+ the various dns_*_fromwire() functions. It has long
+ been unused and is unsupported since change 6022.
+ [GL !7467]
+
6086. [cleanup] Remove some remnants of bitstring labels. [GL !7196]
6085. [func] Add isc_time_monotonic() to simplify time measurements.
isc_buffer_init(&b, m->query_zone.data, m->query_zone.len);
isc_buffer_add(&b, m->query_zone.len);
- result = dns_name_fromwire(name, &b, DNS_DECOMPRESS_NEVER, 0,
+ result = dns_name_fromwire(name, &b, DNS_DECOMPRESS_NEVER,
NULL);
if (result == ISC_R_SUCCESS) {
printf(" query_zone: ");
isc_buffer_add(&new_buf, size);
isc_buffer_setactive(&new_buf, size);
isc_buffer_forward(&new_buf, size / 2);
- new_result = dns_name_fromwire(new_name, &new_buf, dctx, 0, NULL);
+ new_result = dns_name_fromwire(new_name, &new_buf, dctx, NULL);
isc_buffer_constinit(&old_buf, data, size);
isc_buffer_add(&old_buf, size);
* reading a packet)
*/
CHECK(dns_rdata_fromwire(&rdata1, rdclass, rdtype, &source,
- DNS_DECOMPRESS_NEVER, 0, &target));
+ DNS_DECOMPRESS_NEVER, &target));
assert(rdata1.length == size);
/*
dns_rdata_init(&rdata);
isc_buffer_setactive(databuf, isc_buffer_usedlength(databuf));
CHECK(dns_rdata_fromwire(&rdata, rdclass, rdtype, databuf,
- DNS_DECOMPRESS_NEVER, 0, &b));
+ DNS_DECOMPRESS_NEVER, &b));
if (rdtype == dns_rdatatype_ds) {
CHECK(dns_rdata_tostruct(&rdata, &ds, NULL));
#define TOTEXTTYPE "rdata->type"
#define TOTEXTDEF "use_default = true"
-#define FROMWIREARGS "rdclass, type, source, dctx, options, target"
+#define FROMWIREARGS "rdclass, type, source, dctx, target"
#define FROMWIRECLASS "rdclass"
#define FROMWIRETYPE "type"
#define FROMWIREDEF "use_default = true"
isc_result_t
dns_name_fromwire(dns_name_t *name, isc_buffer_t *source, dns_decompress_t dctx,
- unsigned int options, isc_buffer_t *target);
+ isc_buffer_t *target);
/*%<
* Copy the possibly-compressed name at source (active region) into target,
* decompressing it.
isc_result_t
dns_rdata_fromwire(dns_rdata_t *rdata, dns_rdataclass_t rdclass,
dns_rdatatype_t type, isc_buffer_t *source,
- dns_decompress_t dctx, unsigned int options,
- isc_buffer_t *target);
+ dns_decompress_t dctx, isc_buffer_t *target);
/*%<
* Copy the possibly-compressed rdata at source into the target region.
*
* Notes:
*\li Name decompression policy is controlled by 'dctx'.
*
- * 'options'
- *\li DNS_RDATA_DOWNCASE downcase domain names when they are copied
- * into target.
- *
* Requires:
*
*\li 'rdclass' and 'type' are valid.
*/
isc_buffer_setactive(&j->it.source,
j->it.source.used - j->it.source.current);
- CHECK(dns_name_fromwire(&j->it.name, &j->it.source, j->it.dctx, 0,
+ CHECK(dns_name_fromwire(&j->it.name, &j->it.source, j->it.dctx,
&j->it.target));
/*
isc_buffer_setactive(&j->it.source, rdlen);
dns_rdata_reset(&j->it.rdata);
CHECK(dns_rdata_fromwire(&j->it.rdata, rdclass, rdtype, &j->it.source,
- j->it.dctx, 0, &j->it.target));
+ j->it.dctx, &j->it.target));
j->it.ttl = ttl;
j->it.xpos += sizeof(journal_rawrrhdr_t) + rrhdr.size;
}
isc_buffer_setactive(&target, (unsigned int)namelen);
- result = dns_name_fromwire(name, &target, dctx, 0, NULL);
+ result = dns_name_fromwire(name, &target, dctx, NULL);
if (result != ISC_R_SUCCESS) {
goto cleanup;
}
(unsigned int)rdlen);
result = dns_rdata_fromwire(
&rdata[i], rdatalist.rdclass, rdatalist.type,
- &target, dctx, 0, &buf);
+ &target, dctx, &buf);
if (result != ISC_R_SUCCESS) {
goto cleanup;
}
*/
tries = 0;
while (tries < 2) {
- result = dns_name_fromwire(name, source, dctx, 0, scratch);
+ result = dns_name_fromwire(name, source, dctx, scratch);
if (result == ISC_R_NOSPACE) {
tries++;
/* XXX possibly change this to a while (tries < 2) loop */
for (;;) {
result = dns_rdata_fromwire(rdata, rdclass, rdtype, source,
- dctx, 0, scratch);
+ dctx, scratch);
if (result == ISC_R_NOSPACE) {
if (tries == 0) {
isc_result_t
dns_name_fromwire(dns_name_t *const name, isc_buffer_t *const source,
- const dns_decompress_t dctx, unsigned int options,
- isc_buffer_t *target) {
+ const dns_decompress_t dctx, isc_buffer_t *target) {
/*
* Copy the name at source into target, decompressing it.
*
* correct way to set our "consumed" variable.
*/
- REQUIRE((options & DNS_NAME_DOWNCASE) == 0);
REQUIRE(VALID_NAME(name));
REQUIRE(BINDABLE(name));
REQUIRE((target != NULL && ISC_BUFFER_VALID(target)) ||
isc_buffer_init(&buf2, buf, (unsigned int)buflen);
result = dns_rdata_fromwire(target, src->rdclass,
dns_rdatatype_nsec3param, &buf1,
- DNS_DECOMPRESS_NEVER, 0, &buf2);
+ DNS_DECOMPRESS_NEVER, &buf2);
return (result == ISC_R_SUCCESS);
}
#define ARGS_FROMWIRE \
int rdclass, dns_rdatatype_t type, isc_buffer_t *source, \
- dns_decompress_t dctx, unsigned int options, \
- isc_buffer_t *target
+ dns_decompress_t dctx, isc_buffer_t *target
-#define CALL_FROMWIRE rdclass, type, source, dctx, options, target
+#define CALL_FROMWIRE rdclass, type, source, dctx, target
#define ARGS_TOWIRE \
dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target
dns_fixedname_t fixed;
RETERR(dns_name_fromwire(dns_fixedname_initname(&fixed), source,
- DNS_DECOMPRESS_DEFAULT, 0, NULL));
+ DNS_DECOMPRESS_DEFAULT, NULL));
/*
* There should be a public key or signature after the key name.
*/
isc_result_t
dns_rdata_fromwire(dns_rdata_t *rdata, dns_rdataclass_t rdclass,
dns_rdatatype_t type, isc_buffer_t *source,
- dns_decompress_t dctx, unsigned int options,
- isc_buffer_t *target) {
+ dns_decompress_t dctx, isc_buffer_t *target) {
isc_result_t result = ISC_R_NOTIMPLEMENTED;
isc_region_t region;
isc_buffer_t ss;
isc_buffer_setactive(src, isc_buffer_usedlength(src));
result = dns_rdata_fromwire(NULL, rdclass, type, src,
- DNS_DECOMPRESS_NEVER, 0, dest);
+ DNS_DECOMPRESS_NEVER, dest);
return (result);
}
* Algorithm Name.
*/
dns_name_init(&name, NULL);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
isc_buffer_activeregion(source, &sr);
/*
dns_name_init(&name, NULL);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
isc_buffer_activeregion(source, &sregion);
isc_buffer_availableregion(target, &tregion);
memmove(tr.base, sr.base, 2);
isc_buffer_forward(source, 2);
isc_buffer_add(target, 2);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
RETERR(mem_tobuffer(target, region.base, 2));
isc_buffer_forward(source, 2);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options,
- target));
+ return (dns_name_fromwire(&name, source, dctx, target));
default:
isc_buffer_forward(source, region.length);
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
/*
* Flags
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
if (sr.length < 6) {
dctx = dns_decompress_setpermitted(dctx, true);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
UNUSED(type);
UNUSED(rdclass);
- UNUSED(options);
UNUSED(dctx);
/*
dctx = dns_decompress_setpermitted(dctx, false);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
REQUIRE(type == dns_rdatatype_doa);
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
REQUIRE(type == dns_rdatatype_eui48);
UNUSED(type);
- UNUSED(options);
UNUSED(rdclass);
UNUSED(dctx);
REQUIRE(type == dns_rdatatype_eui64);
UNUSED(type);
- UNUSED(options);
UNUSED(rdclass);
UNUSED(dctx);
UNUSED(type);
UNUSED(dctx);
UNUSED(rdclass);
- UNUSED(options);
for (i = 0; i < 3; i++) {
RETERR(txt_fromwire(source, target));
UNUSED(type);
UNUSED(dctx);
UNUSED(rdclass);
- UNUSED(options);
RETERR(txt_fromwire(source, target));
return (txt_fromwire(source, target));
dctx = dns_decompress_setpermitted(dctx, false);
while (isc_buffer_activelength(source) > 0) {
dns_name_init(&name, NULL);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
}
return (ISC_R_SUCCESS);
}
case 3:
RETERR(mem_tobuffer(target, region.base, 3));
isc_buffer_forward(source, 3);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
isc_buffer_activeregion(source, ®ion);
isc_buffer_forward(source, region.length);
if (region.length < 1) {
UNUSED(type);
UNUSED(dctx);
UNUSED(rdclass);
- UNUSED(options);
RETERR(txt_fromwire(source, target));
if (buffer_empty(source)) {
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
if (sr.length < 4) {
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
isc_buffer_forward(source, sr.length);
REQUIRE(type == dns_rdatatype_l32);
UNUSED(type);
- UNUSED(options);
UNUSED(rdclass);
UNUSED(dctx);
REQUIRE(type == dns_rdatatype_l64);
UNUSED(type);
- UNUSED(options);
UNUSED(rdclass);
UNUSED(dctx);
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
if (sr.length < 1) {
}
RETERR(mem_tobuffer(target, sregion.base, 2));
isc_buffer_forward(source, 2);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
dctx = dns_decompress_setpermitted(dctx, true);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
dctx = dns_decompress_setpermitted(dctx, true);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
dctx = dns_decompress_setpermitted(dctx, true);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
dctx = dns_decompress_setpermitted(dctx, true);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
dns_name_init(&rmail, NULL);
dns_name_init(&email, NULL);
- RETERR(dns_name_fromwire(&rmail, source, dctx, options, target));
- return (dns_name_fromwire(&email, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&rmail, source, dctx, target));
+ return (dns_name_fromwire(&email, source, dctx, target));
}
static isc_result_t
dctx = dns_decompress_setpermitted(dctx, true);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
}
RETERR(mem_tobuffer(target, sregion.base, 2));
isc_buffer_forward(source, 2);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
/*
* Replacement.
*/
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
REQUIRE(type == dns_rdatatype_nid);
UNUSED(type);
- UNUSED(options);
UNUSED(rdclass);
UNUSED(dctx);
dctx = dns_decompress_setpermitted(dctx, true);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
UNUSED(type);
UNUSED(rdclass);
- UNUSED(options);
UNUSED(dctx);
isc_buffer_activeregion(source, &sr);
UNUSED(type);
UNUSED(rdclass);
- UNUSED(options);
UNUSED(dctx);
isc_buffer_activeregion(source, &sr);
dctx = dns_decompress_setpermitted(dctx, false);
dns_name_init(&name, NULL);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
isc_buffer_activeregion(source, &sr);
RETERR(typemap_test(&sr, false));
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
isc_buffer_forward(source, sr.length);
dctx = dns_decompress_setpermitted(dctx, false);
dns_name_init(&name, NULL);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
isc_buffer_activeregion(source, &sr);
if (sr.length > 0 && ((sr.base[0] & 0x80) != 0 || sr.length > 16 ||
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
/*
* Keyring.
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sregion);
if (sregion.length == 0) {
dctx = dns_decompress_setpermitted(dctx, true);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
dns_name_init(&rmail, NULL);
dns_name_init(&email, NULL);
- RETERR(dns_name_fromwire(&rmail, source, dctx, options, target));
- return (dns_name_fromwire(&email, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&rmail, source, dctx, target));
+ return (dns_name_fromwire(&email, source, dctx, target));
}
static isc_result_t
* Signer.
*/
dns_name_init(&name, NULL);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
/*
* Sig.
memmove(tregion.base, sregion.base, 2);
isc_buffer_forward(source, 2);
isc_buffer_add(target, 2);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
* Signer.
*/
dns_name_init(&name, NULL);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
/*
* Sig.
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
if (sr.length < 3) {
dns_name_init(&mname, NULL);
dns_name_init(&rname, NULL);
- RETERR(dns_name_fromwire(&mname, source, dctx, options, target));
- RETERR(dns_name_fromwire(&rname, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&mname, source, dctx, target));
+ RETERR(dns_name_fromwire(&rname, source, dctx, target));
isc_buffer_activeregion(source, &sregion);
isc_buffer_availableregion(target, &tregion);
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
if (sr.length < 2) {
dns_name_init(&prev, NULL);
dns_name_init(&next, NULL);
- RETERR(dns_name_fromwire(&prev, source, dctx, options, target));
- return (dns_name_fromwire(&next, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&prev, source, dctx, target));
+ return (dns_name_fromwire(&next, source, dctx, target));
}
static isc_result_t
* Algorithm.
*/
dns_name_init(&name, NULL);
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
/*
* Inception: 4
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
UNUSED(type);
UNUSED(dctx);
UNUSED(rdclass);
- UNUSED(options);
do {
result = txt_fromwire(source, target);
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
/*
* Priority, weight
UNUSED(type);
UNUSED(dctx);
UNUSED(rdclass);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
if (sr.length < 5 || sr.base[0] != (sr.length - 1)) {
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
UNUSED(type);
UNUSED(dctx);
- UNUSED(options);
UNUSED(rdclass);
isc_buffer_activeregion(source, &sregion);
}
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
UNUSED(type);
UNUSED(dctx);
- UNUSED(options);
UNUSED(rdclass);
isc_buffer_activeregion(source, &sregion);
UNUSED(type);
UNUSED(dctx);
- UNUSED(options);
UNUSED(rdclass);
isc_buffer_activeregion(source, &sregion);
UNUSED(type);
UNUSED(dctx);
UNUSED(rdclass);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
isc_buffer_availableregion(target, &tr);
isc_buffer_add(&b, apl->apl_len);
isc_buffer_setactive(&b, apl->apl_len);
return (fromwire_in_apl(rdclass, type, &b, DNS_DECOMPRESS_DEFAULT,
- false, target));
+ target));
}
static isc_result_t
UNUSED(type);
UNUSED(dctx);
- UNUSED(options);
UNUSED(rdclass);
isc_buffer_activeregion(source, ®ion);
UNUSED(type);
UNUSED(rdclass);
UNUSED(dctx);
- UNUSED(options);
isc_buffer_activeregion(source, &sr);
if (sr.length == 0) {
UNUSED(type);
UNUSED(dctx);
- UNUSED(options);
UNUSED(rdclass);
isc_buffer_activeregion(source, ®ion);
}
RETERR(mem_tobuffer(target, sregion.base, 2));
isc_buffer_forward(source, 2);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
UNUSED(type);
UNUSED(dctx);
- UNUSED(options);
UNUSED(rdclass);
isc_buffer_activeregion(source, ®ion);
dctx = dns_decompress_setpermitted(dctx, false);
dns_name_init(&name, NULL);
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
UNUSED(type);
UNUSED(dctx);
- UNUSED(options);
UNUSED(rdclass);
isc_buffer_activeregion(source, ®ion);
/*
* MAP822.
*/
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
/*
* MAPX400.
*/
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
/*
* Target.
*/
- return (dns_name_fromwire(&name, source, dctx, options, target));
+ return (dns_name_fromwire(&name, source, dctx, target));
}
static isc_result_t
/*
* TargetName.
*/
- RETERR(dns_name_fromwire(&name, source, dctx, options, target));
+ RETERR(dns_name_fromwire(&name, source, dctx, target));
if (alias) {
return (ISC_R_SUCCESS);
UNUSED(type);
UNUSED(dctx);
- UNUSED(options);
UNUSED(rdclass);
isc_buffer_activeregion(source, &sr);
isc_buffer_setactive(&buf, size);
while (isc_buffer_consumedlength(&buf) < size) {
- result = dns_name_fromwire(name, &buf, dctx, 0, NULL);
+ result = dns_name_fromwire(name, &buf, dctx, NULL);
if (result != ISC_R_SUCCESS) {
isc_buffer_forward(&buf, 1);
}
dns_name_init(&name, NULL);
RUNTIME_CHECK(isc_buffer_getuint16(&source) == 0xEAD);
- RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, 0, &target) ==
+ RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, &target) ==
ISC_R_SUCCESS);
- RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, 0, &target) ==
+ RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, &target) ==
ISC_R_SUCCESS);
- RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, 0, &target) ==
+ RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, &target) ==
ISC_R_SUCCESS);
- RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, 0, &target) ==
+ RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, &target) ==
ISC_R_SUCCESS);
assert_int_equal(target.used, expanded_length);
isc_buffer_setactive(&source, sizeof(data));
dns_name_init(&name, NULL);
- (void)dns_name_fromwire(&name, &source, &dctx, 0, &target);
+ (void)dns_name_fromwire(&name, &source, &dctx, &target);
}
return (NULL);
* Try converting input data into uncompressed wire form.
*/
result = dns_rdata_fromwire(rdata, rdclass, type, &source,
- DNS_DECOMPRESS_ALWAYS, 0, &target);
+ DNS_DECOMPRESS_ALWAYS, &target);
return (result);
}