Lines Matching refs:soa

280 	dns_rdata_soa_t *soa = source;  in fromstruct_soa()  local
284 REQUIRE(soa != NULL); in fromstruct_soa()
285 REQUIRE(soa->common.rdtype == type); in fromstruct_soa()
286 REQUIRE(soa->common.rdclass == rdclass); in fromstruct_soa()
291 dns_name_toregion(&soa->origin, &region); in fromstruct_soa()
293 dns_name_toregion(&soa->contact, &region); in fromstruct_soa()
295 RETERR(uint32_tobuffer(soa->serial, target)); in fromstruct_soa()
296 RETERR(uint32_tobuffer(soa->refresh, target)); in fromstruct_soa()
297 RETERR(uint32_tobuffer(soa->retry, target)); in fromstruct_soa()
298 RETERR(uint32_tobuffer(soa->expire, target)); in fromstruct_soa()
299 return (uint32_tobuffer(soa->minimum, target)); in fromstruct_soa()
305 dns_rdata_soa_t *soa = target; in tostruct_soa() local
310 REQUIRE(soa != NULL); in tostruct_soa()
313 soa->common.rdclass = rdata->rdclass; in tostruct_soa()
314 soa->common.rdtype = rdata->type; in tostruct_soa()
315 ISC_LINK_INIT(&soa->common, link); in tostruct_soa()
322 dns_name_init(&soa->origin, NULL); in tostruct_soa()
323 RETERR(name_duporclone(&name, mctx, &soa->origin)); in tostruct_soa()
327 dns_name_init(&soa->contact, NULL); in tostruct_soa()
328 result = name_duporclone(&name, mctx, &soa->contact); in tostruct_soa()
333 soa->serial = uint32_fromregion(&region); in tostruct_soa()
336 soa->refresh = uint32_fromregion(&region); in tostruct_soa()
339 soa->retry = uint32_fromregion(&region); in tostruct_soa()
342 soa->expire = uint32_fromregion(&region); in tostruct_soa()
345 soa->minimum = uint32_fromregion(&region); in tostruct_soa()
347 soa->mctx = mctx; in tostruct_soa()
352 dns_name_free(&soa->origin, mctx); in tostruct_soa()
359 dns_rdata_soa_t *soa = source; in freestruct_soa() local
361 REQUIRE(soa != NULL); in freestruct_soa()
362 REQUIRE(soa->common.rdtype == dns_rdatatype_soa); in freestruct_soa()
364 if (soa->mctx == NULL) { in freestruct_soa()
368 dns_name_free(&soa->origin, soa->mctx); in freestruct_soa()
369 dns_name_free(&soa->contact, soa->mctx); in freestruct_soa()
370 soa->mctx = NULL; in freestruct_soa()