Lines Matching refs:label
23 #define dns_name_foreach_label_safe(label, name, next, maxlen) \
24 for ((label) = (name), (next) = (char *)((name) + *(unsigned char*)(name) + 1); \
25 (*(label) != '\0') && ((uint16_t)((label) - (name)) < (maxlen)); \
26 (label) = (next), (next) = (char *)((next) + *(unsigned char*)(next) + 1))
53 char *label = NULL, *next = NULL;
62 dns_name_foreach_label_safe(label, name, next, 255) {
63 if ((0xC0 & *label))
68 len = (uint16_t)(label - name);
69 if(*label != '\0')
104 /* We want to keep the label lengths */
106 /* Copy the label */
108 /* Move to next length label */
301 * Replaces .'s in a DNS name in URL format by the label lengths. So it
337 * Replaces the label lengths in a DNS-name by .'s. So it actually converts a
347 char *label = NULL, *next = NULL;
349 /* Iterate safely over the labels and update each label */
350 dns_name_foreach_label_safe(label, ptr, next, maxlen) {
351 *label = '.';
358 * Determines the length of the first label of a DNS name in URL-format
361 * @return Length of the first label of DNS name in URL-format
1552 /* Move to next length label */