Home
last modified time | relevance | path

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

/external/mdnsresponder/mDNSPosix/
DmDNSPosix.c482 mDNSlocal void GetUserSpecifiedRFC1034ComputerName(domainlabel *const namelabel) in GetUserSpecifiedRFC1034ComputerName() argument
486 gethostname((char *)(&namelabel->c[1]), MAX_DOMAIN_LABEL); in GetUserSpecifiedRFC1034ComputerName()
489 strncpy(&namelabel->c[1], "Android", MAX_DOMAIN_LABEL); in GetUserSpecifiedRFC1034ComputerName()
491 while (len < MAX_DOMAIN_LABEL && namelabel->c[len+1] && namelabel->c[len+1] != '.') len++; in GetUserSpecifiedRFC1034ComputerName()
492 namelabel->c[0] = len; in GetUserSpecifiedRFC1034ComputerName()
498 mDNSlocal void GetUserSpecifiedFriendlyComputerName(domainlabel *const namelabel) in GetUserSpecifiedFriendlyComputerName() argument
501 GetUserSpecifiedRFC1034ComputerName(namelabel); in GetUserSpecifiedFriendlyComputerName()