dnskey.common.rdtype = dns_rdatatype_dnskey;
dnskey.mctx = NULL;
- ISC_LINK_INIT(&dnskey.common, link);
-
dnskey.flags = (uint16_t)rdata1;
dnskey.protocol = (uint8_t)rdata2;
dnskey.algorithm = (uint8_t)rdata3;
ds.common.rdtype = dns_rdatatype_ds;
ds.mctx = NULL;
- ISC_LINK_INIT(&ds.common, link);
-
ds.key_tag = (uint16_t)rdata1;
ds.algorithm = (uint8_t)rdata2;
ds.digest_type = (uint8_t)rdata3;
nsec3param.common.rdclass = gclass;
nsec3param.common.rdtype = dns_rdatatype_nsec3param;
- ISC_LINK_INIT(&nsec3param.common, link);
nsec3param.mctx = NULL;
nsec3param.flags = 0;
nsec3param.hash = unknownalg ? DNS_NSEC3_UNKNOWNALG : dns_hash_sha1;
*ds = (dns_rdata_ds_t){ .common.rdclass = dns_rdataclass_in,
.common.rdtype = dns_rdatatype_ds };
- ISC_LINK_INIT(&ds->common, link);
-
switch (anchortype) {
case INIT_DNSKEY:
case STATIC_DNSKEY:
*/
keystruct.mctx = NULL;
- ISC_LINK_INIT(&keystruct.common, link);
-
if (rdata1 > 0xffff) {
CHECKM(ISC_R_RANGE, "key flags");
}
sig.mctx = mctx;
sig.common.rdclass = set->rdclass;
sig.common.rdtype = dns_rdatatype_rrsig;
- ISC_LINK_INIT(&sig.common, link);
/*
* Downcase signer.
sig.mctx = mctx;
sig.common.rdclass = dns_rdataclass_any;
sig.common.rdtype = dns_rdatatype_sig; /* SIG(0) */
- ISC_LINK_INIT(&sig.common, link);
sig.covered = 0;
sig.algorithm = dst_algorithm_tosecalg(dst_key_alg(key));
tsig = (dns_rdata_any_tsig_t *)target;
tsig->common.rdclass = rdata->rdclass;
tsig->common.rdtype = rdata->type;
- ISC_LINK_INIT(&tsig->common, link);
dns_rdata_toregion(rdata, &sr);
a->common.rdclass = rdata->rdclass;
a->common.rdtype = rdata->type;
- ISC_LINK_INIT(&a->common, link);
dns_rdata_toregion(rdata, ®ion);
afsdb->common.rdclass = rdata->rdclass;
afsdb->common.rdtype = rdata->type;
- ISC_LINK_INIT(&afsdb->common, link);
dns_name_init(&afsdb->server);
amtrelay->common.rdclass = rdata->rdclass;
amtrelay->common.rdtype = rdata->type;
- ISC_LINK_INIT(&amtrelay->common, link);
dns_name_init(&amtrelay->gateway);
amtrelay->data = NULL;
avc->common.rdclass = rdata->rdclass;
avc->common.rdtype = rdata->type;
- ISC_LINK_INIT(&avc->common, link);
return generic_tostruct_txt(CALL_TOSTRUCT);
}
caa->common.rdclass = rdata->rdclass;
caa->common.rdtype = rdata->type;
- ISC_LINK_INIT(&caa->common, link);
dns_rdata_toregion(rdata, &sr);
dnskey->common.rdclass = rdata->rdclass;
dnskey->common.rdtype = rdata->type;
- ISC_LINK_INIT(&dnskey->common, link);
return generic_tostruct_key(CALL_TOSTRUCT);
}
*/
cds->common.rdclass = rdata->rdclass;
cds->common.rdtype = rdata->type;
- ISC_LINK_INIT(&cds->common, link);
return generic_tostruct_ds(CALL_TOSTRUCT);
}
cert->common.rdclass = rdata->rdclass;
cert->common.rdtype = rdata->type;
- ISC_LINK_INIT(&cert->common, link);
dns_rdata_toregion(rdata, ®ion);
cname->common.rdclass = rdata->rdclass;
cname->common.rdtype = rdata->type;
- ISC_LINK_INIT(&cname->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
csync->common.rdclass = rdata->rdclass;
csync->common.rdtype = rdata->type;
- ISC_LINK_INIT(&csync->common, link);
dns_rdata_toregion(rdata, ®ion);
dlv->common.rdclass = rdata->rdclass;
dlv->common.rdtype = rdata->type;
- ISC_LINK_INIT(&dlv->common, link);
return generic_tostruct_ds(CALL_TOSTRUCT);
}
dname->common.rdclass = rdata->rdclass;
dname->common.rdtype = rdata->type;
- ISC_LINK_INIT(&dname->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
dnskey->common.rdclass = rdata->rdclass;
dnskey->common.rdtype = rdata->type;
- ISC_LINK_INIT(&dnskey->common, link);
return generic_tostruct_key(CALL_TOSTRUCT);
}
doa->common.rdclass = rdata->rdclass;
doa->common.rdtype = rdata->type;
- ISC_LINK_INIT(&doa->common, link);
dns_rdata_toregion(rdata, ®ion);
REQUIRE(rdata->length != 0);
REQUIRE(ds->common.rdtype == rdata->type);
REQUIRE(ds->common.rdclass == rdata->rdclass);
- REQUIRE(!ISC_LINK_LINKED(&ds->common, link));
dns_rdata_toregion(rdata, ®ion);
ds->common.rdclass = rdata->rdclass;
ds->common.rdtype = rdata->type;
- ISC_LINK_INIT(&ds->common, link);
return generic_tostruct_ds(CALL_TOSTRUCT);
}
eui48->common.rdclass = rdata->rdclass;
eui48->common.rdtype = rdata->type;
- ISC_LINK_INIT(&eui48->common, link);
memmove(eui48->eui48, rdata->data, rdata->length);
return ISC_R_SUCCESS;
eui64->common.rdclass = rdata->rdclass;
eui64->common.rdtype = rdata->type;
- ISC_LINK_INIT(&eui64->common, link);
memmove(eui64->eui64, rdata->data, rdata->length);
return ISC_R_SUCCESS;
gpos->common.rdclass = rdata->rdclass;
gpos->common.rdtype = rdata->type;
- ISC_LINK_INIT(&gpos->common, link);
dns_rdata_toregion(rdata, ®ion);
gpos->long_len = uint8_fromregion(®ion);
hinfo->common.rdclass = rdata->rdclass;
hinfo->common.rdtype = rdata->type;
- ISC_LINK_INIT(&hinfo->common, link);
dns_rdata_toregion(rdata, ®ion);
hinfo->cpu_len = uint8_fromregion(®ion);
hip->common.rdclass = rdata->rdclass;
hip->common.rdtype = rdata->type;
- ISC_LINK_INIT(&hip->common, link);
dns_rdata_toregion(rdata, ®ion);
ipseckey->common.rdclass = rdata->rdclass;
ipseckey->common.rdtype = rdata->type;
- ISC_LINK_INIT(&ipseckey->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
isdn->common.rdclass = rdata->rdclass;
isdn->common.rdtype = rdata->type;
- ISC_LINK_INIT(&isdn->common, link);
dns_rdata_toregion(rdata, &r);
REQUIRE(key != NULL);
REQUIRE(key->common.rdclass == rdata->rdclass);
REQUIRE(key->common.rdtype == rdata->type);
- REQUIRE(!ISC_LINK_LINKED(&key->common, link));
dns_rdata_toregion(rdata, &sr);
key->common.rdclass = rdata->rdclass;
key->common.rdtype = rdata->type;
- ISC_LINK_INIT(&key->common, link);
return generic_tostruct_key(CALL_TOSTRUCT);
}
keydata->common.rdclass = rdata->rdclass;
keydata->common.rdtype = rdata->type;
- ISC_LINK_INIT(&keydata->common, link);
dns_rdata_toregion(rdata, &sr);
l32->common.rdclass = rdata->rdclass;
l32->common.rdtype = rdata->type;
- ISC_LINK_INIT(&l32->common, link);
dns_rdata_toregion(rdata, ®ion);
l32->pref = uint16_fromregion(®ion);
l64->common.rdclass = rdata->rdclass;
l64->common.rdtype = rdata->type;
- ISC_LINK_INIT(&l64->common, link);
dns_rdata_toregion(rdata, ®ion);
l64->pref = uint16_fromregion(®ion);
loc->common.rdclass = rdata->rdclass;
loc->common.rdtype = rdata->type;
- ISC_LINK_INIT(&loc->common, link);
loc->v.v0.version = version;
isc_region_consume(&r, 1);
lp->common.rdclass = rdata->rdclass;
lp->common.rdtype = rdata->type;
- ISC_LINK_INIT(&lp->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
mb->common.rdclass = rdata->rdclass;
mb->common.rdtype = rdata->type;
- ISC_LINK_INIT(&mb->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
md->common.rdclass = rdata->rdclass;
md->common.rdtype = rdata->type;
- ISC_LINK_INIT(&md->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, &r);
mf->common.rdclass = rdata->rdclass;
mf->common.rdtype = rdata->type;
- ISC_LINK_INIT(&mf->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, &r);
mg->common.rdclass = rdata->rdclass;
mg->common.rdtype = rdata->type;
- ISC_LINK_INIT(&mg->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
minfo->common.rdclass = rdata->rdclass;
minfo->common.rdtype = rdata->type;
- ISC_LINK_INIT(&minfo->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
mr->common.rdclass = rdata->rdclass;
mr->common.rdtype = rdata->type;
- ISC_LINK_INIT(&mr->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
mx->common.rdclass = rdata->rdclass;
mx->common.rdtype = rdata->type;
- ISC_LINK_INIT(&mx->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
naptr->common.rdclass = rdata->rdclass;
naptr->common.rdtype = rdata->type;
- ISC_LINK_INIT(&naptr->common, link);
naptr->flags = NULL;
naptr->service = NULL;
nid->common.rdclass = rdata->rdclass;
nid->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nid->common, link);
dns_rdata_toregion(rdata, ®ion);
nid->pref = uint16_fromregion(®ion);
ninfo->common.rdclass = rdata->rdclass;
ninfo->common.rdtype = rdata->type;
- ISC_LINK_INIT(&ninfo->common, link);
return generic_tostruct_txt(CALL_TOSTRUCT);
}
ns->common.rdclass = rdata->rdclass;
ns->common.rdtype = rdata->type;
- ISC_LINK_INIT(&ns->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
nsec3->common.rdclass = rdata->rdclass;
nsec3->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nsec3->common, link);
region.base = rdata->data;
region.length = rdata->length;
nsec3param->common.rdclass = rdata->rdclass;
nsec3param->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nsec3param->common, link);
region.base = rdata->data;
region.length = rdata->length;
nsec->common.rdclass = rdata->rdclass;
nsec->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nsec->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
null->common.rdclass = rdata->rdclass;
null->common.rdtype = rdata->type;
- ISC_LINK_INIT(&null->common, link);
dns_rdata_toregion(rdata, &r);
null->length = r.length;
nxt->common.rdclass = rdata->rdclass;
nxt->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nxt->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
sig->common.rdclass = rdata->rdclass;
sig->common.rdtype = rdata->type;
- ISC_LINK_INIT(&sig->common, link);
dns_rdata_toregion(rdata, &sr);
opt->common.rdclass = rdata->rdclass;
opt->common.rdtype = rdata->type;
- ISC_LINK_INIT(&opt->common, link);
dns_rdata_toregion(rdata, &r);
opt->length = r.length;
ptr->common.rdclass = rdata->rdclass;
ptr->common.rdtype = rdata->type;
- ISC_LINK_INIT(&ptr->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
resinfo->common.rdclass = rdata->rdclass;
resinfo->common.rdtype = rdata->type;
- ISC_LINK_INIT(&resinfo->common, link);
return generic_tostruct_txt(CALL_TOSTRUCT);
}
rkey->common.rdclass = rdata->rdclass;
rkey->common.rdtype = rdata->type;
- ISC_LINK_INIT(&rkey->common, link);
return generic_tostruct_key(CALL_TOSTRUCT);
}
rp->common.rdclass = rdata->rdclass;
rp->common.rdtype = rdata->type;
- ISC_LINK_INIT(&rp->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
sig->common.rdclass = rdata->rdclass;
sig->common.rdtype = rdata->type;
- ISC_LINK_INIT(&sig->common, link);
dns_rdata_toregion(rdata, &sr);
rt->common.rdclass = rdata->rdclass;
rt->common.rdtype = rdata->type;
- ISC_LINK_INIT(&rt->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
sig->common.rdclass = rdata->rdclass;
sig->common.rdtype = rdata->type;
- ISC_LINK_INIT(&sig->common, link);
dns_rdata_toregion(rdata, &sr);
sink->common.rdclass = rdata->rdclass;
sink->common.rdtype = rdata->type;
- ISC_LINK_INIT(&sink->common, link);
dns_rdata_toregion(rdata, &sr);
smimea->common.rdclass = rdata->rdclass;
smimea->common.rdtype = rdata->type;
- ISC_LINK_INIT(&smimea->common, link);
return generic_tostruct_tlsa(CALL_TOSTRUCT);
}
soa->common.rdclass = rdata->rdclass;
soa->common.rdtype = rdata->type;
- ISC_LINK_INIT(&soa->common, link);
dns_rdata_toregion(rdata, ®ion);
spf->common.rdclass = rdata->rdclass;
spf->common.rdtype = rdata->type;
- ISC_LINK_INIT(&spf->common, link);
return generic_tostruct_txt(CALL_TOSTRUCT);
}
sshfp->common.rdclass = rdata->rdclass;
sshfp->common.rdtype = rdata->type;
- ISC_LINK_INIT(&sshfp->common, link);
dns_rdata_toregion(rdata, ®ion);
*/
ds->common.rdclass = rdata->rdclass;
ds->common.rdtype = rdata->type;
- ISC_LINK_INIT(&ds->common, link);
return generic_tostruct_ds(CALL_TOSTRUCT);
}
talink->common.rdclass = rdata->rdclass;
talink->common.rdtype = rdata->type;
- ISC_LINK_INIT(&talink->common, link);
dns_rdata_toregion(rdata, ®ion);
tkey->common.rdclass = rdata->rdclass;
tkey->common.rdtype = rdata->type;
- ISC_LINK_INIT(&tkey->common, link);
dns_rdata_toregion(rdata, &sr);
REQUIRE(tlsa != NULL);
REQUIRE(tlsa->common.rdclass == rdata->rdclass);
REQUIRE(tlsa->common.rdtype == rdata->type);
- REQUIRE(!ISC_LINK_LINKED(&tlsa->common, link));
dns_rdata_toregion(rdata, ®ion);
tlsa->common.rdclass = rdata->rdclass;
tlsa->common.rdtype = rdata->type;
- ISC_LINK_INIT(&tlsa->common, link);
return generic_tostruct_tlsa(CALL_TOSTRUCT);
}
REQUIRE(txt != NULL);
REQUIRE(txt->common.rdclass == rdata->rdclass);
REQUIRE(txt->common.rdtype == rdata->type);
- REQUIRE(!ISC_LINK_LINKED(&txt->common, link));
dns_rdata_toregion(rdata, &r);
txt->txt_len = r.length;
txt->common.rdclass = rdata->rdclass;
txt->common.rdtype = rdata->type;
- ISC_LINK_INIT(&txt->common, link);
return generic_tostruct_txt(CALL_TOSTRUCT);
}
uri->common.rdclass = rdata->rdclass;
uri->common.rdtype = rdata->type;
- ISC_LINK_INIT(&uri->common, link);
dns_rdata_toregion(rdata, &sr);
wallet->common.rdclass = rdata->rdclass;
wallet->common.rdtype = rdata->type;
- ISC_LINK_INIT(&wallet->common, link);
return generic_tostruct_txt(CALL_TOSTRUCT);
}
x25->common.rdclass = rdata->rdclass;
x25->common.rdtype = rdata->type;
- ISC_LINK_INIT(&x25->common, link);
dns_rdata_toregion(rdata, &r);
x25->x25_len = uint8_fromregion(&r);
zonemd->common.rdclass = rdata->rdclass;
zonemd->common.rdtype = rdata->type;
- ISC_LINK_INIT(&zonemd->common, link);
dns_rdata_toregion(rdata, ®ion);
a->common.rdclass = rdata->rdclass;
a->common.rdtype = rdata->type;
- ISC_LINK_INIT(&a->common, link);
dns_rdata_toregion(rdata, ®ion);
n = uint32_fromregion(®ion);
a6->common.rdclass = rdata->rdclass;
a6->common.rdtype = rdata->type;
- ISC_LINK_INIT(&a6->common, link);
dns_rdata_toregion(rdata, &r);
a->common.rdclass = rdata->rdclass;
a->common.rdtype = rdata->type;
- ISC_LINK_INIT(&a->common, link);
dns_rdata_toregion(rdata, ®ion);
n = uint32_fromregion(®ion);
aaaa->common.rdclass = rdata->rdclass;
aaaa->common.rdtype = rdata->type;
- ISC_LINK_INIT(&aaaa->common, link);
dns_rdata_toregion(rdata, &r);
INSIST(r.length == 16);
apl->common.rdclass = rdata->rdclass;
apl->common.rdtype = rdata->type;
- ISC_LINK_INIT(&apl->common, link);
dns_rdata_toregion(rdata, &r);
apl->apl_len = r.length;
atma->common.rdclass = rdata->rdclass;
atma->common.rdtype = rdata->type;
- ISC_LINK_INIT(&atma->common, link);
dns_rdata_toregion(rdata, &r);
atma->format = r.base[0];
dhcid->common.rdclass = rdata->rdclass;
dhcid->common.rdtype = rdata->type;
- ISC_LINK_INIT(&dhcid->common, link);
dns_rdata_toregion(rdata, ®ion);
eid->common.rdclass = rdata->rdclass;
eid->common.rdtype = rdata->type;
- ISC_LINK_INIT(&eid->common, link);
dns_rdata_toregion(rdata, &r);
eid->eid_len = r.length;
kx->common.rdclass = rdata->rdclass;
kx->common.rdtype = rdata->type;
- ISC_LINK_INIT(&kx->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
nimloc->common.rdclass = rdata->rdclass;
nimloc->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nimloc->common, link);
dns_rdata_toregion(rdata, &r);
nimloc->nimloc_len = r.length;
nsap_ptr->common.rdclass = rdata->rdclass;
nsap_ptr->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nsap_ptr->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
nsap->common.rdclass = rdata->rdclass;
nsap->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nsap->common, link);
dns_rdata_toregion(rdata, &r);
nsap->nsap_len = r.length;
px->common.rdclass = rdata->rdclass;
px->common.rdtype = rdata->type;
- ISC_LINK_INIT(&px->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
srv->common.rdclass = rdata->rdclass;
srv->common.rdtype = rdata->type;
- ISC_LINK_INIT(&srv->common, link);
dns_name_init(&name);
dns_rdata_toregion(rdata, ®ion);
svcb->common.rdclass = rdata->rdclass;
svcb->common.rdtype = rdata->type;
- ISC_LINK_INIT(&svcb->common, link);
dns_rdata_toregion(rdata, ®ion);
wks->common.rdclass = rdata->rdclass;
wks->common.rdtype = rdata->type;
- ISC_LINK_INIT(&wks->common, link);
dns_rdata_toregion(rdata, ®ion);
n = uint32_fromregion(®ion);
typedef struct dns_rdatacommon {
dns_rdataclass_t rdclass;
dns_rdatatype_t rdtype;
- ISC_LINK(struct dns_rdatacommon) link;
} dns_rdatacommon_t;
#define DNS_RDATACOMMON_INIT(_data, _rdtype, _rdclass) \
do { \
(_data)->common.rdtype = (_rdtype); \
(_data)->common.rdclass = (_rdclass); \
- ISC_LINK_INIT(&(_data)->common, link); \
} while (0)
tkeyout = (dns_rdata_tkey_t){
.common.rdclass = tkeyin.common.rdclass,
.common.rdtype = tkeyin.common.rdtype,
- .common.link = ISC_LINK_INITIALIZER,
.mctx = msg->mctx,
.algorithm = DNS_NAME_INITEMPTY,
.mode = tkeyin.mode,
tkey = (dns_rdata_tkey_t){
.common.rdclass = dns_rdataclass_any,
.common.rdtype = dns_rdatatype_tkey,
- .common.link = ISC_LINK_INITIALIZER,
.inception = now,
.expire = now + lifetime,
.algorithm = DNS_NAME_INITEMPTY,
tkey = (dns_rdata_tkey_t){
.common.rdclass = dns_rdataclass_any,
.common.rdtype = dns_rdatatype_tkey,
- .common.link = ISC_LINK_INITIALIZER,
.inception = qtkey.inception,
.expire = qtkey.expire,
.algorithm = DNS_NAME_INITEMPTY,
.mctx = mctx,
.common.rdclass = dns_rdataclass_any,
.common.rdtype = dns_rdatatype_tsig,
- .common.link = ISC_LINK_INITIALIZER,
.timesigned = now + msg->timeadjust,
.fudge = DNS_TSIG_FUDGE,
.originalid = msg->id,
memset(&kd, 0, sizeof(kd));
kd.common.rdclass = zone->rdclass;
kd.common.rdtype = dns_rdatatype_keydata;
- ISC_LINK_INIT(&kd.common, link);
isc_buffer_init(&rrdatabuf, rrdata, sizeof(rrdata));
} else {
param.common.rdclass = zone->rdclass;
param.common.rdtype = dns_rdatatype_nsec3param;
- ISC_LINK_INIT(¶m.common, link);
param.mctx = NULL;
/*
* nsec3 specific param set in
keystruct->common.rdclass = rdclass;
keystruct->common.rdtype = dns_rdatatype_dnskey;
keystruct->mctx = mctx;
- ISC_LINK_INIT(&keystruct->common, link);
keystruct->flags = flags;
keystruct->protocol = proto;
keystruct->algorithm = alg;
tsig.common.rdclass = dns_rdataclass_any;
tsig.common.rdtype = dns_rdatatype_tsig;
- ISC_LINK_INIT(&tsig.common, link);
dns_name_init(&tsig.algorithm);
dns_name_clone(dns_tsigkey_algorithm(key), &tsig.algorithm);