Lines Matching defs:ServiceID
10648 mDNSlocal mDNSBool DNSServerMatch(DNSServer *d, mDNSInterfaceID InterfaceID, mDNSs32 ServiceID)
10656 // 3) Scoped questions (non-zero ServiceID) should consider *only* scoped DNSServers (DNSServer
10660 // unscoped. The question is unscoped only if InterfaceID is zero and ServiceID is -1.
10663 // InterfaceID for discussion and the same holds good for ServiceID):
10676 // If a question is scoped both to InterfaceID and ServiceID, the question will be scoped to InterfaceID.
10678 if (((d->scoped == kScopeNone) && ((!InterfaceID && ServiceID == -1) || InterfaceID == mDNSInterface_Unicast)) ||
10680 ((d->scoped == kScopeServiceID) && d->serviceID == ServiceID))
10724 if ((!DEQuery || !curr->cellIntf) && DNSServerMatch(curr, question->InterfaceID, question->ServiceID))
10763 mDNSlocal DNSServer *GetBestServer(mDNS *m, const domainname *name, mDNSInterfaceID InterfaceID, mDNSs32 ServiceID, mDNSOpaque64 validBits,
10806 if (DNSServerMatch(curr, InterfaceID, ServiceID))
10838 mDNSlocal DNSServer *GetServerForName(mDNS *m, const domainname *name, mDNSInterfaceID InterfaceID, mDNSs32 ServiceID)
10852 curmatch = GetBestServer(m, name, InterfaceID, ServiceID, allValid, mDNSNULL, mDNStrue);
10881 curmatch = GetBestServer(m, name, InterfaceID, question->ServiceID, question->validDNSServers, &currindex, mDNSfalse);
10891 InterfaceID, question->ServiceID, name, DNSTypeName(question->qtype));
10896 question, ifname ? ifname : "None", InterfaceID, question->ServiceID, name, DNSTypeName(question->qtype));
11467 // since we would already have the question->ServiceID in that case.
11469 question->ServiceID = mDNSPlatformGetServiceID(m, question);
11471 LogInfo("InitCommonState: Query for %##s (%s), PID[%d], ServiceID %d is already set by client", question->qname.c,
11472 DNSTypeName(question->qtype), question->pid, question->ServiceID);
11481 // If ServiceID is 0 or the policy disallows making DNS requests,
11483 question->DisallowPID = (question->ServiceID == 0 || (mDNSPlatformAllowPID(m, question) == 0));
11485 LogInfo("InitCommonState: Query suppressed for %##s (%s), PID %d/ServiceID %d not allowed", question->qname.c,
11486 DNSTypeName(question->qtype), question->pid, question->ServiceID);
14752 // active question's InterfaceID/ServiceID for looking up the right DNS server.
14753 // Note that the unscoped value for ServiceID is -1.
14761 (cr->CRActiveQuestion ? cr->CRActiveQuestion->ServiceID : -1));