Lines Matching defs:dhcid
119 dns_rdata_in_dhcid_t *dhcid = source;
124 REQUIRE(dhcid->common.rdtype == type);
125 REQUIRE(dhcid->common.rdclass == rdclass);
126 REQUIRE(dhcid->length != 0);
131 return (mem_tobuffer(target, dhcid->dhcid, dhcid->length));
136 dns_rdata_in_dhcid_t *dhcid = target;
144 dhcid->common.rdclass = rdata->rdclass;
145 dhcid->common.rdtype = rdata->type;
146 ISC_LINK_INIT(&dhcid->common, link);
150 dhcid->dhcid = mem_maybedup(mctx, region.base, region.length);
151 if (dhcid->dhcid == NULL)
154 dhcid->mctx = mctx;
160 dns_rdata_in_dhcid_t *dhcid = source;
162 REQUIRE(dhcid != NULL);
163 REQUIRE(dhcid->common.rdtype == dns_rdatatype_dhcid);
164 REQUIRE(dhcid->common.rdclass == dns_rdataclass_in);
166 if (dhcid->mctx == NULL)
169 if (dhcid->dhcid != NULL)
170 isc_mem_free(dhcid->mctx, dhcid->dhcid);
171 dhcid->mctx = NULL;