Lines Matching refs:srv
240 dns_rdata_in_srv_t *srv = source;
246 REQUIRE(srv->common.rdtype == type);
247 REQUIRE(srv->common.rdclass == rdclass);
252 RETERR(uint16_tobuffer(srv->priority, target));
253 RETERR(uint16_tobuffer(srv->weight, target));
254 RETERR(uint16_tobuffer(srv->port, target));
255 dns_name_toregion(&srv->target, ®ion);
262 dns_rdata_in_srv_t *srv = target;
270 srv->common.rdclass = rdata->rdclass;
271 srv->common.rdtype = rdata->type;
272 ISC_LINK_INIT(&srv->common, link);
276 srv->priority = uint16_fromregion(®ion);
278 srv->weight = uint16_fromregion(®ion);
280 srv->port = uint16_fromregion(®ion);
283 dns_name_init(&srv->target, NULL);
284 RETERR(name_duporclone(&name, mctx, &srv->target));
285 srv->mctx = mctx;
291 dns_rdata_in_srv_t *srv = source;
294 REQUIRE(srv->common.rdclass == 1);
295 REQUIRE(srv->common.rdtype == 33);
297 if (srv->mctx == NULL)
300 dns_name_free(&srv->target, srv->mctx);
301 srv->mctx = NULL;