Home
last modified time | relevance | path

Searched refs:hostlabel (Results 1 – 7 of 7) sorted by relevance

/external/mdnsresponder/mDNSPosix/
DProxyResponder.c49 domainlabel hostlabel; // Conforms to standard DNS letter-digit-hyphen host name rules member
76 AppendDomainLabel(&p->RR_A.namestorage, &p->hostlabel); in mDNS_RegisterProxyHost()
267 MakeDomainLabelFromLiteralString(&proxyhost.hostlabel, argv[2]); in main()
DmDNSPosix.c1256 m->hostlabel.c[0] = 0; in mDNSPlatformInit()
1257 GetUserSpecifiedRFC1034ComputerName(&m->hostlabel); in mDNSPlatformInit()
1258 if (m->hostlabel.c[0] == 0) MakeDomainLabelFromLiteralString(&m->hostlabel, "Computer"); in mDNSPlatformInit()
/external/mdnsresponder/mDNSCore/
DDNSCommon.c658 …rt void ConvertUTF8PstringToRFC1034HostLabel(const mDNSu8 UTF8Name[], domainlabel *const hostlabel) in ConvertUTF8PstringToRFC1034HostLabel() argument
662 mDNSu8 * ptr = &hostlabel->c[1]; in ConvertUTF8PstringToRFC1034HostLabel()
663 const mDNSu8 *const lim = &hostlabel->c[1] + MAX_DOMAIN_LABEL; in ConvertUTF8PstringToRFC1034HostLabel()
672 if (mDNSValidHostChar(*src, (ptr > &hostlabel->c[1]), (src < end-1))) *ptr++ = *src; in ConvertUTF8PstringToRFC1034HostLabel()
673 else if (ptr > &hostlabel->c[1] && ptr[-1] != '-') *ptr++ = '-'; in ConvertUTF8PstringToRFC1034HostLabel()
677 while (ptr > &hostlabel->c[1] && ptr[-1] == '-') ptr--; // Truncate trailing '-' marks in ConvertUTF8PstringToRFC1034HostLabel()
678 hostlabel->c[0] = (mDNSu8)(ptr - &hostlabel->c[1]); in ConvertUTF8PstringToRFC1034HostLabel()
1986 AppendDomainLabel(&hinfo.namestorage, &m->hostlabel); in putHINFO()
DmDNSEmbeddedAPI.h1858 domainlabel hostlabel; // Conforms to RFC 1034 "letter-digit-hyphen" ARPANET host name rules member
2341 …id ConvertUTF8PstringToRFC1034HostLabel(const mDNSu8 UTF8Name[], domainlabel *const hostlabel);
DmDNS.c9265 …if (!AppendDomainLabel(&newmname, &m->hostlabel)) { LogMsg("ERROR: mDNS_SetFQDN: Cannot create Mu… in mDNS_SetFQDN()
9312 domainlabel oldlabel = m->hostlabel; in mDNS_HostNameCallback()
9321 if (SameDomainLabel(m->hostlabel.c, oldlabel.c)) in mDNS_HostNameCallback()
9322 IncrementLabelSuffix(&m->hostlabel, mDNSfalse); in mDNS_HostNameCallback()
9327 …"Local Hostname %#s.local already in use; will try %#s.local instead", oldlabel.c, m->hostlabel.c); in mDNS_HostNameCallback()
10695 m->hostlabel.c[0] = 0; in mDNS_Init()
DuDNS.c2540 hinfoSize = (m->hostlabel.c[0] + 1) + DomainNameLength(&AuthInfo->domain) + in RRAdditionalSize()
/external/mdnsresponder/mDNSShared/
Duds_daemon.c2140 strncpy(&(mDNSStorage.hostlabel.c[1]), hostName, len); in handle_sethost_request()
2141 mDNSStorage.hostlabel.c[0] = len; in handle_sethost_request()