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

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

Completed in 201 milliseconds