Lines Matching refs:kx
165 dns_rdata_in_kx_t *kx = source;
170 REQUIRE(kx != NULL);
171 REQUIRE(kx->common.rdtype == type);
172 REQUIRE(kx->common.rdclass == rdclass);
177 RETERR(uint16_tobuffer(kx->preference, target));
178 dns_name_toregion(&kx->exchange, ®ion);
185 dns_rdata_in_kx_t *kx = target;
190 REQUIRE(kx != NULL);
193 kx->common.rdclass = rdata->rdclass;
194 kx->common.rdtype = rdata->type;
195 ISC_LINK_INIT(&kx->common, link);
200 kx->preference = uint16_fromregion(®ion);
204 dns_name_init(&kx->exchange, NULL);
205 RETERR(name_duporclone(&name, mctx, &kx->exchange));
206 kx->mctx = mctx;
212 dns_rdata_in_kx_t *kx = source;
214 REQUIRE(kx != NULL);
215 REQUIRE(kx->common.rdclass == dns_rdataclass_in);
216 REQUIRE(kx->common.rdtype == dns_rdatatype_kx);
218 if (kx->mctx == NULL) {
222 dns_name_free(&kx->exchange, kx->mctx);
223 kx->mctx = NULL;