Home
last modified time | relevance | path

Searched refs:hostlabel (Results 1 – 9 of 9) 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.c1257 m->hostlabel.c[0] = 0; in mDNSPlatformInit()
1258 GetUserSpecifiedRFC1034ComputerName(&m->hostlabel); in mDNSPlatformInit()
1259 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.h1869 domainlabel hostlabel; // Conforms to RFC 1034 "letter-digit-hyphen" ARPANET host name rules member
2352 …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/mDNSWindows/
DmDNSWin32.c2385 ConvertUTF8PstringToRFC1034HostLabel( tempLabel.c, &inMDNS->hostlabel ); in SetupHostName()
2386 if( inMDNS->hostlabel.c[ 0 ] == 0 ) in SetupHostName()
2390 MakeDomainLabelFromLiteralString( &inMDNS->hostlabel, kMDNSDefaultName ); in SetupHostName()
2393 check( inMDNS->hostlabel.c[ 0 ] != 0 ); in SetupHostName()
2397 …ebugLevelInfo, DEBUG_NAME "host name \"%.*s\"\n", inMDNS->hostlabel.c[ 0 ], &inMDNS->hostlabel.c[ … in SetupHostName()
/external/openscreen/osp/impl/discovery/mdns/
Dmdns_responder_adapter_impl.cc235 MakeDomainLabelFromLiteralString(&mdns_.hostlabel, host_label.c_str()); in SetHostLabel()
/external/mdnsresponder/mDNSShared/
Duds_daemon.c2143 strncpy(&(mDNSStorage.hostlabel.c[1]), hostName, len); in handle_sethost_request()
2144 mDNSStorage.hostlabel.c[0] = len; in handle_sethost_request()