Lines Matching defs:uri
169 dns_rdata_uri_t *uri = source;
173 REQUIRE(uri->common.rdtype == type);
174 REQUIRE(uri->common.rdclass == rdclass);
175 REQUIRE(uri->target != NULL && uri->tgt_len != 0);
183 RETERR(uint16_tobuffer(uri->priority, target));
188 RETERR(uint16_tobuffer(uri->weight, target));
193 return (mem_tobuffer(target, uri->target, uri->tgt_len));
198 dns_rdata_uri_t *uri = target;
205 uri->common.rdclass = rdata->rdclass;
206 uri->common.rdtype = rdata->type;
207 ISC_LINK_INIT(&uri->common, link);
216 uri->priority = uint16_fromregion(&sr);
224 uri->weight = uint16_fromregion(&sr);
230 uri->tgt_len = sr.length;
231 uri->target = mem_maybedup(mctx, sr.base, sr.length);
232 if (uri->target == NULL)
235 uri->mctx = mctx;
241 dns_rdata_uri_t *uri = (dns_rdata_uri_t *) source;
244 REQUIRE(uri->common.rdtype == dns_rdatatype_uri);
246 if (uri->mctx == NULL)
249 if (uri->target != NULL)
250 isc_mem_free(uri->mctx, uri->target);
251 uri->mctx = NULL;