Lines Matching refs:scoped

4523             // We handle mDNSInterface_Any and scoped questions here. See LocalOnlyRecordAnswersQuestion for more
4525 // we handle both mDNSInterface_Any and scoped questions.
10671 // with "scoped" set to kScopeNone)
10673 // 2) Scoped questions (non-NULL InterfaceID) should consider *only* scoped DNSServers (DNSServer
10674 // with "scoped" set to kScopeInterfaceId) and their InterfaceIDs should match.
10676 // 3) Scoped questions (non-zero ServiceID) should consider *only* scoped DNSServers (DNSServer
10677 // with "scoped" set to kScopeServiceID) and their ServiceIDs should match.
10685 // - DNSServer is not scoped, InterfaceID is not NULL - we should skip the current DNSServer entry
10686 // as scoped questions should not pick non-scoped DNSServer entry (Refer to (2) above).
10688 // - DNSServer is scoped, InterfaceID is NULL - we should skip the current DNSServer entry as
10689 // unscoped question should not match scoped DNSServer (Refer to (1) above). The InterfaceID check
10692 // - DNSServer is scoped and InterfaceID is not NULL - the InterfaceID of the question and the DNSServer
10696 // If a question is scoped both to InterfaceID and ServiceID, the question will be scoped to InterfaceID.
10698 if (((d->scoped == kScopeNone) && ((!InterfaceID && ServiceID == -1) || InterfaceID == mDNSInterface_Unicast)) ||
10699 ((d->scoped == kScopeInterfaceID) && d->interface == InterfaceID) ||
10700 ((d->scoped == kScopeServiceID) && d->serviceID == ServiceID))
10721 debugf("SetValidDNSServers: Parsing DNS server Address %#a (Domain %##s), Scope: %d", &curr->addr, curr->domain.c, curr->scoped);
10725 debugf("SetValidDNSServers: Delete set for index %d, DNS server %#a (Domain %##s), scoped %d", index, &curr->addr, curr->domain.c, curr->scoped);
10733 // match the scoped entries by mistake.
10738 if ((curr->scoped == kScopeInterfaceID && curr->interface == mDNSInterface_Any) || (curr->scoped == kScopeServiceID && curr->serviceID <= 0))
10740 LogInfo("SetValidDNSServers: ScopeType[%d] Skipping DNS server %#a (Domain %##s) Interface:[%p] Serviceid:[%d]", curr->scoped, &curr->addr, curr->domain.c, curr->interface, curr->serviceID);
10763 " Timeout %d, interface %p", question->qname.c, &curr->addr, curr->domain.c, curr->scoped, index, curr->timeout,
10802 debugf("GetBestServer: Delete set for index %d, DNS server %#a (Domain %##s), scoped %d", index, &curr->addr, curr->domain.c, curr->scoped);
14694 // All non-scoped resolvers share the same resGroupID. At no point in time a cache entry using DNSServer
14695 // from scoped resolver will be used to answer non-scoped questions and vice versa, as scoped and non-scoped
14699 // - A non-scoped question picks DNSServer X, creates a cache entry with X. If a new resolver gets added later that
14711 // - A non-scoped question picks DNSServer X, creates a cache entry with X. If the resolver gets removed later, we will
14715 // - Two questions scoped and non-scoped for the same name will pick two different DNSServer and will end up creating separate
14716 // cache records and as the resGroupID is different, you can't use the cache record from the scoped DNSServer to answer the
14717 // non-scoped question and vice versa.