Lines Matching full:labels
344 int labels = 0, depth = 0, i, initial = 0;
367 // 2. Count the labels
368 while (replyDomain && *replyDomain && labels < MAX_LABELS)
370 label[labels++] = replyDomain;
374 labels (e.g. "apple.com", or "nicta.com.au")
375 if (labels >= 3 && replyDomain - label[labels-1] <= 3 && label[labels-1] - label[labels-2] <= 4) initial = 3;
376 else if (labels >= 2 && replyDomain - label[labels-1] <= 4) initial = 2;
378 labels -= initial;
383 GetNextLabel(label[labels+i], text);
390 for (depth=0; depth<labels; depth++)
394 GetNextLabel(label[labels-1-depth], text);
402 static int CopyLabels(char *dst, const char *lim, const char **srcp, int labels)
405 while (*src != '.' || --labels > 0)
439 if (CopyLabels(t, t + kDNSServiceMaxDomainName, &p, 2)) return; // Fetch next two labels (service type)