Lines Matching defs:next

182     e->next = r->rrauth_free;
195 *cp = (*cp)->next; // Cut record from list
213 storage->next = mDNSNULL;
228 if ((*cp)->members || (*cp)==PreserveAG) cp=&(*cp)->next;
239 r->rrauth_free = e->next;
258 for (ag = r->rrauth_hash[slot]; ag; ag=ag->next)
274 ag->next = r->rrauth_hash[slot];
309 ag->rrauth_tail = &(rr->next); // Advance tail pointer
327 rp=&(*rp)->next;
333 *rp = (*rp)->next; // Cut record from list
344 for (cg = m->rrcache_hash[slot]; cg; cg=cg->next)
363 for (intf = m->HostInterfaces; intf; intf = intf->next)
384 for (intf = m->HostInterfaces; intf; intf = intf->next)
412 while (intf && intf->InterfaceID != InterfaceID) intf = intf->next;
425 for (intf = m->HostInterfaces; intf; intf = intf->next)
608 m->CurrentQuestion = q->next;
643 m->CurrentQuestion = q->next;
1074 rp=&(*rp)->next;
1080 rp=&(*rp)->next;
1105 rp=&(*rp)->next;
1124 rp=&(*rp)->next;
1224 while (*p && *p != rr) p=&(*p)->next;
1233 while (*d && *d != rr) d=&(*d)->next;
1259 rr->next = mDNSNULL;
1399 while (*p) p=&(*p)->next;
1420 for (r = m->ResourceRecords; r; r=r->next)
1435 // kDNSRecordTypeVerified state and call the client callback at the next appropriate time.
1541 while (*rp && *rp != rr) rp=&(*rp)->next;
1546 while (*p && *p != rr) p=&(*p)->next;
1556 for (r2 = m->DuplicateRecords; r2; r2=r2->next) if (RecordIsLocalDuplicate(r2, rr)) r2->ProbeCount = 0xFF;
1563 while (*d && !RecordIsLocalDuplicate(*d, rr)) d=&(*d)->next;
1569 *d = dup->next; // Cut replacement record from DuplicateRecords list
1572 dup->next = mDNSNULL;
1577 dup->next = rr->next; // And then...
1578 rr->next = dup; // ... splice it in right after the record we're about to delete
1606 while (*p && *p != rr) p=&(*p)->next;
1716 if (ag->NewLocalOnlyRecords == rr) ag->NewLocalOnlyRecords = rr->next;
1720 *p = rr->next; // Cut this record from the list
1721 if (m->NewLocalRecords == rr) m->NewLocalRecords = rr->next;
1725 if (m->CurrentRecord == rr) m->CurrentRecord = rr->next;
1726 rr->next = mDNSNULL;
1770 r2 = r2->next;
1823 for (rr2=m->ResourceRecords; rr2; rr2=rr2->next) // Scan list of resource records
1832 for (rr2=m->ResourceRecords; rr2; rr2=rr2->next) // Scan list of resource records
1865 for (rr = m->ResourceRecords; rr; rr=rr->next)
1939 for (rr = m->ResourceRecords; rr; rr=rr->next)
2014 m->CurrentRecord = rr->next;
2339 for (rr = m->ResourceRecords; rr; rr=rr->next)
2360 for (rr = m->ResourceRecords; rr; rr=rr->next)
2375 for (r2 = rr; r2; r2=r2->next)
2429 for (rr = m->ResourceRecords; rr; rr=rr->next)
2441 for (rr = m->ResourceRecords; rr; rr=rr->next)
2444 for (r2=m->ResourceRecords; r2; r2=r2->next) // Scan list of resource records
2469 for (rr = m->ResourceRecords; rr; rr=rr->next)
2474 for (r2 = m->ResourceRecords; r2; r2=r2->next)
2482 for (r2 = m->ResourceRecords; r2; r2=r2->next)
2490 for (rr = m->ResourceRecords; rr; rr=rr->next)
2539 for (rr = m->ResourceRecords; rr; rr=rr->next)
2600 if (newptr) // If succeeded in sending, advance to next interface
2609 // If sending on all interfaces, go to next interface; else we're finished now
2622 for (rr = m->ResourceRecords; rr; rr=rr->next)
2645 for (rr = m->ResourceRecords; rr; rr=rr->next)
2658 for (a = m->ResourceRecords; a; a=a->next)
2695 for (rr = m->ResourceRecords; rr; rr=rr->next)
2715 for (r2 = m->ResourceRecords; r2; r2=r2->next)
2736 for (r2 = rr->next; r2; r2=r2->next)
2798 else // Nothing more to send on this interface; go to next
2800 const NetworkInterfaceInfo *next = GetFirstActiveInterface(intf->next);
2802 const char *const msg = next ? "SendResponses: Nothing more on %p; moving to %p" : "SendResponses: Nothing more on %p";
2803 debugf(msg, intf, next);
2805 intf = next;
2820 m->CurrentRecord = rr->next;
2953 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // If we have a resource record in our cache,
2973 // then undo that last question and try again next time
2981 return(mDNSfalse); // Return false, so we'll try again in the next packet
2991 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // For every resource record in our cache,
3044 while (cr && !RRTypeIsAddressType(cr->resrec.rrtype)) cr=cr->next;
3055 for (cr = cg ? cg->members : mDNSNULL; cr; cr=cr->next)
3222 // If half-way to next scheduled query time, only accelerate if it will add less than 512 bytes to the packet
3230 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // If we have a resource record in our cache,
3330 // 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
3357 if (q == m->CurrentQuestion) m->CurrentQuestion = m->CurrentQuestion->next;
3362 m->CurrentQuestion = m->CurrentQuestion->next;
3371 // 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.
3373 for (q = m->Questions; q && q != m->NewQuestions; q=q->next)
3378 // If at least halfway to next query time, advance to next interval
3379 // If less than halfway to next query time, then
3406 debugf("SendQueries: %##s (%s) next interval %d seconds RequestUnicast = %d",
3444 // For all questions (not just the ones we're sending) check what the next scheduled event will be
3459 m->CurrentRecord = ar->next;
3503 for (r2 = m->DuplicateRecords; r2; r2=r2->next)
3533 m->CurrentRecord = ar->next;
3556 for (q = m->Questions; q && q != m->NewQuestions; q=q->next)
3607 for (ar = m->ResourceRecords; ar; ar=ar->next)
3654 for (ar = m->ResourceRecords; ar; ar=ar->next)
3665 for (q = m->Questions; q; q = q->next)
3739 else // Nothing more to send on this interface; go to next
3741 const NetworkInterfaceInfo *next = GetFirstActiveInterface(intf->next);
3743 const char *const msg = next ? "SendQueries: Nothing more on %p; moving to %p" : "SendQueries: Nothing more on %p";
3744 debugf(msg, intf, next);
3746 intf = next;
3753 for (ar = m->ResourceRecords; ar; ar=ar->next)
3783 for (q = m->Questions; q; q=q->next)
3788 for (x = m->NewQuestions; x; x=x->next) if (x == q) break; // Check if this question is a NewQuestion
3876 // to do it on the next ADD of a negative cache record. This ADD could be the result of a timeout, no DNS servers
4005 m->CurrentQuestion = q->next;
4020 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
4027 // It needs to schedule the timer for the next cache expiry (ScheduleNextCacheCheckTime),
4085 for (q = m->Questions; q && q != m->NewQuestions; q=q->next)
4094 // randomized over the next four seconds to reduce possible synchronization between machines.
4140 m->CurrentQuestion = q->next;
4172 m->CurrentQuestion = q->next;
4243 m->CurrentQuestion = q->next;
4254 e->next = m->rrcache_free;
4269 *cp = (*cp)->next; // Cut record from list
4278 *rp = (*rp)->next; // Cut record from list
4365 *rp = rr->next; // Cut it from the list
4400 if (m->timenow - rr->NextRequiredQuery < 0) // If not yet time for next query
4401 event = NextCacheCheckEvent(rr); // then just record when we want the next query
4417 rp = &rr->next;
4449 m->CurrentRecord = rr->next;
4505 lr = lr->next;
4544 m->NewQuestions = q->next;
4545 // Advance NewQuestions to the next *after* calling CheckCacheExpiration, because if we advance it first
4608 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
4617 continue; // Go to next one in loop
4685 m->NewLocalOnlyQuestions = q->next; // Advance NewLocalOnlyQuestions to the next (if any)
4708 m->CurrentRecord = rr->next;
4724 m->CurrentRecord = rr->next;
4784 rp=&(*rp)->next;
4788 *rp = (*rp)->next; // Cut record from list
4795 if ((*cp)->members || (*cp)==PreserveCG) cp=&(*cp)->next;
4806 m->rrcache_free = e->next;
4843 cg->next = m->rrcache_hash[slot];
4932 m->CurrentRecord = rr->next;
4956 m->CurrentRecord = rr->next;
4991 m->CurrentQuestion = q->next;
5002 rrNext = rrPtr->next;
5055 if ((*cp)->members) cp=&(*cp)->next;
5064 debugf("m->NextCacheCheck %4d checked, next in %d", numchecked, m->NextCacheCheck - m->timenow);
5117 for (ag = m->rrauth.rrauth_hash[slot]; ag; ag = ag->next)
5133 m->NewLocalRecords = m->NewLocalRecords->next;
5139 else if (!rr->next)
5156 while (*p && *p != rr) p=&(*p)->next;
5157 if (*p) *p = rr->next; // Cut this record from the list
5161 while (*p) p=&(*p)->next;
5167 tail->next = rr;
5170 rr->next = mDNSNULL;
5184 for (ag = m->rrauth.rrauth_hash[slot]; ag; ag = ag->next)
5189 ag->NewLocalOnlyRecords = ag->NewLocalOnlyRecords->next;
5211 // We send queries next, because there might be final-stage probes that complete their probing here, causing
5224 for (q = m->Questions; q && q != m->NewQuestions; q=q->next)
5244 // Clear RandomDelay values, ready to pick a new different value next time
5258 // performing mDNS API operations that change our next scheduled event time.
5284 for (q = m->Questions; q; q = q->next)
5300 for (rr = ag->members; rr; rr=rr->next)
5379 // *any* other question which could be the next one that we may process here. RestartQuestion
5380 // points to the "next" question which will be automatically advanced in mDNS_StopQuery_internal
5381 // if the "next" question is stopped while the CurrentQuestion is stopped
5391 m->RestartQuestion = q->next;
5400 DNSQuestion *refq = q->next;
5409 refq = refq->next;
5451 q->next = restart;
5463 restart = restart->next;
5464 q->next = mDNSNULL;
5483 m->CurrentQuestion = m->CurrentQuestion->next;
5489 for (q = m->Questions; q; q=q->next) // Scan our list of questions
5562 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
5658 m->CurrentRecord = rr->next;
5787 for (rr = m->ResourceRecords; rr; rr=rr->next)
5820 for (rr = m->ResourceRecords; rr; rr=rr->next)
5912 for (ar = m->ResourceRecords; ar && ar != rr; ar=ar->next)
5948 newRR->next = m->SPSRRSet;
5971 for (ar = m->ResourceRecords; ar; ar=ar->next)
6025 for (ar = m->ResourceRecords; ar; ar=ar->next)
6042 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6047 for (rr = m->ResourceRecords; rr; rr=rr->next)
6050 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6064 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6125 for (rr = m->ResourceRecords; rr; rr=rr->next)
6142 for (rr = m->ResourceRecords; rr; rr=rr->next)
6164 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6177 for (rr = m->ResourceRecords; rr; rr=rr->next)
6199 for (newIntf = FirstInterfaceForID(m, intfid); newIntf; newIntf = newIntf->next)
6208 for (intf = FirstInterfaceForID(m, regID[i]); intf; intf = intf->next)
6240 m->CurrentRecord = rr->next;
6267 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6505 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next)) intf->NextSPSAttempt = -1;
6578 for (rr = m->ResourceRecords; rr; rr=rr->next)
6613 // If we've not hit the sleep limit time, and it's not time for our next retry, we can skip these checks
6619 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6636 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6648 for (rr = m->ResourceRecords; rr; rr = rr->next)
6654 for (q = m->Questions; q; q = q->next)
6662 for (rr = m->ResourceRecords; rr; rr = rr->next)
6683 for (intf = GetFirstActiveInterface(m->HostInterfaces); intf; intf = GetFirstActiveInterface(intf->next))
6691 for (rr = m->ResourceRecords; rr; rr = rr->next)
6701 // we'll be put back to sleep forcibly without the chance to schedule the next maintenance wake.
6726 for (nat = m->NATTraversals; nat; nat=nat->next)
6742 for (ar = m->ResourceRecords; ar; ar = ar->next)
6796 break; // break out of the ResponseRecords loop, and go on to the next question
6869 for (r1 = m->ResourceRecords; r1; r1=r1->next)
6878 for (r1 = m->DuplicateRecords; r1; r1=r1->next)
6897 for (rr = m->ResourceRecords; rr; rr=rr->next)
7003 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
7048 m->CurrentRecord = rr->next;
7072 m->CurrentRecord = rr->next;
7111 m->CurrentRecord = rr->next;
7214 m->CurrentRecord = rr->next;
7297 for (cr = cg ? cg->members : mDNSNULL; cr; cr=cr->next)
7329 for (q = m->Questions; q; q=q->next)
7348 for (rr = m->ResourceRecords; rr; rr=rr->next) // Now build our list of potential answers
7380 for (rr=m->ResourceRecords; rr; rr=rr->next)
7584 // *** 10. Finally, clear our link chains ready for use next time
7732 for (s = m->DNSServers; s; s = s->next)
7746 for (q = m->Questions; q; q=q->next)
7769 for (q = m->Questions; q; q=q->next)
7840 for (q = m->Questions; q; q=q->next)
7894 for (cr = cg ? cg->members : mDNSNULL; cr; cr=cr->next)
7969 rr->next = mDNSNULL; // Clear 'next' pointer
7986 cg->rrcache_tail = &(rr->next); // Advance tail pointer
8028 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
8171 CacheRecord *rp, *next;
8173 for (rp = NSECRecords; rp; rp = next)
8175 next = rp->next;
8196 DNSQuestion *next, *q;
8205 for (q = qptr->next ; q && q != m->NewQuestions; q = next)
8207 next = q->next;
8242 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
8475 for (rrPtr = m->SPSRRSet; rrPtr; rrPtr = rrPtr->next)
8485 for (rrPtr = m->SPSRRSet; rrPtr; rrPtr = rrPtr->next)
8504 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
8538 for (q = m->Questions; q; q=q->next)
8621 for (q = m->Questions; q; q=q->next)
8696 NSEC3Records = &rr->next;
8847 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
8870 // req_DO to false here, the next retransmission for this question will turn off validation
8897 // generate negative cache entries (we want to query the next server)
8970 // In the case of polling LLQs, we assume the record remains valid until the next poll
9078 m->CurrentRecord = rr->next;
9269 nsecp = &rr->next;
9320 for (r2 = cg ? cg->members : mDNSNULL; r2; r2=r2->next)
9517 m->CurrentRecord = rr->next;
9618 // if we never filled any bytes and the next character is space (we have reached the end)
9843 for (ar = m->ResourceRecords; ar; ar=ar->next)
9880 for (ar = m->ResourceRecords; ar; ar=ar->next)
10154 m->CurrentRecord = rr->next;
10373 for (q = m->Questions; q && q != question; q=q->next) // Scan our list for another question
10409 for (q = m->Questions; q; q=q->next) // Scan our list of questions
10495 *p = tmp->next;
10496 tmp->next = mDNSNULL;
10499 p=&(*p)->next;
10514 (*p)->next = mDNSNULL;
10581 for (curr = m->McastResolvers; curr; curr = curr->next)
10699 for (curr = m->DNSServers; curr; curr = curr->next)
10776 for (curr = m->DNSServers; curr; curr = curr->next)
10913 for (q = m->Questions; q; q=q->next)
11000 for (intf = m->HostInterfaces; intf; intf = intf->next)
11023 for (rr = m->ResourceRecords; rr; rr = rr->next)
11071 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
11098 for (qptr = m->Questions; qptr; qptr=qptr->next)
11119 for (q = m->NewQuestions; q; q = q->next)
11144 for (rr = ag->members; rr; rr=rr->next)
11241 q->next = *restart;
11259 // *any* other question which could be the next one that we may process here. RestartQuestion
11260 // points to the "next" question which will be automatically advanced in mDNS_StopQuery_internal
11261 // if the "next" question is stopped while the CurrentQuestion is stopped
11269 m->RestartQuestion = q->next;
11286 restart = restart->next;
11287 q->next = mDNSNULL;
11305 m->RestartQuestion = q->next;
11318 restart = restart->next;
11319 q->next = mDNSNULL;
11424 question->next = mDNSNULL;
11692 q=&(*q)->next;
11779 while (*qp && *qp != question) qp=&(*qp)->next;
11780 if (*qp) *qp = (*qp)->next;
11801 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
11808 for (q = m->Questions; q; q=q->next) // Scan our list of questions
11825 m->CurrentQuestion = question->next;
11832 m->NewQuestions = question->next;
11835 if (m->NewLocalOnlyQuestions == question) m->NewLocalOnlyQuestions = question->next;
11841 m->RestartQuestion = question->next;
11848 m->ValidationQuestion = question->next;
11851 // Take care not to trash question->next until *after* we've updated m->CurrentQuestion and m->NewQuestions
11852 question->next = mDNSNULL;
11857 // Must not do this until last, because there's a good chance the GetZoneData question is the next in the list,
11858 // so if we delete it earlier in this routine, we could find that our "question->next" pointer above is already
11867 for (q = m->Questions; q; q=q->next)
11949 for (qq = m->NewQuestions; qq; qq=qq->next) if (qq == question) break;
11958 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next)
12054 for (intf = m->HostInterfaces; intf; intf = intf->next)
12475 for (intf = m->HostInterfaces; intf; intf = intf->next)
12583 for (intf = m->HostInterfaces; intf; intf = intf->next)
12605 for (intf = m->HostInterfaces; intf; intf = intf->next)
12619 for (intf = m->HostInterfaces; intf; intf = intf->next)
12650 for (intf = m->HostInterfaces; intf; intf = intf->next)
12654 for (intf = m->HostInterfaces; intf; intf = intf->next)
12659 for (rr = m->ResourceRecords; rr; rr=rr->next) if (rr->AutoTarget) SetTargetToHostName(m, rr);
12660 for (rr = m->DuplicateRecords; rr; rr=rr->next) if (rr->AutoTarget) SetTargetToHostName(m, rr);
12718 for (intf = m->HostInterfaces; intf; intf = intf->next)
12730 for (rr = m->ResourceRecords; rr; rr=rr->next)
12763 while (p && p != set) p=p->next;
12776 while (p && p != set) p=p->next;
12846 p=&(*p)->next;
12849 set->next = mDNSNULL;
12911 for (q = m->Questions; q; q=q->next) // Scan our list of questions
12945 for (rr = m->ResourceRecords; rr; rr=rr->next)
12978 while (*p && *p != set) p=&(*p)->next;
12984 *p = (*p)->next;
12985 set->next = mDNSNULL;
12991 for (intf = m->HostInterfaces; intf; intf = intf->next)
13011 for (intf = m->HostInterfaces; intf; intf = intf->next)
13036 for (q = m->Questions; q; q=q->next)
13182 e = e->next;
13384 extra->next = mDNSNULL;
13391 while (*e) e = &(*e)->next;
13415 while (*e && *e != extra) e = &(*e)->next;
13426 *e = (*e)->next;
13466 extras = extras->next;
13523 e = e->next;
13580 for (r = m->ResourceRecords; r; r=r->next) if (mDNSSameOpaque16(id, r->updateid)) return mDNStrue;
13587 for (q = m->Questions; q; q=q->next) if (mDNSSameOpaque16(id, q->TargetQID)) return mDNStrue;
13665 for (rr = m->ResourceRecords; rr; rr=rr->next)
13709 for (rr = m->ResourceRecords; rr; rr=rr->next)
13770 for (rr = m->ResourceRecords; rr; rr=rr->next)
13812 for (rr = m->ResourceRecords; rr; rr=rr->next)
13996 for (rr = m->ResourceRecords; rr; rr=rr->next)
14002 for (r2 = m->ResourceRecords; r2; r2=r2->next)
14158 for (i=0; i<numrecords; i++) storage[i].next = &storage[i+1];
14159 storage[numrecords-1].next = m->rrcache_free;
14448 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next)
14477 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next)
14505 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next)
14530 for (qptr = q->next ; qptr; qptr = qptr->next)
14543 for (ptr = m->DNSServers; ptr; ptr = ptr->next)
14552 for (mr = m->McastResolvers; mr; mr = mr->next)
14557 for (ptr = m->DNSServers; ptr; ptr = ptr->next)
14563 for (mr = m->McastResolvers; mr; mr = mr->next)
14613 *mres = (*mres)->next;
14620 mres = &(*mres)->next;
14651 for (q = m->Questions; q; q=q->next)
14691 for (qptr = q->next ; qptr; qptr = qptr->next)
14718 for (qptr = q->next ; qptr; qptr = qptr->next)
14729 for (qptr = q->next ; qptr; qptr = qptr->next)
14838 *p = (*p)->next;
14845 p = &(*p)->next;
14940 m->CurrentRecord = rr->next;
14976 for (s = SearchList; s; s = s->next)
14980 s->AuthRecs = s->AuthRecs->next;
14986 for (intf = m->HostInterfaces; intf; intf = intf->next)
15034 for (rr = m->DuplicateRecords; rr; rr = rr->next)
15062 cg->members = cg->members->next;
15074 for (rr = m->ResourceRecords; rr; rr = rr->next)