Lines Matching refs:sr
155 isc_region_t sr;
167 dns_rdata_toregion(rdata, &sr);
172 covered = uint16_fromregion(&sr);
173 isc_region_consume(&sr, 2);
190 sprintf(buf, "%u", sr.base[0]);
191 isc_region_consume(&sr, 1);
198 sprintf(buf, "%u", sr.base[0]);
199 isc_region_consume(&sr, 1);
206 ttl = uint32_fromregion(&sr);
207 isc_region_consume(&sr, 4);
215 exp = uint32_fromregion(&sr);
216 isc_region_consume(&sr, 4);
226 when = uint32_fromregion(&sr);
227 isc_region_consume(&sr, 4);
234 foot = uint16_fromregion(&sr);
235 isc_region_consume(&sr, 2);
244 dns_name_fromregion(&name, &sr);
245 isc_region_consume(&sr, name_length(&name));
252 RETERR(isc_base64_totext(&sr, tctx->width - 2,
262 isc_region_t sr;
272 isc_buffer_activeregion(source, &sr);
282 if (sr.length < 18)
286 RETERR(mem_tobuffer(target, sr.base, 18));
297 isc_buffer_activeregion(source, &sr);
298 isc_buffer_forward(source, sr.length);
299 return (mem_tobuffer(target, sr.base, sr.length));
304 isc_region_t sr;
312 dns_rdata_toregion(rdata, &sr);
322 RETERR(mem_tobuffer(target, sr.base, 18));
323 isc_region_consume(&sr, 18);
329 dns_name_fromregion(&name, &sr);
330 isc_region_consume(&sr, name_length(&name));
336 return (mem_tobuffer(target, sr.base, sr.length));
416 isc_region_t sr;
428 dns_rdata_toregion(rdata, &sr);
433 sig->covered = uint16_fromregion(&sr);
434 isc_region_consume(&sr, 2);
439 sig->algorithm = uint8_fromregion(&sr);
440 isc_region_consume(&sr, 1);
445 sig->labels = uint8_fromregion(&sr);
446 isc_region_consume(&sr, 1);
451 sig->originalttl = uint32_fromregion(&sr);
452 isc_region_consume(&sr, 4);
457 sig->timeexpire = uint32_fromregion(&sr);
458 isc_region_consume(&sr, 4);
463 sig->timesigned = uint32_fromregion(&sr);
464 isc_region_consume(&sr, 4);
469 sig->keyid = uint16_fromregion(&sr);
470 isc_region_consume(&sr, 2);
473 dns_name_fromregion(&signer, &sr);
476 isc_region_consume(&sr, name_length(&sig->signer));
481 sig->siglen = sr.length;
482 sig->signature = mem_maybedup(mctx, sr.base, sig->siglen);