Lines Matching defs:csync
144 dns_rdata_csync_t *csync = source;
148 REQUIRE(csync != NULL);
149 REQUIRE(csync->common.rdtype == type);
150 REQUIRE(csync->common.rdclass == rdclass);
151 REQUIRE(csync->typebits != NULL || csync->len == 0);
156 RETERR(uint32_tobuffer(csync->serial, target));
157 RETERR(uint16_tobuffer(csync->flags, target));
159 region.base = csync->typebits;
160 region.length = csync->len;
162 return (mem_tobuffer(target, csync->typebits, csync->len));
168 dns_rdata_csync_t *csync = target;
171 REQUIRE(csync != NULL);
174 csync->common.rdclass = rdata->rdclass;
175 csync->common.rdtype = rdata->type;
176 ISC_LINK_INIT(&csync->common, link);
180 csync->serial = uint32_fromregion(®ion);
183 csync->flags = uint16_fromregion(®ion);
186 csync->len = region.length;
187 csync->typebits = mem_maybedup(mctx, region.base, region.length);
188 if (csync->typebits == NULL) {
192 csync->mctx = mctx;
201 dns_rdata_csync_t *csync = source;
203 REQUIRE(csync != NULL);
204 REQUIRE(csync->common.rdtype == dns_rdatatype_csync);
206 if (csync->mctx == NULL) {
210 if (csync->typebits != NULL) {
211 isc_mem_free(csync->mctx, csync->typebits);
213 csync->mctx = NULL;