Lines Matching refs:next

178     e->next = r->rrauth_free;
191 *cp = (*cp)->next; // Cut record from list
209 storage->next = mDNSNULL;
224 if ((*cp)->members || (*cp)==PreserveAG) cp=&(*cp)->next;
235 r->rrauth_free = e->next;
254 for (ag = r->rrauth_hash[slot]; ag; ag=ag->next)
270 ag->next = r->rrauth_hash[slot];
305 ag->rrauth_tail = &(rr->next); // Advance tail pointer
323 rp=&(*rp)->next;
329 *rp = (*rp)->next; // Cut record from list
340 for (cg = m->rrcache_hash[slot]; cg; cg=cg->next)
359 for (intf = m->HostInterfaces; intf; intf = intf->next)
368 for (intf = m->HostInterfaces; intf; intf = intf->next)
383 while (intf && intf->InterfaceID != InterfaceID) intf = intf->next;
396 for (intf = m->HostInterfaces; intf; intf = intf->next)
616 m->CurrentQuestion = q->next;
651 m->CurrentQuestion = q->next;
1082 rp=&(*rp)->next;
1088 rp=&(*rp)->next;
1113 rp=&(*rp)->next;
1132 rp=&(*rp)->next;
1267 while (*p && *p != rr) p=&(*p)->next;
1276 while (*d && *d != rr) d=&(*d)->next;
1302 rr->next = mDNSNULL;
1443 while (*p) p=&(*p)->next;
1464 for (r = m->ResourceRecords; r; r=r->next)
1479 // kDNSRecordTypeVerified state and call the client callback at the next appropriate time.
1587 while (*rp && *rp != rr) rp=&(*rp)->next;
1592 while (*p && *p != rr) p=&(*p)->next;
1602 for (r2 = m->DuplicateRecords; r2; r2=r2->next) if (RecordIsLocalDuplicate(r2, rr)) r2->ProbeCount = 0xFF;
1609 while (*d && !RecordIsLocalDuplicate(*d, rr)) d=&(*d)->next;
1615 *d = dup->next; // Cut replacement record from DuplicateRecords list
1618 dup->next = mDNSNULL;
1623 dup->next = rr->next; // And then...
1624 rr->next = dup; // ... splice it in right after the record we're about to delete
1652 while (*p && *p != rr) p=&(*p)->next;
1762 if (ag->NewLocalOnlyRecords == rr) ag->NewLocalOnlyRecords = rr->next;
1766 *p = rr->next; // Cut this record from the list
1767 if (m->NewLocalRecords == rr) m->NewLocalRecords = rr->next;
1771 if (m->CurrentRecord == rr) m->CurrentRecord = rr->next;
1772 rr->next = mDNSNULL;
1816 r2 = r2->next;
1869 for (rr2=m->ResourceRecords; rr2; rr2=rr2->next) // Scan list of resource records
1878 for (rr2=m->ResourceRecords; rr2; rr2=rr2->next) // Scan list of resource records
1911 for (rr = m->ResourceRecords; rr; rr=rr->next)
1985 for (rr = m->ResourceRecords; rr; rr=rr->next)
2060 m->CurrentRecord = rr->next;
2385 for (rr = m->ResourceRecords; rr; rr=rr->next)
2406 for (rr = m->ResourceRecords; rr; rr=rr->next)
2421 for (r2 = rr; r2; r2=r2->next)
2475 for (rr = m->ResourceRecords; rr; rr=rr->next)
2487 for (rr = m->ResourceRecords; rr; rr=rr->next)
2490 for (r2=m->ResourceRecords; r2; r2=r2->next) // Scan list of resource records
2515 for (rr = m->ResourceRecords; rr; rr=rr->next)
2520 for (r2 = m->ResourceRecords; r2; r2=r2->next)
2528 for (r2 = m->ResourceRecords; r2; r2=r2->next)
2536 for (rr = m->ResourceRecords; rr; rr=rr->next)
2585 for (rr = m->ResourceRecords; rr; rr=rr->next)
2646 if (newptr) // If succeeded in sending, advance to next interface
2655 // If sending on all interfaces, go to next interface; else we're finished now
2668 for (rr = m->ResourceRecords; rr; rr=rr->next)
2691 for (rr = m->ResourceRecords; rr; rr=rr->next)
2704 for (a = m->ResourceRecords; a; a=a->next)
2741 for (rr = m->ResourceRecords; rr; rr=rr->next)
2761 for (r2 = m->ResourceRecords; r2; r2=r2->next)
2782 for (r2 = rr->next; r2; r2=r2->next)
2844 else // Nothing more to send on this interface; go to next
2846 const NetworkInterfaceInfo *next = GetFirstActiveInterface(intf->next);
2848 const char *const msg = next ? "SendResponses: Nothing more on %p; moving to %p" : "SendResponses: Nothing more on %p";
2849 debugf(msg, intf, next);
2851 intf = next;
2866 m->CurrentRecord = rr->next;
2999 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // If we have a resource record in our cache,
3019 // then undo that last question and try again next time
3027 return(mDNSfalse); // Return false, so we'll try again in the next packet
3037 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // For every resource record in our cache,
3090 while (cr && !RRTypeIsAddressType(cr->resrec.rrtype)) cr=cr->next;
3101 for (cr = cg ? cg->members : mDNSNULL; cr; cr=cr->next)
3265 // If half-way to next scheduled query time, only accelerate if it will add less than 512 bytes to the packet
3273 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // If we have a resource record in our cache,
3373 // If we fail to get a new on-demand socket (should only happen cases of the most extreme resource exhaustion), we'll try again next time
3400 if (q == m->CurrentQuestion) m->CurrentQuestion = m->CurrentQuestion->next;
3405 m->CurrentQuestion = m->CurrentQuestion->next;
3414 // next thing we do is scan the list and call SetNextQueryTime() for every question we find, so we know we end up with the right value.
3416 for (q = m->Questions; q && q != m->NewQuestions; q=q->next)
3421 // If at least halfway to next query time, advance to next interval
3422 // If less than halfway to next query time, then
3449 debugf("SendQueries: %##s (%s) next interval %d seconds RequestUnicast = %d",
3487 // For all questions (not just the ones we're sending) check what the next scheduled event will be
3502 m->CurrentRecord = ar->next;
3546 for (r2 = m->DuplicateRecords; r2; r2=r2->next)
3576 m->CurrentRecord = ar->next;
3599 for (q = m->Questions; q && q != m->NewQuestions; q=q->next)
3650 for (ar = m->ResourceRecords; ar; ar=ar->next)
3697 for (ar = m->ResourceRecords; ar; ar=ar->next)
3708 for (q = m->Questions; q; q = q->next)
3782 else // Nothing more to send on this interface; go to next
3784 const NetworkInterfaceInfo *next = GetFirstActiveInterface(intf->next);
3786 const char *const msg = next ? "SendQueries: Nothing more on %p; moving to %p" : "SendQueries: Nothing more on %p";
3787 debugf(msg, intf, next);
3789 intf = next;
3796 for (ar = m->ResourceRecords; ar; ar=ar->next)
3826 for (q = m->Questions; q; q=q->next)
3831 for (x = m->NewQuestions; x; x=x->next) if (x == q) break; // Check if this question is a NewQuestion
3919 // to do it on the next ADD of a negative cache record. This ADD could be the result of a timeout, no DNS servers
4073 m->CurrentQuestion = q->next;
4088 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
4095 // It needs to schedule the timer for the next cache expiry (ScheduleNextCacheCheckTime),
4153 for (q = m->Questions; q && q != m->NewQuestions; q=q->next)
4163 // randomized over the next four seconds to reduce possible synchronization between machines.
4209 m->CurrentQuestion = q->next;
4241 m->CurrentQuestion = q->next;
4312 m->CurrentQuestion = q->next;
4323 e->next = m->rrcache_free;
4338 *cp = (*cp)->next; // Cut record from list
4347 *rp = (*rp)->next; // Cut record from list
4434 *rp = rr->next; // Cut it from the list
4469 if (m->timenow - rr->NextRequiredQuery < 0) // If not yet time for next query
4470 event = NextCacheCheckEvent(rr); // then just record when we want the next query
4486 rp = &rr->next;
4518 m->CurrentRecord = rr->next;
4574 lr = lr->next;
4613 m->NewQuestions = q->next;
4614 // Advance NewQuestions to the next *after* calling CheckCacheExpiration, because if we advance it first
4677 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
4686 continue; // Go to next one in loop
4754 m->NewLocalOnlyQuestions = q->next; // Advance NewLocalOnlyQuestions to the next (if any)
4777 m->CurrentRecord = rr->next;
4793 m->CurrentRecord = rr->next;
4853 rp=&(*rp)->next;
4857 *rp = (*rp)->next; // Cut record from list
4864 if ((*cp)->members || (*cp)==PreserveCG) cp=&(*cp)->next;
4875 m->rrcache_free = e->next;
4912 cg->next = m->rrcache_hash[slot];
5001 m->CurrentRecord = rr->next;
5025 m->CurrentRecord = rr->next;
5060 m->CurrentQuestion = q->next;
5071 rrNext = rrPtr->next;
5124 if ((*cp)->members) cp=&(*cp)->next;
5133 debugf("m->NextCacheCheck %4d checked, next in %d", numchecked, m->NextCacheCheck - m->timenow);
5186 for (ag = m->rrauth.rrauth_hash[slot]; ag; ag = ag->next)
5202 m->NewLocalRecords = m->NewLocalRecords->next;
5208 else if (!rr->next)
5225 while (*p && *p != rr) p=&(*p)->next;
5226 if (*p) *p = rr->next; // Cut this record from the list
5230 while (*p) p=&(*p)->next;
5236 tail->next = rr;
5239 rr->next = mDNSNULL;
5253 for (ag = m->rrauth.rrauth_hash[slot]; ag; ag = ag->next)
5258 ag->NewLocalOnlyRecords = ag->NewLocalOnlyRecords->next;
5280 // We send queries next, because there might be final-stage probes that complete their probing here, causing
5293 for (q = m->Questions; q && q != m->NewQuestions; q=q->next)
5313 // Clear RandomDelay values, ready to pick a new different value next time
5327 // performing mDNS API operations that change our next scheduled event time.
5353 for (q = m->Questions; q; q = q->next)
5369 for (rr = ag->members; rr; rr=rr->next)
5448 // *any* other question which could be the next one that we may process here. RestartQuestion
5449 // points to the "next" question which will be automatically advanced in mDNS_StopQuery_internal
5450 // if the "next" question is stopped while the CurrentQuestion is stopped
5460 m->RestartQuestion = q->next;
5469 DNSQuestion *refq = q->next;
5478 refq = refq->next;
5520 q->next = restart;
5532 restart = restart->next;
5533 q->next = mDNSNULL;
5552 m->CurrentQuestion = m->CurrentQuestion->next;
5558 for (q = m->Questions; q; q=q->next) // Scan our list of questions
5631 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
5741 m->CurrentRecord = rr->next;
5870 for (rr = m->ResourceRecords; rr; rr=rr->next)
5903 for (rr = m->ResourceRecords; rr; rr=rr->next)
5995 for (ar = m->ResourceRecords; ar && ar != rr; ar=ar->next)
6031 newRR->next = m->SPSRRSet;
6054 for (ar = m->ResourceRecords; ar; ar=ar->next)
6108 for (ar = m->ResourceRecords; ar; ar=ar->next)
6125 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6130 for (rr = m->ResourceRecords; rr; rr=rr->next)
6133 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6147 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6208 for (rr = m->ResourceRecords; rr; rr=rr->next)
6224 for (rr = m->ResourceRecords; rr; rr=rr->next)
6267 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6280 for (rr = m->ResourceRecords; rr; rr=rr->next)
6302 for (newIntf = FirstInterfaceForID(m, intfid); newIntf; newIntf = newIntf->next)
6311 for (intf = FirstInterfaceForID(m, regID[i]); intf; intf = intf->next)
6343 m->CurrentRecord = rr->next;
6371 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6608 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next)) intf->NextSPSAttempt = -1;
6681 for (rr = m->ResourceRecords; rr; rr=rr->next)
6716 // If we've not hit the sleep limit time, and it's not time for our next retry, we can skip these checks
6722 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6739 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6751 for (rr = m->ResourceRecords; rr; rr = rr->next)
6757 for (q = m->Questions; q; q = q->next)
6765 for (rr = m->ResourceRecords; rr; rr = rr->next)
6786 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6794 for (rr = m->ResourceRecords; rr; rr = rr->next)
6804 // we'll be put back to sleep forcibly without the chance to schedule the next maintenance wake.
6829 for (nat = m->NATTraversals; nat; nat=nat->next)
6845 for (ar = m->ResourceRecords; ar; ar = ar->next)
6899 break; // break out of the ResponseRecords loop, and go on to the next question
6972 for (r1 = m->ResourceRecords; r1; r1=r1->next)
6981 for (r1 = m->DuplicateRecords; r1; r1=r1->next)
7000 for (rr = m->ResourceRecords; rr; rr=rr->next)
7106 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
7151 m->CurrentRecord = rr->next;
7175 m->CurrentRecord = rr->next;
7214 m->CurrentRecord = rr->next;
7317 m->CurrentRecord = rr->next;
7400 for (cr = cg ? cg->members : mDNSNULL; cr; cr=cr->next)
7432 for (q = m->Questions; q; q=q->next)
7451 for (rr = m->ResourceRecords; rr; rr=rr->next) // Now build our list of potential answers
7483 for (rr=m->ResourceRecords; rr; rr=rr->next)
7687 // *** 10. Finally, clear our link chains ready for use next time
7835 for (s = m->DNSServers; s; s = s->next)
7849 for (q = m->Questions; q; q=q->next)
7872 for (q = m->Questions; q; q=q->next)
7967 rr->next = mDNSNULL; // Clear 'next' pointer
7984 cg->rrcache_tail = &(rr->next); // Advance tail pointer
8026 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
8169 CacheRecord *rp, *next;
8171 for (rp = NSECRecords; rp; rp = next)
8173 next = rp->next;
8194 DNSQuestion *next, *q;
8203 for (q = qptr->next ; q && q != m->NewQuestions; q = next)
8205 next = q->next;
8240 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
8474 for (rrPtr = m->SPSRRSet; rrPtr; rrPtr = rrPtr->next)
8484 for (rrPtr = m->SPSRRSet; rrPtr; rrPtr = rrPtr->next)
8503 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
8537 for (q = m->Questions; q; q=q->next)
8620 for (q = m->Questions; q; q=q->next)
8695 NSEC3Records = &rr->next;
8826 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
8849 // req_DO to false here, the next retransmission for this question will turn off validation
8876 // generate negative cache entries (we want to query the next server)
8949 // In the case of polling LLQs, we assume the record remains valid until the next poll
9062 m->CurrentRecord = rr->next;
9232 nsecp = &rr->next;
9283 for (r2 = cg ? cg->members : mDNSNULL; r2; r2=r2->next)
9487 m->CurrentRecord = rr->next;
9593 // if we never filled any bytes and the next character is space (we have reached the end)
9854 for (ar = m->ResourceRecords; ar; ar=ar->next)
9891 for (ar = m->ResourceRecords; ar; ar=ar->next)
9958 // record, which is the TCP connection's "next" sequence number minus one. Otherwise, the
10180 m->CurrentRecord = rr->next;
10393 for (q = m->Questions; q && q != question; q=q->next) // Scan our list for another question
10429 for (q = m->Questions; q; q=q->next) // Scan our list of questions
10515 *p = tmp->next;
10516 tmp->next = mDNSNULL;
10519 p=&(*p)->next;
10534 (*p)->next = mDNSNULL;
10601 for (curr = m->McastResolvers; curr; curr = curr->next)
10719 for (curr = m->DNSServers; curr; curr = curr->next)
10797 for (curr = m->DNSServers; curr; curr = curr->next)
10934 for (q = m->Questions; q; q=q->next)
11021 for (intf = m->HostInterfaces; intf; intf = intf->next)
11044 for (rr = m->ResourceRecords; rr; rr = rr->next)
11092 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
11119 for (qptr = m->Questions; qptr; qptr=qptr->next)
11140 for (q = m->NewQuestions; q; q = q->next)
11165 for (rr = ag->members; rr; rr=rr->next)
11262 q->next = *restart;
11280 // *any* other question which could be the next one that we may process here. RestartQuestion
11281 // points to the "next" question which will be automatically advanced in mDNS_StopQuery_internal
11282 // if the "next" question is stopped while the CurrentQuestion is stopped
11290 m->RestartQuestion = q->next;
11307 restart = restart->next;
11308 q->next = mDNSNULL;
11326 m->RestartQuestion = q->next;
11339 restart = restart->next;
11340 q->next = mDNSNULL;
11449 question->next = mDNSNULL;
11717 q=&(*q)->next;
11811 while (*qp && *qp != question) qp=&(*qp)->next;
11812 if (*qp) *qp = (*qp)->next;
11854 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
11861 for (q = m->Questions; q; q=q->next) // Scan our list of questions
11878 m->CurrentQuestion = question->next;
11885 m->NewQuestions = question->next;
11888 if (m->NewLocalOnlyQuestions == question) m->NewLocalOnlyQuestions = question->next;
11894 m->RestartQuestion = question->next;
11901 m->ValidationQuestion = question->next;
11904 // Take care not to trash question->next until *after* we've updated m->CurrentQuestion and m->NewQuestions
11905 question->next = mDNSNULL;
11910 // Must not do this until last, because there's a good chance the GetZoneData question is the next in the list,
11911 // so if we delete it earlier in this routine, we could find that our "question->next" pointer above is already
11920 for (q = m->Questions; q; q=q->next)
12009 for (qq = m->NewQuestions; qq; qq=qq->next) if (qq == question) break;
12018 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
12114 for (intf = m->HostInterfaces; intf; intf = intf->next)
12536 for (intf = m->HostInterfaces; intf; intf = intf->next)
12657 for (intf = m->HostInterfaces; intf; intf = intf->next)
12670 for (intf = m->HostInterfaces; intf; intf = intf->next)
12700 for (rr = m->ResourceRecords; rr; rr=rr->next) if (rr->AutoTarget) SetTargetToHostName(m, rr);
12701 for (rr = m->DuplicateRecords; rr; rr=rr->next) if (rr->AutoTarget) SetTargetToHostName(m, rr);
12759 for (intf = m->HostInterfaces; intf; intf = intf->next)
12771 for (rr = m->ResourceRecords; rr; rr=rr->next)
12804 while (p && p != set) p=p->next;
12817 while (p && p != set) p=p->next;
12887 p=&(*p)->next;
12890 set->next = mDNSNULL;
12952 for (q = m->Questions; q; q=q->next) // Scan our list of questions
12986 for (rr = m->ResourceRecords; rr; rr=rr->next)
13022 while (*p && *p != set) p=&(*p)->next;
13028 *p = (*p)->next;
13029 set->next = mDNSNULL;
13034 for (intf = m->HostInterfaces; intf; intf = intf->next)
13054 for (intf = m->HostInterfaces; intf; intf = intf->next)
13079 for (q = m->Questions; q; q=q->next)
13119 for (intf = m->HostInterfaces; intf; intf = intf->next)
13234 e = e->next;
13436 extra->next = mDNSNULL;
13443 while (*e) e = &(*e)->next;
13465 while (*e && *e != extra) e = &(*e)->next;
13476 *e = (*e)->next;
13516 extras = extras->next;
13573 e = e->next;
13630 for (r = m->ResourceRecords; r; r=r->next) if (mDNSSameOpaque16(id, r->updateid)) return mDNStrue;
13637 for (q = m->Questions; q; q=q->next) if (mDNSSameOpaque16(id, q->TargetQID)) return mDNStrue;
13715 for (rr = m->ResourceRecords; rr; rr=rr->next)
13759 for (rr = m->ResourceRecords; rr; rr=rr->next)
13820 for (rr = m->ResourceRecords; rr; rr=rr->next)
13862 for (rr = m->ResourceRecords; rr; rr=rr->next)
14046 for (rr = m->ResourceRecords; rr; rr=rr->next)
14052 for (r2 = m->ResourceRecords; r2; r2=r2->next)
14210 for (i=0; i<numrecords; i++) storage[i].next = &storage[i+1];
14211 storage[numrecords-1].next = m->rrcache_free;
14508 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next)
14537 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next)
14565 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next)
14590 for (qptr = q->next ; qptr; qptr = qptr->next)
14603 for (ptr = m->DNSServers; ptr; ptr = ptr->next)
14616 for (mr = m->McastResolvers; mr; mr = mr->next)
14621 for (ptr = m->DNSServers; ptr; ptr = ptr->next)
14631 for (mr = m->McastResolvers; mr; mr = mr->next)
14681 *mres = (*mres)->next;
14688 mres = &(*mres)->next;
14719 for (q = m->Questions; q; q=q->next)
14760 for (qptr = q->next ; qptr; qptr = qptr->next)
14787 for (qptr = q->next ; qptr; qptr = qptr->next)
14799 for (qptr = q->next ; qptr; qptr = qptr->next)
14908 *p = (*p)->next;
14915 p = &(*p)->next;
15010 m->CurrentRecord = rr->next;
15045 for (s = SearchList; s; s = s->next)
15049 s->AuthRecs = s->AuthRecs->next;
15101 for (rr = m->DuplicateRecords; rr; rr = rr->next)
15130 cg->members = cg->members->next;
15142 for (rr = m->ResourceRecords; rr; rr = rr->next)