Lines Matching defs:sr
89 isc_region_t sr;
102 dns_rdata_toregion(rdata, &sr);
105 refresh = uint32_fromregion(&sr);
106 isc_region_consume(&sr, 4);
111 add = uint32_fromregion(&sr);
112 isc_region_consume(&sr, 4);
117 deltime = uint32_fromregion(&sr);
118 isc_region_consume(&sr, 4);
123 flags = uint16_fromregion(&sr);
124 isc_region_consume(&sr, 2);
137 snprintf(buf, sizeof(buf), "%u", sr.base[0]);
138 isc_region_consume(&sr, 1);
143 algorithm = sr.base[0];
145 isc_region_consume(&sr, 1);
157 RETERR(isc_base64_totext(&sr, 60, "", target));
159 RETERR(isc_base64_totext(&sr, tctx->width - 2,
237 isc_region_t sr;
246 isc_buffer_activeregion(source, &sr);
247 isc_buffer_forward(source, sr.length);
248 return (mem_tobuffer(target, sr.base, sr.length));
253 isc_region_t sr;
259 dns_rdata_toregion(rdata, &sr);
260 return (mem_tobuffer(target, sr.base, sr.length));
314 isc_region_t sr;
323 dns_rdata_toregion(rdata, &sr);
326 if (sr.length < 4)
328 keydata->refresh = uint32_fromregion(&sr);
329 isc_region_consume(&sr, 4);
332 if (sr.length < 4)
334 keydata->addhd = uint32_fromregion(&sr);
335 isc_region_consume(&sr, 4);
338 if (sr.length < 4)
340 keydata->removehd = uint32_fromregion(&sr);
341 isc_region_consume(&sr, 4);
344 if (sr.length < 2)
346 keydata->flags = uint16_fromregion(&sr);
347 isc_region_consume(&sr, 2);
350 if (sr.length < 1)
352 keydata->protocol = uint8_fromregion(&sr);
353 isc_region_consume(&sr, 1);
356 if (sr.length < 1)
358 keydata->algorithm = uint8_fromregion(&sr);
359 isc_region_consume(&sr, 1);
362 keydata->datalen = sr.length;
363 keydata->data = mem_maybedup(mctx, sr.base, keydata->datalen);