Lines Matching defs:opt
96 isc_uint16_t opt;
112 opt = uint16_fromregion(&sregion);
119 switch (opt) {
194 dns_rdata_opt_t *opt = source;
200 REQUIRE(opt->common.rdtype == type);
201 REQUIRE(opt->common.rdclass == rdclass);
202 REQUIRE(opt->options != NULL || opt->length == 0);
207 region.base = opt->options;
208 region.length = opt->length;
210 isc_region_consume(®ion, 2); /* opt */
220 return (mem_tobuffer(target, opt->options, opt->length));
225 dns_rdata_opt_t *opt = target;
231 opt->common.rdclass = rdata->rdclass;
232 opt->common.rdtype = rdata->type;
233 ISC_LINK_INIT(&opt->common, link);
236 opt->length = r.length;
237 opt->options = mem_maybedup(mctx, r.base, r.length);
238 if (opt->options == NULL)
241 opt->offset = 0;
242 opt->mctx = mctx;
248 dns_rdata_opt_t *opt = source;
251 REQUIRE(opt->common.rdtype == 41);
253 if (opt->mctx == NULL)
256 if (opt->options != NULL)
257 isc_mem_free(opt->mctx, opt->options);
258 opt->mctx = NULL;