Lines Matching refs:sr

129 	isc_region_t sr;
143 dns_rdata_toregion(rdata, &sr);
148 covered = uint16_fromregion(&sr);
149 isc_region_consume(&sr, 2);
166 sprintf(buf, "%u", sr.base[0]);
167 isc_region_consume(&sr, 1);
174 sprintf(buf, "%u", sr.base[0]);
175 isc_region_consume(&sr, 1);
182 ttl = uint32_fromregion(&sr);
183 isc_region_consume(&sr, 4);
191 exp = uint32_fromregion(&sr);
192 isc_region_consume(&sr, 4);
202 when = uint32_fromregion(&sr);
203 isc_region_consume(&sr, 4);
210 foot = uint16_fromregion(&sr);
211 isc_region_consume(&sr, 2);
221 dns_name_fromregion(&name, &sr);
222 isc_region_consume(&sr, name_length(&name));
230 RETERR(isc_base64_totext(&sr, tctx->width - 2,
240 isc_region_t sr;
250 isc_buffer_activeregion(source, &sr);
260 if (sr.length < 18)
264 RETERR(mem_tobuffer(target, sr.base, 18));
275 isc_buffer_activeregion(source, &sr);
276 isc_buffer_forward(source, sr.length);
277 return (mem_tobuffer(target, sr.base, sr.length));
282 isc_region_t sr;
290 dns_rdata_toregion(rdata, &sr);
300 RETERR(mem_tobuffer(target, sr.base, 18));
301 isc_region_consume(&sr, 18);
307 dns_name_fromregion(&name, &sr);
308 isc_region_consume(&sr, name_length(&name));
314 return (mem_tobuffer(target, sr.base, sr.length));
421 isc_region_t sr;
433 dns_rdata_toregion(rdata, &sr);
438 sig->covered = uint16_fromregion(&sr);
439 isc_region_consume(&sr, 2);
444 sig->algorithm = uint8_fromregion(&sr);
445 isc_region_consume(&sr, 1);
450 sig->labels = uint8_fromregion(&sr);
451 isc_region_consume(&sr, 1);
456 sig->originalttl = uint32_fromregion(&sr);
457 isc_region_consume(&sr, 4);
462 sig->timeexpire = uint32_fromregion(&sr);
463 isc_region_consume(&sr, 4);
468 sig->timesigned = uint32_fromregion(&sr);
469 isc_region_consume(&sr, 4);
474 sig->keyid = uint16_fromregion(&sr);
475 isc_region_consume(&sr, 2);
478 dns_name_fromregion(&signer, &sr);
481 isc_region_consume(&sr, name_length(&sig->signer));
486 sig->siglen = sr.length;
487 sig->signature = mem_maybedup(mctx, sr.base, sig->siglen);