Lines Matching defs:nsap
141 dns_rdata_in_nsap_t *nsap = source;
146 REQUIRE(nsap->common.rdtype == type);
147 REQUIRE(nsap->common.rdclass == rdclass);
148 REQUIRE(nsap->nsap != NULL || nsap->nsap_len == 0);
153 return (mem_tobuffer(target, nsap->nsap, nsap->nsap_len));
158 dns_rdata_in_nsap_t *nsap = target;
166 nsap->common.rdclass = rdata->rdclass;
167 nsap->common.rdtype = rdata->type;
168 ISC_LINK_INIT(&nsap->common, link);
171 nsap->nsap_len = r.length;
172 nsap->nsap = mem_maybedup(mctx, r.base, r.length);
173 if (nsap->nsap == NULL)
176 nsap->mctx = mctx;
182 dns_rdata_in_nsap_t *nsap = source;
185 REQUIRE(nsap->common.rdclass == dns_rdataclass_in);
186 REQUIRE(nsap->common.rdtype == dns_rdatatype_nsap);
188 if (nsap->mctx == NULL)
191 if (nsap->nsap != NULL)
192 isc_mem_free(nsap->mctx, nsap->nsap);
193 nsap->mctx = NULL;