Lines Matching defs:dctx
334 dns_decompress_init(dns_decompress_t *dctx, int edns,
337 REQUIRE(dctx != NULL);
340 dctx->allowed = DNS_COMPRESS_NONE;
341 dctx->edns = edns;
342 dctx->type = type;
343 dctx->magic = DCTX_MAGIC;
347 dns_decompress_invalidate(dns_decompress_t *dctx) {
349 REQUIRE(VALID_DCTX(dctx));
351 dctx->magic = 0;
355 dns_decompress_setmethods(dns_decompress_t *dctx, unsigned int allowed) {
357 REQUIRE(VALID_DCTX(dctx));
359 switch (dctx->type) {
361 dctx->allowed = DNS_COMPRESS_ALL;
364 dctx->allowed = DNS_COMPRESS_NONE;
367 dctx->allowed = allowed;
373 dns_decompress_getmethods(dns_decompress_t *dctx) {
375 REQUIRE(VALID_DCTX(dctx));
377 return (dctx->allowed);
381 dns_decompress_edns(dns_decompress_t *dctx) {
383 REQUIRE(VALID_DCTX(dctx));
385 return (dctx->edns);
389 dns_decompress_type(dns_decompress_t *dctx) {
391 REQUIRE(VALID_DCTX(dctx));
393 return (dctx->type);