Lines Matching +defs:label +defs:offset

199 	unsigned int offset, count, length, nlabels;
212 offset = 0;
215 while (offset != length) {
220 if (offsets != NULL && offsets[nlabels] != offset) {
225 offset += count + 1;
227 if (offset > length) {
236 if (nlabels != name->labels || offset != name->length) {
273 * Does 'name' end in the root label?
304 * Root label.
359 * Root label.
422 unsigned int label;
432 * Skip first label.
438 label = 1;
442 while (label + 1 < name->labels) {
449 label++;
556 * other extended label types.
813 * ended with the root label and the longer one can't have
814 * a root label in the middle of it. Therefore, if we get
884 dns_name_getlabel(const dns_name_t *name, unsigned int n, dns_label_t *label) {
889 * Make 'label' refer to the 'n'th least significant label of 'name'.
895 REQUIRE(label != NULL);
899 label->base = &name->ndata[offsets[n]];
901 label->length = name->length - offsets[n];
903 label->length = offsets[n + 1] - offsets[n];
1060 unsigned char *ndata, *label = NULL;
1148 label = ndata;
1167 *label = count;
1198 * This looks like a bitstring label, which
1267 INSIST(label != NULL);
1268 *label = count;
1277 label = origin->ndata;
1282 n2 = *label++;
1288 c = *label++;
1391 * Special handling for the root label.
1476 "Unexpected label type %02x", count);
1541 * Special handling for the root label.
1600 "Unexpected label type %02x", count);
1683 "Unexpected label type %02x", count);
1709 unsigned int offset, count, length, nlabels;
1715 offset = 0;
1718 while (ISC_LIKELY(offset != length)) {
1720 offsets[nlabels++] = offset;
1723 offset += count + 1;
1725 INSIST(offset <= length);
1735 set_name->length = offset;
1743 INSIST(offset == name->length);
1940 uint16_t offset;
1943 uint16_t go; /* Global compression offset */
1958 * offset of the previously rendered name is passed to us, write
1969 offset = *comp_offsetp;
1970 offset |= 0xc000;
1971 isc_buffer_putuint16(target, offset);
1986 offset = target->used; /*XXX*/
1997 * If the offset is too high for 14 bit global compression, we're
2026 dns_compress_add(cctx, name, &gp, offset);
2028 *comp_offsetp = offset;
2044 dns_compress_add(cctx, name, name, offset);
2046 *comp_offsetp = offset;
2670 * label length consistent with a trust-anchor-telemetry label.