Lines Matching defs:newname
928 const domainname *newname = &m->MulticastHostname;
935 if (n) newname = n;
939 if (target && SameDomainName(target, newname))
942 if (target && !SameDomainName(target, newname))
944 AssignDomainName(target, newname);
10540 //Checks to see whether the newname is a better match for the name, given the best one we have
10542 //Returns -1 if the newname is not a better match
10543 //Returns 0 if the newname is the same as the old match
10544 //Returns 1 if the newname is a better match
10545 mDNSlocal int BetterMatchForName(const domainname *name, int namecount, const domainname *newname, int newcount,
10552 // If there is no match, return -1 and the caller will skip this newname for
10565 if (SameDomainName(SkipLeadingLabels(name, namecount - newcount), newname))
13433 mDNSexport mStatus mDNS_RenameAndReregisterService(mDNS *const m, ServiceRecordSet *const sr, const domainlabel *newname)
13444 if (!newname)
13448 newname = &name2;
13452 debugf("%##s service renamed from \"%#s\" to \"%#s\"", type.c, name1.c, newname->c);
13453 else debugf("%##s service (domain %##s) renamed from \"%#s\" to \"%#s\"",type.c, domain.c, name1.c, newname->c);
13455 err = mDNS_RegisterService(m, sr, newname, &type, &domain,
14380 domainlabel name, newname;
14385 ConstructSleepProxyServerName(m, &newname);
14386 if (!SameDomainLabelCS(name.c, newname.c))
14388 LogSPS("Renaming SPS from ā%#sā to ā%#sā", name.c, newname.c);