Searched defs:hostlabel (Results 1 - 3 of 3) sorted by relevance

/external/mdnsresponder/mDNSPosix/
H A DProxyResponder.c49 domainlabel hostlabel; // Conforms to standard DNS letter-digit-hyphen host name rules member in struct:__anon26836
76 AppendDomainLabel(&p->RR_A.namestorage, &p->hostlabel);
267 MakeDomainLabelFromLiteralString(&proxyhost.hostlabel, argv[2]);
289 fprintf(stderr, "%s ip hostlabel [srvname srvtype port txt [txt ...]]\n", argv[0]);
291 fprintf(stderr, "hostlabel First label of the dot-local host name to create for this host, e.g. \"foo\" for \"foo.local.\"\n");
/external/mdnsresponder/mDNSCore/
H A DDNSCommon.c658 mDNSexport void ConvertUTF8PstringToRFC1034HostLabel(const mDNSu8 UTF8Name[], domainlabel *const hostlabel) argument
662 mDNSu8 * ptr = &hostlabel->c[1];
663 const mDNSu8 *const lim = &hostlabel->c[1] + MAX_DOMAIN_LABEL;
672 if (mDNSValidHostChar(*src, (ptr > &hostlabel->c[1]), (src < end-1))) *ptr++ = *src;
673 else if (ptr > &hostlabel->c[1] && ptr[-1] != '-') *ptr++ = '-';
677 while (ptr > &hostlabel->c[1] && ptr[-1] == '-') ptr--; // Truncate trailing '-' marks
678 hostlabel->c[0] = (mDNSu8)(ptr - &hostlabel->c[1]);
1986 AppendDomainLabel(&hinfo.namestorage, &m->hostlabel);
H A DmDNSEmbeddedAPI.h1858 domainlabel hostlabel; // Conforms to RFC 1034 "letter-digit-hyphen" ARPANET host name rules member in struct:mDNS_struct
2341 extern void ConvertUTF8PstringToRFC1034HostLabel(const mDNSu8 UTF8Name[], domainlabel *const hostlabel);

Completed in 196 milliseconds