Lines Matching defs:srv
238 dns_rdata_in_srv_t *srv = source;
244 REQUIRE(srv->common.rdtype == type);
245 REQUIRE(srv->common.rdclass == rdclass);
250 RETERR(uint16_tobuffer(srv->priority, target));
251 RETERR(uint16_tobuffer(srv->weight, target));
252 RETERR(uint16_tobuffer(srv->port, target));
253 dns_name_toregion(&srv->target, ®ion);
260 dns_rdata_in_srv_t *srv = target;
268 srv->common.rdclass = rdata->rdclass;
269 srv->common.rdtype = rdata->type;
270 ISC_LINK_INIT(&srv->common, link);
274 srv->priority = uint16_fromregion(®ion);
276 srv->weight = uint16_fromregion(®ion);
278 srv->port = uint16_fromregion(®ion);
281 dns_name_init(&srv->target, NULL);
282 RETERR(name_duporclone(&name, mctx, &srv->target));
283 srv->mctx = mctx;
289 dns_rdata_in_srv_t *srv = source;
292 REQUIRE(srv->common.rdclass == 1);
293 REQUIRE(srv->common.rdtype == 33);
295 if (srv->mctx == NULL)
298 dns_name_free(&srv->target, srv->mctx);
299 srv->mctx = NULL;