Lines Matching defs:rdata

21 #include <dns/rdata.h>
29 * The format of an ncache rdata is a sequence of zero or more records of
35 * rdata count
36 * rdata length These two occur 'rdata count'
37 * rdata times.
52 dns_rdata_t rdata = DNS_RDATA_INIT;
66 dns_rdataset_current(rdataset, &rdata);
67 dns_rdata_toregion(&rdata, &r);
73 * Copy the rdata length to the buffer.
77 * Copy the rdata to the buffer.
82 dns_rdata_reset(&rdata);
124 dns_rdata_t rdata[DNS_NCACHE_RDATA];
210 dns_rdata_init(&rdata[next]);
212 rdata[next].data = r.base;
213 rdata[next].length = r.length;
214 rdata[next].rdclass =
216 rdata[next].type = 0;
217 rdata[next].flags = 0;
218 ISC_LIST_APPEND(ncrdatalist.rdata,
219 &rdata[next], link);
268 dns_rdata_t rdata = DNS_RDATA_INIT;
291 dns_rdataset_current(rdataset, &rdata);
292 isc_buffer_init(&source, rdata.data, rdata.length);
293 isc_buffer_add(&source, rdata.length);
308 * Get the length of this rdata and set up an
309 * rdata structure for it.
313 dns_rdata_reset(&rdata);
314 rdata.length = isc_buffer_getuint16(&source);
316 rdata.data = remaining.base;
317 rdata.type = type;
318 rdata.rdclass = rdataset->rdclass;
319 INSIST(remaining.length >= rdata.length);
320 isc_buffer_forward(&source, rdata.length);
336 * rdata length. Write the type, class, and ttl.
348 * Save space for rdata length.
354 * Write the rdata.
356 result = dns_rdata_towire(&rdata, cctx, target);
361 * Set the rdata length field to the compressed
374 dns_rdata_reset(&rdata);
409 * The privateuint4 field is the number of rdata beyond the cursor
440 rdataset_current(dns_rdataset_t *rdataset, dns_rdata_t *rdata) {
449 dns_rdata_fromregion(rdata, rdataset->rdclass, rdataset->type, &r);
506 dns_rdata_t rdata = DNS_RDATA_INIT;
525 dns_rdataset_current(&rclone, &rdata);
526 isc_buffer_init(&source, rdata.data, rdata.length);
527 isc_buffer_add(&source, rdata.length);
545 dns_rdata_reset(&rdata);
581 dns_rdata_t rdata = DNS_RDATA_INIT;
601 dns_rdataset_current(&rclone, &rdata);
602 isc_buffer_init(&source, rdata.data, rdata.length);
603 isc_buffer_add(&source, rdata.length);
618 dns_rdata_reset(&rdata);
634 dns_rdata_reset(&rdata);
635 dns_rdata_fromregion(&rdata, rdataset->rdclass,
637 (void)dns_rdata_tostruct(&rdata, &rrsig, NULL);
644 dns_rdata_reset(&rdata);
678 dns_rdata_t rdata = DNS_RDATA_INIT;
694 dns_rdataset_current(ncacherdataset, &rdata);
695 isc_buffer_init(&source, rdata.data, rdata.length);
696 isc_buffer_add(&source, rdata.length);
725 dns_rdata_reset(&rdata);
726 dns_rdata_fromregion(&rdata, rdataset->rdclass,
728 (void)dns_rdata_tostruct(&rdata, &rrsig, NULL);