Lines Matching refs:uri
180 dns_rdata_uri_t *uri = source;
183 REQUIRE(uri != NULL);
184 REQUIRE(uri->common.rdtype == type);
185 REQUIRE(uri->common.rdclass == rdclass);
186 REQUIRE(uri->target != NULL && uri->tgt_len != 0);
194 RETERR(uint16_tobuffer(uri->priority, target));
199 RETERR(uint16_tobuffer(uri->weight, target));
204 return (mem_tobuffer(target, uri->target, uri->tgt_len));
209 dns_rdata_uri_t *uri = target;
213 REQUIRE(uri != NULL);
216 uri->common.rdclass = rdata->rdclass;
217 uri->common.rdtype = rdata->type;
218 ISC_LINK_INIT(&uri->common, link);
228 uri->priority = uint16_fromregion(&sr);
237 uri->weight = uint16_fromregion(&sr);
243 uri->tgt_len = sr.length;
244 uri->target = mem_maybedup(mctx, sr.base, sr.length);
245 if (uri->target == NULL) {
249 uri->mctx = mctx;
255 dns_rdata_uri_t *uri = (dns_rdata_uri_t *)source;
257 REQUIRE(uri != NULL);
258 REQUIRE(uri->common.rdtype == dns_rdatatype_uri);
260 if (uri->mctx == NULL) {
264 if (uri->target != NULL) {
265 isc_mem_free(uri->mctx, uri->target);
267 uri->mctx = NULL;