mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 03:51:16 -05:00
added UNUSED() macros for arguments that end up unused when assertion checking
is turned off
This commit is contained in:
parent
f8abaa0fae
commit
63cef8bde8
41 changed files with 178 additions and 58 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: tsig_250.c,v 1.45 2000/11/08 01:55:31 bwelling Exp $ */
|
||||
/* $Id: tsig_250.c,v 1.46 2000/12/01 01:40:14 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */
|
||||
|
||||
|
|
@ -38,6 +38,8 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
|
|||
REQUIRE(type == 250);
|
||||
REQUIRE(rdclass == 255);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* Algorithm Name.
|
||||
*/
|
||||
|
|
@ -247,6 +249,8 @@ fromwire_any_tsig(ARGS_FROMWIRE) {
|
|||
REQUIRE(type == 250);
|
||||
REQUIRE(rdclass == 255);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
|
||||
|
||||
/*
|
||||
|
|
@ -356,6 +360,8 @@ fromstruct_any_tsig(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(tsig->common.rdclass == rdclass);
|
||||
REQUIRE(tsig->common.rdtype == type);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* Algorithm Name.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: afsdb_18.c,v 1.33 2000/11/08 01:55:33 bwelling Exp $ */
|
||||
/* $Id: afsdb_18.c,v 1.34 2000/12/01 01:40:15 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */
|
||||
|
||||
|
|
@ -174,6 +174,8 @@ fromstruct_afsdb(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(afsdb->common.rdclass == rdclass);
|
||||
REQUIRE(afsdb->common.rdtype == type);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint16_tobuffer(afsdb->subtype, target));
|
||||
dns_name_toregion(&afsdb->server, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cert_37.c,v 1.34 2000/11/08 01:55:34 bwelling Exp $ */
|
||||
/* $Id: cert_37.c,v 1.35 2000/12/01 01:40:16 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */
|
||||
|
||||
|
|
@ -170,6 +170,8 @@ fromstruct_cert(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(cert->common.rdtype == type);
|
||||
REQUIRE(cert->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint16_tobuffer(cert->type, target));
|
||||
RETERR(uint16_tobuffer(cert->key_tag, target));
|
||||
RETERR(uint8_tobuffer(cert->algorithm, target));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cname_5.c,v 1.37 2000/11/08 01:55:35 bwelling Exp $ */
|
||||
/* $Id: cname_5.c,v 1.38 2000/12/01 01:40:17 gson Exp $ */
|
||||
|
||||
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
|
||||
|
||||
|
|
@ -131,6 +131,8 @@ fromstruct_cname(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(cname->common.rdtype == type);
|
||||
REQUIRE(cname->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&cname->cname, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dname_39.c,v 1.27 2000/11/08 01:55:36 bwelling Exp $ */
|
||||
/* $Id: dname_39.c,v 1.28 2000/12/01 01:40:18 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 16:52:38 PST 2000 by explorer */
|
||||
|
||||
|
|
@ -131,6 +131,8 @@ fromstruct_dname(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(dname->common.rdtype == type);
|
||||
REQUIRE(dname->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&dname->dname, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: gpos_27.c,v 1.26 2000/11/08 01:55:38 bwelling Exp $ */
|
||||
/* $Id: gpos_27.c,v 1.27 2000/12/01 01:40:19 gson Exp $ */
|
||||
|
||||
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
|
||||
|
||||
|
|
@ -118,6 +118,8 @@ fromstruct_gpos(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(gpos->common.rdtype == type);
|
||||
REQUIRE(gpos->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint8_tobuffer(gpos->long_len, target));
|
||||
RETERR(mem_tobuffer(target, gpos->longitude, gpos->long_len));
|
||||
RETERR(uint8_tobuffer(gpos->lat_len, target));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: hinfo_13.c,v 1.31 2000/11/08 01:55:39 bwelling Exp $ */
|
||||
/* $Id: hinfo_13.c,v 1.32 2000/12/01 01:40:21 gson Exp $ */
|
||||
|
||||
/*
|
||||
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
|
||||
|
|
@ -110,6 +110,8 @@ fromstruct_hinfo(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(hinfo->common.rdtype == type);
|
||||
REQUIRE(hinfo->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint8_tobuffer(hinfo->cpu_len, target));
|
||||
RETERR(mem_tobuffer(target, hinfo->cpu, hinfo->cpu_len));
|
||||
RETERR(uint8_tobuffer(hinfo->os_len, target));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: isdn_20.c,v 1.24 2000/11/08 01:55:40 bwelling Exp $ */
|
||||
/* $Id: isdn_20.c,v 1.25 2000/12/01 01:40:22 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 16:53:11 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -118,6 +118,8 @@ fromstruct_isdn(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(isdn->common.rdtype == type);
|
||||
REQUIRE(isdn->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint8_tobuffer(isdn->isdn_len, target));
|
||||
RETERR(mem_tobuffer(target, isdn->isdn, isdn->isdn_len));
|
||||
RETERR(uint8_tobuffer(isdn->subaddress_len, target));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: key_25.c,v 1.34 2000/11/08 01:55:41 bwelling Exp $ */
|
||||
/* $Id: key_25.c,v 1.35 2000/12/01 01:40:23 gson Exp $ */
|
||||
|
||||
/*
|
||||
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
|
||||
|
|
@ -37,12 +37,12 @@ fromtext_key(ARGS_FROMTEXT) {
|
|||
dns_secproto_t proto;
|
||||
dns_keyflags_t flags;
|
||||
|
||||
REQUIRE(type == 25);
|
||||
|
||||
UNUSED(rdclass);
|
||||
UNUSED(origin);
|
||||
UNUSED(downcase);
|
||||
|
||||
REQUIRE(type == 25);
|
||||
|
||||
/* flags */
|
||||
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
|
||||
ISC_FALSE));
|
||||
|
|
@ -145,11 +145,11 @@ static inline isc_result_t
|
|||
towire_key(ARGS_TOWIRE) {
|
||||
isc_region_t sr;
|
||||
|
||||
UNUSED(cctx);
|
||||
|
||||
REQUIRE(rdata->type == 25);
|
||||
REQUIRE(rdata->length != 0);
|
||||
|
||||
UNUSED(cctx);
|
||||
|
||||
dns_rdata_toregion(rdata, &sr);
|
||||
return (mem_tobuffer(target, sr.base, sr.length));
|
||||
}
|
||||
|
|
@ -179,6 +179,8 @@ fromstruct_key(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(key->common.rdtype == type);
|
||||
REQUIRE(key->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/* Flags */
|
||||
RETERR(uint16_tobuffer(key->flags, target));
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: loc_29.c,v 1.25 2000/11/08 01:55:42 bwelling Exp $ */
|
||||
/* $Id: loc_29.c,v 1.26 2000/12/01 01:40:24 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 18:13:09 PST 2000 by explorer */
|
||||
|
||||
|
|
@ -629,6 +629,8 @@ fromstruct_loc(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(loc->common.rdtype == type);
|
||||
REQUIRE(loc->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
if (loc->v.v0.version != 0)
|
||||
return (ISC_R_NOTIMPLEMENTED);
|
||||
RETERR(uint8_tobuffer(loc->v.v0.version, target));
|
||||
|
|
@ -706,6 +708,7 @@ freestruct_loc(ARGS_FREESTRUCT) {
|
|||
REQUIRE(loc->common.rdtype == 29);
|
||||
|
||||
UNUSED(source);
|
||||
UNUSED(loc);
|
||||
}
|
||||
|
||||
static inline isc_result_t
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mb_7.c,v 1.35 2000/11/08 01:55:44 bwelling Exp $ */
|
||||
/* $Id: mb_7.c,v 1.36 2000/12/01 01:40:25 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 17:31:26 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -130,6 +130,8 @@ fromstruct_mb(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(mb->common.rdtype == type);
|
||||
REQUIRE(mb->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&mb->mb, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: md_3.c,v 1.37 2000/11/08 01:55:45 bwelling Exp $ */
|
||||
/* $Id: md_3.c,v 1.38 2000/12/01 01:40:26 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 17:48:20 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -130,6 +130,8 @@ fromstruct_md(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(md->common.rdtype == type);
|
||||
REQUIRE(md->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&md->md, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mf_4.c,v 1.35 2000/11/08 01:55:46 bwelling Exp $ */
|
||||
/* $Id: mf_4.c,v 1.36 2000/12/01 01:40:27 gson Exp $ */
|
||||
|
||||
/* reviewed: Wed Mar 15 17:47:33 PST 2000 by brister */
|
||||
|
||||
|
|
@ -130,6 +130,8 @@ fromstruct_mf(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(mf->common.rdtype == type);
|
||||
REQUIRE(mf->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&mf->mf, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mg_8.c,v 1.33 2000/11/08 01:55:47 bwelling Exp $ */
|
||||
/* $Id: mg_8.c,v 1.34 2000/12/01 01:40:28 gson Exp $ */
|
||||
|
||||
/* reviewed: Wed Mar 15 17:49:21 PST 2000 by brister */
|
||||
|
||||
|
|
@ -130,6 +130,8 @@ fromstruct_mg(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(mg->common.rdtype == type);
|
||||
REQUIRE(mg->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&mg->mg, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: minfo_14.c,v 1.34 2000/11/08 01:55:48 bwelling Exp $ */
|
||||
/* $Id: minfo_14.c,v 1.35 2000/12/01 01:40:30 gson Exp $ */
|
||||
|
||||
/* reviewed: Wed Mar 15 17:45:32 PST 2000 by brister */
|
||||
|
||||
|
|
@ -176,6 +176,8 @@ fromstruct_minfo(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(minfo->common.rdtype == type);
|
||||
REQUIRE(minfo->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&minfo->rmailbox, ®ion);
|
||||
RETERR(isc_buffer_copyregion(target, ®ion));
|
||||
dns_name_toregion(&minfo->emailbox, ®ion);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mr_9.c,v 1.32 2000/11/08 01:55:49 bwelling Exp $ */
|
||||
/* $Id: mr_9.c,v 1.33 2000/12/01 01:40:31 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 21:30:35 EST 2000 by tale */
|
||||
|
||||
|
|
@ -130,6 +130,8 @@ fromstruct_mr(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(mr->common.rdtype == type);
|
||||
REQUIRE(mr->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&mr->mr, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mx_15.c,v 1.42 2000/11/08 01:55:50 bwelling Exp $ */
|
||||
/* $Id: mx_15.c,v 1.43 2000/12/01 01:40:32 gson Exp $ */
|
||||
|
||||
/* reviewed: Wed Mar 15 18:05:46 PST 2000 by brister */
|
||||
|
||||
|
|
@ -160,6 +160,8 @@ fromstruct_mx(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(mx->common.rdtype == type);
|
||||
REQUIRE(mx->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint16_tobuffer(mx->pref, target));
|
||||
dns_name_toregion(&mx->mx, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ns_2.c,v 1.36 2000/11/08 01:55:52 bwelling Exp $ */
|
||||
/* $Id: ns_2.c,v 1.37 2000/12/01 01:40:33 gson Exp $ */
|
||||
|
||||
/* Reviewed: Wed Mar 15 18:15:00 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -130,6 +130,8 @@ fromstruct_ns(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(ns->common.rdtype == type);
|
||||
REQUIRE(ns->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&ns->name, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: null_10.c,v 1.29 2000/10/25 05:43:47 marka Exp $ */
|
||||
/* $Id: null_10.c,v 1.30 2000/12/01 01:40:34 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */
|
||||
|
||||
|
|
@ -100,6 +100,8 @@ fromstruct_null(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((null->data != NULL && null->length != 0) ||
|
||||
(null->data == NULL && null->length == 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
return (mem_tobuffer(target, null->data, null->length));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nxt_30.c,v 1.43 2000/11/14 18:14:44 gson Exp $ */
|
||||
/* $Id: nxt_30.c,v 1.44 2000/12/01 01:40:35 gson Exp $ */
|
||||
|
||||
/* reviewed: Wed Mar 15 18:21:15 PST 2000 by brister */
|
||||
|
||||
|
|
@ -203,6 +203,8 @@ fromstruct_nxt(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(nxt->common.rdclass == rdclass);
|
||||
REQUIRE(nxt->typebits != NULL || nxt->len == 0);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&nxt->next, ®ion);
|
||||
RETERR(isc_buffer_copyregion(target, ®ion));
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: opt_41.c,v 1.18 2000/08/01 01:25:48 tale Exp $ */
|
||||
/* $Id: opt_41.c,v 1.19 2000/12/01 01:40:36 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 14:06:44 PST 2000 by gson */
|
||||
|
||||
|
|
@ -167,6 +167,8 @@ fromstruct_opt(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((opt->options != NULL && opt->length != 0) ||
|
||||
(opt->options == NULL && opt->length == 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
region.base = opt->options;
|
||||
region.length = opt->length;
|
||||
while (region.length >= 4) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ptr_12.c,v 1.33 2000/11/08 01:55:55 bwelling Exp $ */
|
||||
/* $Id: ptr_12.c,v 1.34 2000/12/01 01:40:37 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 14:05:12 PST 2000 by explorer */
|
||||
|
||||
|
|
@ -130,6 +130,8 @@ fromstruct_ptr(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(ptr->common.rdtype == type);
|
||||
REQUIRE(ptr->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&ptr->ptr, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rp_17.c,v 1.29 2000/11/08 01:55:56 bwelling Exp $ */
|
||||
/* $Id: rp_17.c,v 1.30 2000/12/01 01:40:39 gson Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
|
|
@ -174,6 +174,8 @@ fromstruct_rp(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(rp->common.rdtype == type);
|
||||
REQUIRE(rp->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&rp->mail, ®ion);
|
||||
RETERR(isc_buffer_copyregion(target, ®ion));
|
||||
dns_name_toregion(&rp->text, ®ion);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rt_21.c,v 1.31 2000/11/08 01:55:57 bwelling Exp $ */
|
||||
/* $Id: rt_21.c,v 1.32 2000/12/01 01:40:40 gson Exp $ */
|
||||
|
||||
/* reviewed: Thu Mar 16 15:02:31 PST 2000 by brister */
|
||||
|
||||
|
|
@ -169,6 +169,8 @@ fromstruct_rt(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(rt->common.rdtype == type);
|
||||
REQUIRE(rt->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint16_tobuffer(rt->preference, target));
|
||||
dns_name_toregion(&rt->host, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sig_24.c,v 1.47 2000/11/08 01:55:58 bwelling Exp $ */
|
||||
/* $Id: sig_24.c,v 1.48 2000/12/01 01:40:41 gson Exp $ */
|
||||
|
||||
/* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */
|
||||
|
||||
|
|
@ -364,6 +364,8 @@ fromstruct_sig(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((sig->signature != NULL && sig->siglen != 0) ||
|
||||
(sig->signature == NULL && sig->siglen == 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* Type covered.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: soa_6.c,v 1.46 2000/11/08 01:55:59 bwelling Exp $ */
|
||||
/* $Id: soa_6.c,v 1.47 2000/12/01 01:40:42 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 15:18:32 PST 2000 by explorer */
|
||||
|
||||
|
|
@ -263,6 +263,8 @@ fromstruct_soa(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(soa->common.rdtype == type);
|
||||
REQUIRE(soa->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&soa->origin, ®ion);
|
||||
RETERR(isc_buffer_copyregion(target, ®ion));
|
||||
dns_name_toregion(&soa->mname, ®ion);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: tkey_249.c,v 1.40 2000/11/08 01:56:01 bwelling Exp $ */
|
||||
/* $Id: tkey_249.c,v 1.41 2000/12/01 01:40:43 gson Exp $ */
|
||||
|
||||
/*
|
||||
* Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley.
|
||||
|
|
@ -352,6 +352,8 @@ fromstruct_tkey(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((tkey->other == NULL && tkey->otherlen == 0) ||
|
||||
(tkey->other != NULL && tkey->otherlen != 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* Algorithm Name.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: txt_16.c,v 1.31 2000/11/08 01:56:02 bwelling Exp $ */
|
||||
/* $Id: txt_16.c,v 1.32 2000/12/01 01:40:44 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 15:40:00 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -129,6 +129,8 @@ fromstruct_txt(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((txt->txt == NULL && txt->txt_len == 0) ||
|
||||
(txt->txt != NULL && txt->txt_len != 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
region.base = txt->txt;
|
||||
region.length = txt->txt_len;
|
||||
while (region.length > 0) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: unspec_103.c,v 1.23 2000/08/01 01:26:09 tale Exp $ */
|
||||
/* $Id: unspec_103.c,v 1.24 2000/12/01 01:40:45 gson Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_UNSPEC_103_C
|
||||
#define RDATA_GENERIC_UNSPEC_103_C
|
||||
|
|
@ -94,6 +94,8 @@ fromstruct_unspec(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((unspec->data != NULL && unspec->datalen != 0) ||
|
||||
(unspec->data == NULL && unspec->datalen == 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
return (mem_tobuffer(target, unspec->data, unspec->datalen));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: x25_19.c,v 1.25 2000/11/08 01:56:03 bwelling Exp $ */
|
||||
/* $Id: x25_19.c,v 1.26 2000/12/01 01:40:46 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 16:15:57 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -114,6 +114,8 @@ fromstruct_x25(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((x25->x25 == NULL && x25->x25_len == 0) ||
|
||||
(x25->x25 != NULL && x25->x25_len != 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
for (i = 0; i < x25->x25_len; i++)
|
||||
if (!isdigit(x25->x25[i] & 0xff))
|
||||
return (ISC_R_RANGE);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a_1.c,v 1.19 2000/11/08 01:56:04 bwelling Exp $ */
|
||||
/* $Id: a_1.c,v 1.20 2000/12/01 01:40:48 gson Exp $ */
|
||||
|
||||
/* reviewed: Thu Mar 16 15:58:36 PST 2000 by brister */
|
||||
|
||||
|
|
@ -37,6 +37,7 @@ fromtext_hs_a(ARGS_FROMTEXT) {
|
|||
|
||||
UNUSED(origin);
|
||||
UNUSED(downcase);
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
|
||||
ISC_FALSE));
|
||||
|
|
@ -80,7 +81,7 @@ fromwire_hs_a(ARGS_FROMWIRE) {
|
|||
|
||||
UNUSED(dctx);
|
||||
UNUSED(downcase);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
isc_buffer_activeregion(source, &sregion);
|
||||
isc_buffer_availableregion(target, &tregion);
|
||||
|
|
@ -142,6 +143,8 @@ fromstruct_hs_a(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(a->common.rdtype == type);
|
||||
REQUIRE(a->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
n = ntohl(a->in_addr.s_addr);
|
||||
|
||||
return (uint32_tobuffer(n, target));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a6_38.c,v 1.38 2000/11/08 01:56:05 bwelling Exp $ */
|
||||
/* $Id: a6_38.c,v 1.39 2000/12/01 01:40:49 gson Exp $ */
|
||||
|
||||
/* draft-ietf-ipngwg-dns-lookups-03.txt */
|
||||
|
||||
|
|
@ -39,6 +39,8 @@ fromtext_in_a6(ARGS_FROMTEXT) {
|
|||
REQUIRE(type == 38);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* Prefix length.
|
||||
*/
|
||||
|
|
@ -144,6 +146,8 @@ fromwire_in_a6(ARGS_FROMWIRE) {
|
|||
REQUIRE(type == 38);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
|
||||
|
||||
isc_buffer_activeregion(source, &sr);
|
||||
|
|
@ -276,6 +280,8 @@ fromstruct_in_a6(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(a6->common.rdtype == type);
|
||||
REQUIRE(a6->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
if (a6->prefixlen > 128)
|
||||
return (ISC_R_RANGE);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a_1.c,v 1.40 2000/11/08 01:56:07 bwelling Exp $ */
|
||||
/* $Id: a_1.c,v 1.41 2000/12/01 01:40:50 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -182,6 +182,8 @@ freestruct_in_a(ARGS_FREESTRUCT) {
|
|||
REQUIRE(source != NULL);
|
||||
REQUIRE(a->common.rdtype == 1);
|
||||
REQUIRE(a->common.rdclass == 1);
|
||||
|
||||
UNUSED(a);
|
||||
}
|
||||
|
||||
static inline isc_result_t
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: aaaa_28.c,v 1.30 2000/11/08 01:56:08 bwelling Exp $ */
|
||||
/* $Id: aaaa_28.c,v 1.31 2000/12/01 01:40:51 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -34,12 +34,13 @@ fromtext_in_aaaa(ARGS_FROMTEXT) {
|
|||
unsigned char addr[16];
|
||||
isc_region_t region;
|
||||
|
||||
UNUSED(origin);
|
||||
UNUSED(downcase);
|
||||
|
||||
REQUIRE(type == 28);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(origin);
|
||||
UNUSED(downcase);
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
|
||||
ISC_FALSE));
|
||||
|
||||
|
|
@ -77,12 +78,13 @@ fromwire_in_aaaa(ARGS_FROMWIRE) {
|
|||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
|
||||
UNUSED(dctx);
|
||||
UNUSED(downcase);
|
||||
|
||||
REQUIRE(type == 28);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(dctx);
|
||||
UNUSED(downcase);
|
||||
UNUSED(rdclass);
|
||||
|
||||
isc_buffer_activeregion(source, &sregion);
|
||||
isc_buffer_availableregion(target, &tregion);
|
||||
if (sregion.length < 16)
|
||||
|
|
@ -141,6 +143,8 @@ fromstruct_in_aaaa(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(aaaa->common.rdtype == type);
|
||||
REQUIRE(aaaa->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
return (mem_tobuffer(target, aaaa->in6_addr.s6_addr, 16));
|
||||
}
|
||||
|
||||
|
|
@ -174,6 +178,8 @@ freestruct_in_aaaa(ARGS_FREESTRUCT) {
|
|||
REQUIRE(source != NULL);
|
||||
REQUIRE(aaaa->common.rdclass == 1);
|
||||
REQUIRE(aaaa->common.rdtype == 28);
|
||||
|
||||
UNUSED(aaaa);
|
||||
}
|
||||
|
||||
static inline isc_result_t
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: kx_36.c,v 1.31 2000/11/08 01:56:09 bwelling Exp $ */
|
||||
/* $Id: kx_36.c,v 1.32 2000/12/01 01:40:52 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 17:24:54 PST 2000 by explorer */
|
||||
|
||||
|
|
@ -35,6 +35,8 @@ fromtext_in_kx(ARGS_FROMTEXT) {
|
|||
REQUIRE(type == 36);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
|
||||
ISC_FALSE));
|
||||
if (token.value.as_ulong > 0xffff)
|
||||
|
|
@ -86,6 +88,8 @@ fromwire_in_kx(ARGS_FROMWIRE) {
|
|||
REQUIRE(type == 36);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
|
|
@ -163,6 +167,8 @@ fromstruct_in_kx(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(kx->common.rdtype == type);
|
||||
REQUIRE(kx->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint16_tobuffer(kx->preference, target));
|
||||
dns_name_toregion(&kx->exchange, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: naptr_35.c,v 1.35 2000/11/08 01:56:10 bwelling Exp $ */
|
||||
/* $Id: naptr_35.c,v 1.36 2000/12/01 01:40:54 gson Exp $ */
|
||||
|
||||
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -35,6 +35,8 @@ fromtext_in_naptr(ARGS_FROMTEXT) {
|
|||
REQUIRE(type == 35);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* Order.
|
||||
*/
|
||||
|
|
@ -155,6 +157,8 @@ fromwire_in_naptr(ARGS_FROMWIRE) {
|
|||
REQUIRE(type == 35);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
|
|
@ -318,6 +322,8 @@ fromstruct_in_naptr(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((naptr->regexp == NULL && naptr->regexp_len == 0) ||
|
||||
(naptr->regexp != NULL && naptr->regexp_len != 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint16_tobuffer(naptr->order, target));
|
||||
RETERR(uint16_tobuffer(naptr->preference, target));
|
||||
RETERR(uint8_tobuffer(naptr->flags_len, target));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap-ptr_23.c,v 1.26 2000/11/08 01:56:11 bwelling Exp $ */
|
||||
/* $Id: nsap-ptr_23.c,v 1.27 2000/12/01 01:40:55 gson Exp $ */
|
||||
|
||||
/* Reviewed: Fri Mar 17 10:16:02 PST 2000 by gson */
|
||||
|
||||
|
|
@ -35,6 +35,8 @@ fromtext_in_nsap_ptr(ARGS_FROMTEXT) {
|
|||
REQUIRE(type == 23);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
|
||||
ISC_FALSE));
|
||||
|
||||
|
|
@ -73,6 +75,8 @@ fromwire_in_nsap_ptr(ARGS_FROMWIRE) {
|
|||
REQUIRE(type == 23);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
|
|
@ -133,6 +137,8 @@ fromstruct_in_nsap_ptr(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(nsap_ptr->common.rdtype == type);
|
||||
REQUIRE(nsap_ptr->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_name_toregion(&nsap_ptr->owner, ®ion);
|
||||
return (isc_buffer_copyregion(target, ®ion));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap_22.c,v 1.27 2000/11/08 01:56:12 bwelling Exp $ */
|
||||
/* $Id: nsap_22.c,v 1.28 2000/12/01 01:40:56 gson Exp $ */
|
||||
|
||||
/* Reviewed: Fri Mar 17 10:41:07 PST 2000 by gson */
|
||||
|
||||
|
|
@ -39,6 +39,7 @@ fromtext_in_nsap(ARGS_FROMTEXT) {
|
|||
|
||||
UNUSED(origin);
|
||||
UNUSED(downcase);
|
||||
UNUSED(rdclass);
|
||||
|
||||
/* 0x<hex.string.with.periods> */
|
||||
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
|
||||
|
|
@ -102,6 +103,7 @@ fromwire_in_nsap(ARGS_FROMWIRE) {
|
|||
|
||||
UNUSED(dctx);
|
||||
UNUSED(downcase);
|
||||
UNUSED(rdclass);
|
||||
|
||||
isc_buffer_activeregion(source, ®ion);
|
||||
if (region.length < 1)
|
||||
|
|
@ -152,6 +154,8 @@ fromstruct_in_nsap(ARGS_FROMSTRUCT) {
|
|||
REQUIRE((nsap->nsap == NULL && nsap->nsap_len == 0) ||
|
||||
(nsap->nsap != NULL && nsap->nsap_len != 0));
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
return (mem_tobuffer(target, nsap->nsap, nsap->nsap_len));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: px_26.c,v 1.28 2000/11/08 01:56:13 bwelling Exp $ */
|
||||
/* $Id: px_26.c,v 1.29 2000/12/01 01:40:57 gson Exp $ */
|
||||
|
||||
/* Reviewed: Mon Mar 20 10:44:27 PST 2000 */
|
||||
|
||||
|
|
@ -35,6 +35,8 @@ fromtext_in_px(ARGS_FROMTEXT) {
|
|||
REQUIRE(type == 26);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* Preference.
|
||||
*/
|
||||
|
|
@ -116,6 +118,8 @@ fromwire_in_px(ARGS_FROMWIRE) {
|
|||
REQUIRE(type == 26);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
|
|
@ -228,6 +232,8 @@ fromstruct_in_px(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(px->common.rdtype == type);
|
||||
REQUIRE(px->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint16_tobuffer(px->preference, target));
|
||||
dns_name_toregion(&px->map822, ®ion);
|
||||
RETERR(isc_buffer_copyregion(target, ®ion));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: srv_33.c,v 1.30 2000/11/08 01:56:14 bwelling Exp $ */
|
||||
/* $Id: srv_33.c,v 1.31 2000/12/01 01:40:58 gson Exp $ */
|
||||
|
||||
/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */
|
||||
|
||||
|
|
@ -35,6 +35,8 @@ fromtext_in_srv(ARGS_FROMTEXT) {
|
|||
REQUIRE(type == 33);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* Priority.
|
||||
*/
|
||||
|
|
@ -133,6 +135,8 @@ fromwire_in_srv(ARGS_FROMWIRE) {
|
|||
REQUIRE(type == 33);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
|
|
@ -227,6 +231,8 @@ fromstruct_in_srv(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(srv->common.rdtype == type);
|
||||
REQUIRE(srv->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
RETERR(uint16_tobuffer(srv->priority, target));
|
||||
RETERR(uint16_tobuffer(srv->weight, target));
|
||||
RETERR(uint16_tobuffer(srv->port, target));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: wks_11.c,v 1.37 2000/11/08 01:56:15 bwelling Exp $ */
|
||||
/* $Id: wks_11.c,v 1.38 2000/12/01 01:40:59 gson Exp $ */
|
||||
|
||||
/* Reviewed: Fri Mar 17 15:01:49 PST 2000 by explorer */
|
||||
|
||||
|
|
@ -47,12 +47,13 @@ fromtext_in_wks(ARGS_FROMTEXT) {
|
|||
char service[32];
|
||||
int i;
|
||||
|
||||
UNUSED(origin);
|
||||
UNUSED(downcase);
|
||||
|
||||
REQUIRE(type == 11);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(origin);
|
||||
UNUSED(downcase);
|
||||
UNUSED(rdclass);
|
||||
|
||||
/*
|
||||
* IPv4 dotted quad.
|
||||
*/
|
||||
|
|
@ -178,12 +179,13 @@ fromwire_in_wks(ARGS_FROMWIRE) {
|
|||
isc_region_t sr;
|
||||
isc_region_t tr;
|
||||
|
||||
UNUSED(dctx);
|
||||
UNUSED(downcase);
|
||||
|
||||
REQUIRE(type == 11);
|
||||
REQUIRE(rdclass == 1);
|
||||
|
||||
UNUSED(dctx);
|
||||
UNUSED(downcase);
|
||||
UNUSED(rdclass);
|
||||
|
||||
isc_buffer_activeregion(source, &sr);
|
||||
isc_buffer_availableregion(target, &tr);
|
||||
|
||||
|
|
@ -243,6 +245,8 @@ fromstruct_in_wks(ARGS_FROMSTRUCT) {
|
|||
REQUIRE(wks->common.rdtype == type);
|
||||
REQUIRE(wks->common.rdclass == rdclass);
|
||||
|
||||
UNUSED(rdclass);
|
||||
|
||||
a = ntohl(wks->in_addr.s_addr);
|
||||
RETERR(uint32_tobuffer(a, target));
|
||||
RETERR(uint16_tobuffer(wks->protocol, target));
|
||||
|
|
|
|||
Loading…
Reference in a new issue