Lines Matching refs:next

143             *p = tmp->next;
144 tmp->next = mDNSNULL;
148 p=&(*p)->next;
206 (*p)->next = mDNSNULL;
244 // the next best match server below
305 // We want to try the next server immediately. As the question may already have backed off, reset
329 // the next query will not happen until cache expiry. If it is a long lived question,
350 for (ptr = m->AuthInfoList; ptr; ptr = ptr->next)
377 *p = info->next; // Cut DomainAuthInfo from list *before* scanning our question list updating AuthInfo pointers
378 for (q = m->Questions; q; q=q->next)
393 p = &(*p)->next;
440 while (*p && (*p) != info) p=&(*p)->next;
453 info->next = mDNSNULL;
457 for (q = m->Questions; q; q=q->next)
672 for (n = m->NATTraversals; n; n=n->next)
732 for (n = m->NATTraversals; n; n=n->next)
829 for (n = &m->NATTraversals; *n; n=&(*n)->next)
846 traversal->next = mDNSNULL;
873 // or (in non-PCP environments) we won't know the address until the next external
894 while (*ptr && *ptr != traversal) ptr=&(*ptr)->next;
895 if (*ptr) *ptr = (*ptr)->next; // If we found it, cut this NATTraversalInfo struct from our list
906 m->CurrentNATTraversal = m->CurrentNATTraversal->next;
909 for (p = m->NATTraversals; p; p=p->next)
1162 for (q = m->Questions; q; q = q->next)
1176 // we are in polling state because of PCP/NAT-PMP disabled or DoubleNAT, next LLQNATCallback
1509 // If we get an error and our next scheduled query for this question is more than the max interval from now,
1510 // reset the next query to ensure we wait no longer the maximum interval from now before trying again.
1733 for (hi = m->Hostnames; hi; hi = hi->next)
2017 for (r = m->ResourceRecords; r; r=r->next)
2214 while (*list && *list != rr) list = &(*list)->next;
2217 *list = rr->next;
2218 rr->next = mDNSNULL;
2381 m->CurrentRecord = m->CurrentRecord->next;
2469 for (i = m->Hostnames; i; i = i->next)
2550 h = h->next;
2620 while (*ptr && !SameDomainName(fqdn, &(*ptr)->fqdn)) ptr = &(*ptr)->next;
2643 while (*ptr && !SameDomainName(fqdn, &(*ptr)->fqdn)) ptr = &(*ptr)->next;
2654 *ptr = (*ptr)->next; // unlink
2703 for (i = m->Hostnames; i; i = i->next)
2738 for (n = m->NATTraversals; n; n=n->next)
3091 for (rr = m->ResourceRecords; rr; rr = rr->next)
3181 // Look for records that needs to be sent in the next two seconds (MERGE_DELAY_TIME is set to 1 second).
3195 for (rr = m->ResourceRecords; rr; rr = rr->next)
3222 for (rr = m->ResourceRecords; rr; rr = rr->next)
3242 mDNSu8 *next = m->omsg.data;
3272 for (rr = startRR; rr; rr = rr->next)
3288 next = m->omsg.data;
3296 limit = next + spaceleft;
3313 next = putZone(&m->omsg, next, limit, rr->zone, mDNSOpaque16fromIntVal(rr->resrec.rrclass));
3314 if (!next)
3337 rr = rr->next;
3344 SendGroupRRMessage(m, anchorRR, next, AuthInfo);
3349 oldnext = next;
3350 LogInfo("SendGroupUpdates: Building a message with resource record %s, next %p, state %d, ttl %d", ARDisplayString(m, rr), next, rr->state, rr->resrec.rroriginalttl);
3351 if (!(next = BuildUpdateMessage(m, next, rr, limit)))
3360 if ((next - oldnext) > rrSize)
3361 LogMsg("SendGroupUpdates: ERROR!! Record size estimation is wrong for %s, Estimate %d, Actual %d, state %d", ARDisplayString(m, rr), rrSize, next - oldnext, rr->state);
3362 else { spaceleft += rrSize; spaceleft -= (next - oldnext); }
3381 SendGroupRRMessage(m, anchorRR, next, AuthInfo);
3401 nextRR = rr->next;
3435 rr->state = regState_NoTarget; // Wait for the next target change
3567 rr->state = regState_NoTarget; // Wait for the next target change
3641 for (n = m->NATTraversals; n; n=n->next)
3717 for (ptr = m->NATTraversals; ptr; ptr=ptr->next)
3762 // If seconds since the epoch is 0, use 1 so we'll check epoch validity next time
3847 for (ptr = m->NATTraversals; ptr; ptr=ptr->next)
3961 for (s = m->DNSServers; s; s = s->next)
3985 for (q = m->Questions; q; q=q->next)
4028 for (qptr = m->Questions; qptr; qptr = qptr->next)
4059 m->CurrentRecord = m->CurrentRecord->next;
4285 for (ptr = m->ResourceRecords; ptr; ptr = ptr->next) if (ptr == newRR) break;
4572 for (anchorRR = m->ResourceRecords; anchorRR; anchorRR = anchorRR->next)
4783 for (qptr = q->next ; qptr; qptr = qptr->next)
4836 if (!q->LocalSocket) err = mStatus_NoMemoryErr; // If failed to make socket (should be very rare), we'll try again next time
4922 for (qptr = q->next ; qptr; qptr = qptr->next)
4940 for (rr = cg->members; rr; rr=rr->next)
5010 m->CurrentNATTraversal = m->CurrentNATTraversal->next;
5029 if (cur->ExpiryTime) // If have active mapping then set next renewal time halfway to expiry
5113 for (rr = m->ResourceRecords; rr; rr = rr->next)
5173 for (d = m->DNSServers; d; d=d->next)
5203 m->CurrentQuestion = q->next;
5216 for (rr = m->ResourceRecords; rr; rr=rr->next)
5258 for (p = &SearchList; *p; p = &(*p)->next)
5266 *p = tmp->next;
5267 tmp->next = mDNSNULL;
5273 while (*p) p = &(*p)->next;
5283 (*p)->next = mDNSNULL;
5325 arElem->next = slElem->AuthRecs;
5336 *ptr = (*ptr)->next;
5343 ptr = &(*ptr)->next;
5354 for (n = m->NATTraversals; n; n=n->next)
5355 if (n->next == (NATTraversalInfo *)~0 || n->clientCallback == (NATTraversalClientCallback) ~0)
5359 for (d = m->DNSServers; d; d=d->next)
5360 if (d->next == (DNSServer *)~0 || d->teststate > DNSServer_Disabled)
5364 for (info = m->AuthInfoList; info; info = info->next)
5365 if (info->next == (DomainAuthInfo *)~0)
5369 for (hi = m->Hostnames; hi; hi = hi->next)
5370 if (hi->next == (HostnameInfo *)~0 || hi->StatusCallback == (mDNSRecordCallback*)~0)
5374 for (ptr = SearchList; ptr; ptr = ptr->next)
5375 if (ptr->next == (SearchListElem *)~0 || ptr->AuthRecs == (void*)~0)
5436 *arList = dereg->next;
5444 arList = &(*arList)->next;
5456 for (ptr = SearchList; ptr; ptr = ptr->next)
5467 for (ptr = SearchList; ptr; ptr = ptr->next)
5499 *p = ptr->next;
5531 arList = arList->next;
5662 p = &ptr->next;
5726 p = p->next;
5738 p = p->next;
5745 p = p->next;
5749 // Point to the next one in the list which we will look at next time.
5760 p = p->next;
5793 for (q = m->Questions; q; q = q->next)