Lines Matching defs:hinfo
100 dns_rdata_hinfo_t *hinfo = source;
104 REQUIRE(hinfo->common.rdtype == type);
105 REQUIRE(hinfo->common.rdclass == rdclass);
110 RETERR(uint8_tobuffer(hinfo->cpu_len, target));
111 RETERR(mem_tobuffer(target, hinfo->cpu, hinfo->cpu_len));
112 RETERR(uint8_tobuffer(hinfo->os_len, target));
113 return (mem_tobuffer(target, hinfo->os, hinfo->os_len));
118 dns_rdata_hinfo_t *hinfo = target;
125 hinfo->common.rdclass = rdata->rdclass;
126 hinfo->common.rdtype = rdata->type;
127 ISC_LINK_INIT(&hinfo->common, link);
130 hinfo->cpu_len = uint8_fromregion(®ion);
132 hinfo->cpu = mem_maybedup(mctx, region.base, hinfo->cpu_len);
133 if (hinfo->cpu == NULL)
135 isc_region_consume(®ion, hinfo->cpu_len);
137 hinfo->os_len = uint8_fromregion(®ion);
139 hinfo->os = mem_maybedup(mctx, region.base, hinfo->os_len);
140 if (hinfo->os == NULL)
143 hinfo->mctx = mctx;
147 if (mctx != NULL && hinfo->cpu != NULL)
148 isc_mem_free(mctx, hinfo->cpu);
154 dns_rdata_hinfo_t *hinfo = source;
158 if (hinfo->mctx == NULL)
161 if (hinfo->cpu != NULL)
162 isc_mem_free(hinfo->mctx, hinfo->cpu);
163 if (hinfo->os != NULL)
164 isc_mem_free(hinfo->mctx, hinfo->os);
165 hinfo->mctx = NULL;