Lines Matching refs:soa
280 dns_rdata_soa_t *soa = source;
285 REQUIRE(soa->common.rdtype == type);
286 REQUIRE(soa->common.rdclass == rdclass);
291 dns_name_toregion(&soa->origin, ®ion);
293 dns_name_toregion(&soa->contact, ®ion);
295 RETERR(uint32_tobuffer(soa->serial, target));
296 RETERR(uint32_tobuffer(soa->refresh, target));
297 RETERR(uint32_tobuffer(soa->retry, target));
298 RETERR(uint32_tobuffer(soa->expire, target));
299 return (uint32_tobuffer(soa->minimum, target));
305 dns_rdata_soa_t *soa = target;
313 soa->common.rdclass = rdata->rdclass;
314 soa->common.rdtype = rdata->type;
315 ISC_LINK_INIT(&soa->common, link);
323 dns_name_init(&soa->origin, NULL);
324 RETERR(name_duporclone(&name, mctx, &soa->origin));
328 dns_name_init(&soa->contact, NULL);
329 result = name_duporclone(&name, mctx, &soa->contact);
333 soa->serial = uint32_fromregion(®ion);
336 soa->refresh = uint32_fromregion(®ion);
339 soa->retry = uint32_fromregion(®ion);
342 soa->expire = uint32_fromregion(®ion);
345 soa->minimum = uint32_fromregion(®ion);
347 soa->mctx = mctx;
352 dns_name_free(&soa->origin, mctx);
358 dns_rdata_soa_t *soa = source;
361 REQUIRE(soa->common.rdtype == 6);
363 if (soa->mctx == NULL)
366 dns_name_free(&soa->origin, soa->mctx);
367 dns_name_free(&soa->contact, soa->mctx);
368 soa->mctx = NULL;