Lines Matching refs:csync
130 dns_rdata_csync_t *csync = source;
135 REQUIRE(csync->common.rdtype == type);
136 REQUIRE(csync->common.rdclass == rdclass);
137 REQUIRE(csync->typebits != NULL || csync->len == 0);
142 RETERR(uint32_tobuffer(csync->serial, target));
143 RETERR(uint16_tobuffer(csync->flags, target));
145 region.base = csync->typebits;
146 region.length = csync->len;
148 return (mem_tobuffer(target, csync->typebits, csync->len));
154 dns_rdata_csync_t *csync = target;
160 csync->common.rdclass = rdata->rdclass;
161 csync->common.rdtype = rdata->type;
162 ISC_LINK_INIT(&csync->common, link);
166 csync->serial = uint32_fromregion(®ion);
169 csync->flags = uint16_fromregion(®ion);
172 csync->len = region.length;
173 csync->typebits = mem_maybedup(mctx, region.base, region.length);
174 if (csync->typebits == NULL)
177 csync->mctx = mctx;
186 dns_rdata_csync_t *csync = source;
189 REQUIRE(csync->common.rdtype == dns_rdatatype_csync);
191 if (csync->mctx == NULL)
194 if (csync->typebits != NULL)
195 isc_mem_free(csync->mctx, csync->typebits);
196 csync->mctx = NULL;