Lines Matching defs:wks
265 dns_rdata_in_wks_t *wks = source;
271 REQUIRE(wks->common.rdtype == type);
272 REQUIRE(wks->common.rdclass == rdclass);
273 REQUIRE((wks->map != NULL && wks->map_len <= 8*1024) ||
274 wks->map_len == 0);
279 a = ntohl(wks->in_addr.s_addr);
281 RETERR(uint8_tobuffer(wks->protocol, target));
282 return (mem_tobuffer(target, wks->map, wks->map_len));
287 dns_rdata_in_wks_t *wks = target;
295 wks->common.rdclass = rdata->rdclass;
296 wks->common.rdtype = rdata->type;
297 ISC_LINK_INIT(&wks->common, link);
301 wks->in_addr.s_addr = htonl(n);
303 wks->protocol = uint8_fromregion(®ion);
305 wks->map_len = region.length;
306 wks->map = mem_maybedup(mctx, region.base, region.length);
307 if (wks->map == NULL)
309 wks->mctx = mctx;
315 dns_rdata_in_wks_t *wks = source;
318 REQUIRE(wks->common.rdtype == 11);
319 REQUIRE(wks->common.rdclass == 1);
321 if (wks->mctx == NULL)
324 if (wks->map != NULL)
325 isc_mem_free(wks->mctx, wks->map);
326 wks->mctx = NULL;