Lines Matching defs:wks
285 dns_rdata_in_wks_t *wks = source;
291 REQUIRE(wks->common.rdtype == type);
292 REQUIRE(wks->common.rdclass == rdclass);
293 REQUIRE((wks->map != NULL && wks->map_len <= 8*1024) ||
294 wks->map_len == 0);
299 a = ntohl(wks->in_addr.s_addr);
301 RETERR(uint8_tobuffer(wks->protocol, target));
302 return (mem_tobuffer(target, wks->map, wks->map_len));
307 dns_rdata_in_wks_t *wks = target;
315 wks->common.rdclass = rdata->rdclass;
316 wks->common.rdtype = rdata->type;
317 ISC_LINK_INIT(&wks->common, link);
321 wks->in_addr.s_addr = htonl(n);
323 wks->protocol = uint8_fromregion(®ion);
325 wks->map_len = region.length;
326 wks->map = mem_maybedup(mctx, region.base, region.length);
327 if (wks->map == NULL)
329 wks->mctx = mctx;
335 dns_rdata_in_wks_t *wks = source;
338 REQUIRE(wks->common.rdtype == dns_rdatatype_wks);
339 REQUIRE(wks->common.rdclass == dns_rdataclass_in);
341 if (wks->mctx == NULL)
344 if (wks->map != NULL)
345 isc_mem_free(wks->mctx, wks->map);
346 wks->mctx = NULL;