Lines Matching refs:dhcid
125 dns_rdata_in_dhcid_t *dhcid = source;
129 REQUIRE(dhcid != NULL);
130 REQUIRE(dhcid->common.rdtype == type);
131 REQUIRE(dhcid->common.rdclass == rdclass);
132 REQUIRE(dhcid->length != 0);
137 return (mem_tobuffer(target, dhcid->dhcid, dhcid->length));
142 dns_rdata_in_dhcid_t *dhcid = target;
147 REQUIRE(dhcid != NULL);
150 dhcid->common.rdclass = rdata->rdclass;
151 dhcid->common.rdtype = rdata->type;
152 ISC_LINK_INIT(&dhcid->common, link);
156 dhcid->dhcid = mem_maybedup(mctx, region.base, region.length);
157 if (dhcid->dhcid == NULL) {
161 dhcid->mctx = mctx;
167 dns_rdata_in_dhcid_t *dhcid = source;
169 REQUIRE(dhcid != NULL);
170 REQUIRE(dhcid->common.rdtype == dns_rdatatype_dhcid);
171 REQUIRE(dhcid->common.rdclass == dns_rdataclass_in);
173 if (dhcid->mctx == NULL) {
177 if (dhcid->dhcid != NULL) {
178 isc_mem_free(dhcid->mctx, dhcid->dhcid);
180 dhcid->mctx = NULL;