Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DDNSCommon.c843 …rt void ConvertUTF8PstringToRFC1034HostLabel(const mDNSu8 UTF8Name[], domainlabel *const hostlabel) in ConvertUTF8PstringToRFC1034HostLabel() argument
847 mDNSu8 * ptr = &hostlabel->c[1]; in ConvertUTF8PstringToRFC1034HostLabel()
848 const mDNSu8 *const lim = &hostlabel->c[1] + MAX_DOMAIN_LABEL; in ConvertUTF8PstringToRFC1034HostLabel()
857 if (mdnsValidHostChar(*src, (ptr > &hostlabel->c[1]), (src < end-1))) *ptr++ = *src; in ConvertUTF8PstringToRFC1034HostLabel()
858 else if (ptr > &hostlabel->c[1] && ptr[-1] != '-') *ptr++ = '-'; in ConvertUTF8PstringToRFC1034HostLabel()
862 while (ptr > &hostlabel->c[1] && ptr[-1] == '-') ptr--; // Truncate trailing '-' marks in ConvertUTF8PstringToRFC1034HostLabel()
863 hostlabel->c[0] = (mDNSu8)(ptr - &hostlabel->c[1]); in ConvertUTF8PstringToRFC1034HostLabel()
H A DmDNSPosix.c1397 m->hostlabel.c[0] = 0; in mDNSPlatformInit()
1398 GetUserSpecifiedRFC1034ComputerName(&m->hostlabel); in mDNSPlatformInit()
1399 if (m->hostlabel.c[0] == 0) MakeDomainLabelFromLiteralString(&m->hostlabel, "Computer"); in mDNSPlatformInit()
H A DmDNSEmbeddedAPI.h2171 domainlabel hostlabel; // Conforms to RFC 1034 "letter-digit-hyphen" ARPANET host name rules member
2504 …id ConvertUTF8PstringToRFC1034HostLabel(const mDNSu8 UTF8Name[], domainlabel *const hostlabel);
H A DmDNS.c6463 …if (!AppendDomainLabel(&newmname, &m->hostlabel)) { LogMsg("ERROR: mDNS_SetFQDN: Cannot create Mu… in mDNS_SetFQDN()
6511 domainlabel oldlabel = m->hostlabel; in mDNS_HostNameCallback()
6522 if (SameDomainLabel(m->hostlabel.c, oldlabel.c)) in mDNS_HostNameCallback()
6523 IncrementLabelSuffix(&m->hostlabel, mDNSfalse); in mDNS_HostNameCallback()
6528 …"Local Hostname %#s.local already in use; will try %#s.local instead", oldlabel.c, m->hostlabel.c); in mDNS_HostNameCallback()
7261 m->hostlabel.c[0] = 0; in mDNS_Init()