Lines Matching refs:label_len
774 u8 label_len; in name_parse() local
776 GET8(label_len); in name_parse()
777 if (!label_len) break; in name_parse()
778 if (label_len & 0xc0) { in name_parse()
782 j = (((int)label_len & 0x3f) << 8) + ptr_low; in name_parse()
790 if (label_len > 63) return -1; in name_parse()
795 if (cp + label_len >= end) return -1; in name_parse()
796 memcpy(cp, packet + j, label_len); in name_parse()
797 cp += label_len; in name_parse()
798 j += label_len; in name_parse()
1402 const unsigned int label_len = end - start; in dnsname_to_labels() local
1403 if (label_len > 63) return -1; in dnsname_to_labels()
1404 if ((size_t)(j+label_len+1) > buf_len) return -2; in dnsname_to_labels()
1406 buf[j++] = label_len; in dnsname_to_labels()
1413 const unsigned int label_len = name - start; in dnsname_to_labels() local
1414 if (label_len > 63) return -1; in dnsname_to_labels()
1415 if ((size_t)(j+label_len+1) > buf_len) return -2; in dnsname_to_labels()
1417 buf[j++] = label_len; in dnsname_to_labels()