Lines Matching refs:sr
112 isc_region_t sr;
128 dns_rdata_toregion(rdata, &sr);
132 while (sr.length > 0) {
133 INSIST(sr.length >= 4);
134 afi = uint16_fromregion(&sr);
135 isc_region_consume(&sr, 2);
136 prefix = *sr.base;
137 isc_region_consume(&sr, 1);
138 len = (*sr.base & 0x7f);
139 neg = ISC_TF((*sr.base & 0x80) != 0);
140 isc_region_consume(&sr, 1);
141 INSIST(len <= sr.length);
151 memmove(buf, sr.base, len);
159 memmove(buf, sr.base, len);
169 isc_region_consume(&sr, len);
177 isc_region_t sr, sr2;
191 isc_buffer_activeregion(source, &sr);
193 if (sr.length > tr.length)
195 sr2 = sr;
198 while (sr.length > 0) {
199 if (sr.length < 4)
201 afi = uint16_fromregion(&sr);
202 isc_region_consume(&sr, 2);
203 prefix = *sr.base;
204 isc_region_consume(&sr, 1);
205 len = (*sr.base & 0x7f);
206 isc_region_consume(&sr, 1);
207 if (len > sr.length)
218 if (len > 0 && sr.base[len - 1] == 0)
220 isc_region_consume(&sr, len);