Lines Matching refs:mDNSNULL
177 (*cp)->name = mDNSNULL; in ReleaseAuthGroup()
184 AuthEntity *e = mDNSNULL; in GetAuthEntity()
186 if (r->rrauth_lock) { LogMsg("GetFreeCacheRR ERROR! Cache already locked!"); return(mDNSNULL); } in GetAuthEntity()
196 storage->next = mDNSNULL; in GetAuthEntity()
255 AuthGroup *ag = (AuthGroup*)GetAuthEntity(r, mDNSNULL); in GetAuthGroup()
256 …!ag) { LogMsg("GetAuthGroup: Failed to allocate memory for %##s", rr->name->c); return(mDNSNULL); } in GetAuthGroup()
259 ag->members = mDNSNULL; in GetAuthGroup()
262 ag->NewLocalOnlyRecords = mDNSNULL; in GetAuthGroup()
268 return(mDNSNULL); in GetAuthGroup()
303 …"RemoveAuthRecord: ERROR!! AuthGroup not found for %s", ARDisplayString(m, rr)); return mDNSNULL; } in RemoveAuthRecord()
375 return(intf ? intf->ifname : mDNSNULL); in InterfaceNameForID()
386 …ecord(m, &m->rec.r, &q->qname, q->qnamehash, q->qtype, q->qclass, 60, mDNSInterface_Any, mDNSNULL); in GenerateNegativeResponse()
510 m->CurrentQuestion = mDNSNULL; in AnswerInterfaceAnyQuestionsWithLocalAuthRecord()
546 m->CurrentQuestion = mDNSNULL; in AnswerAllLocalQuestionsWithLocalAuthRecord()
563 …((RR)->Additional1 == mDNSNULL || ((RR)->Additional1->resrec.RecordType & kDNSRecordTypeActiveMask…
564 …((RR)->Additional2 == mDNSNULL || ((RR)->Additional2->resrec.RecordType & kDNSRecordTypeActiveMask…
565 …((RR)->DependentOn == mDNSNULL || ((RR)->DependentOn->resrec.RecordType & kDNSRecordTypeActiveMask…
806 return mDNSNULL; in SetUnicastTargetToHostName()
828 else { target->c[0] = 0; SetNewRData(&rr->resrec, mDNSNULL, 0); return; } in SetTargetToHostName()
837 SetNewRData(&rr->resrec, mDNSNULL, 0); // Update rdlength, rdestimate, rdatahash in SetTargetToHostName()
878 AuthRecord *srvRR = mDNSNULL; in ActivateUnicastRegistration()
932 rr->NATinfo.clientContext = mDNSNULL; in ActivateUnicastRegistration()
934 if (rr->nta) { CancelGetZoneData(m, rr->nta); rr->nta = mDNSNULL; } in ActivateUnicastRegistration()
935 if (rr->tcp) { DisposeTCPConn(rr->tcp); rr->tcp = mDNSNULL; } in ActivateUnicastRegistration()
959 if (!a) return mDNSNULL; in CheckAuthIdenticalRecord()
975 return (mDNSNULL); in CheckAuthIdenticalRecord()
1009 if (!a) return mDNSNULL; in CheckAuthSameRecord()
1020 return (mDNSNULL); in CheckAuthSameRecord()
1116 rr->next = mDNSNULL; in mDNS_Register_internal()
1142 rr->SendNSECNow = mDNSNULL; in mDNS_Register_internal()
1143 rr->ImmedAnswer = mDNSNULL; in mDNS_Register_internal()
1144 rr->ImmedAdditional = mDNSNULL; in mDNS_Register_internal()
1145 rr->SendRNow = mDNSNULL; in mDNS_Register_internal()
1148 rr->NextResponse = mDNSNULL; in mDNS_Register_internal()
1149 rr->NR_AnswerTo = mDNSNULL; in mDNS_Register_internal()
1150 rr->NR_AdditionalTo = mDNSNULL; in mDNS_Register_internal()
1155 rr->NewRData = mDNSNULL; in mDNS_Register_internal()
1157 rr->UpdateCallback = mDNSNULL; in mDNS_Register_internal()
1172 rr->nta = mDNSNULL; in mDNS_Register_internal()
1173 rr->tcp = mDNSNULL; in mDNS_Register_internal()
1352 rr->NewRData = mDNSNULL; // Clear the NewRData pointer ... in CompleteRDataUpdate()
1408 dup->next = mDNSNULL; in mDNS_Deregister_internal()
1475 if (rr->tcp) { DisposeTCPConn(rr->tcp); rr->tcp = mDNSNULL; } in mDNS_Deregister_internal()
1500 rr->NATinfo.clientContext = mDNSNULL; in mDNS_Deregister_internal()
1502 if (rr->nta) { CancelGetZoneData(m, rr->nta); rr->nta = mDNSNULL; } in mDNS_Deregister_internal()
1503 if (rr->tcp) { DisposeTCPConn(rr->tcp); rr->tcp = mDNSNULL; } in mDNS_Deregister_internal()
1548 rr->next = mDNSNULL; in mDNS_Deregister_internal()
1607 if (rr->NextResponse == mDNSNULL && *nrpp != &rr->NextResponse) in AddRecordToResponseList()
1664 AuthRecord *ResponseRecords = mDNSNULL; in SendDelayedUnicastResponse()
1682 rr->ImmedAnswer = mDNSNULL; // Clear the state fields in SendDelayedUnicastResponse()
1694 if (rr->NextResponse == mDNSNULL && nrp != &rr->NextResponse) // rr->NR_AnswerTo in SendDelayedUnicastResponse()
1719 rr->NextResponse = mDNSNULL; in SendDelayedUnicastResponse()
1720 rr->NR_AnswerTo = mDNSNULL; in SendDelayedUnicastResponse()
1721 rr->NR_AdditionalTo = mDNSNULL; in SendDelayedUnicastResponse()
1738 rr->NextResponse = mDNSNULL; in SendDelayedUnicastResponse()
1739 rr->NR_AnswerTo = mDNSNULL; in SendDelayedUnicastResponse()
1740 rr->NR_AdditionalTo = mDNSNULL; in SendDelayedUnicastResponse()
1744 …DNSMessage(m, &m->omsg, responseptr, InterfaceID, mDNSNULL, dest, MulticastDNSPort, mDNSNULL, mDNS… in SendDelayedUnicastResponse()
2122 …SendNDP(m, NDP_Adv, NDP_Override, rr, &rr->AddressProxy.ip.v6, mDNSNULL, &AllHosts_v6, &AllHosts_v… in SendResponses()
2203 …rr->SendRNow = !intf ? mDNSNULL : (rr->resrec.InterfaceID) ? rr->resrec.InterfaceID : intf->Interf… in SendResponses()
2204 rr->ImmedAdditional = mDNSNULL; // No need to send as additional if sending as answer in SendResponses()
2220 rr->ImmedAdditional = mDNSNULL; // No need to send as additional too in SendResponses()
2264 newptr = mDNSNULL; in SendResponses()
2303 rr->SendRNow = mDNSNULL; in SendResponses()
2329 rr->ImmedAdditional = mDNSNULL; // then cancel its ImmedAdditional field in SendResponses()
2344 rr->ImmedAdditional = mDNSNULL; in SendResponses()
2364 …Record(&nsec, mDNSNULL, mDNSInterface_Any, kDNSType_NSEC, rr->resrec.rroriginalttl, kDNSRecordType… in SendResponses()
2385 rr->SendNSECNow = mDNSNULL; in SendResponses()
2390 r2->SendNSECNow = mDNSNULL; in SendResponses()
2401 …ourceRecord(&opt, mDNSNULL, mDNSInterface_Any, kDNSType_OPT, kStandardTTL, kDNSRecordTypeKnownUniq… in SendResponses()
2422 … &m->omsg, responseptr, intf->InterfaceID, mDNSNULL, &AllDNSLinkGroup_v4, MulticastDNSPort, mDNSNU… in SendResponses()
2423 … &m->omsg, responseptr, intf->InterfaceID, mDNSNULL, &AllDNSLinkGroup_v6, MulticastDNSPort, mDNSNU… in SendResponses()
2456 rr->SendRNow = mDNSNULL; in SendResponses()
2470 rr->ImmedAnswer = mDNSNULL; in SendResponses()
2493 ((RR)->CRActiveQuestion == mDNSNULL ) ? (60 * mDNSPlatformOneSecond) : \
2584 …for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // If we have a resource record in our … in BuildQuestion()
2587 …rr->NextInKAList == mDNSNULL && ka != &rr->NextInKAList && // which is not already in the known an… in BuildQuestion()
2611 while (*ka) { CacheRecord *c = *ka; *ka = mDNSNULL; ka = &c->NextInKAList; } in BuildQuestion()
2622 …for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // For every resource record in our cac… in BuildQuestion()
2624 …rr->NextInKAList == mDNSNULL && ka != &rr->NextInKAList && // which is not in the known answer list in BuildQuestion()
2673 const CacheRecord *cr = cg ? cg->members : mDNSNULL; in CacheHasAddressTypeForName()
2681 const CacheRecord *cr, *bestcr = mDNSNULL; in FindSPSInCache1()
2683 for (cr = cg ? cg->members : mDNSNULL; cr; cr=cr->next) in FindSPSInCache1()
2698 sps[0] = FindSPSInCache1(m, q, mDNSNULL, mDNSNULL); in FindSPSInCache()
2699 sps[1] = !sps[0] ? mDNSNULL : FindSPSInCache1(m, q, sps[0], mDNSNULL); in FindSPSInCache()
2700 sps[2] = !sps[1] ? mDNSNULL : FindSPSInCache1(m, q, sps[0], sps[1]); in FindSPSInCache()
2707 for (i=0; i<DupSuppressInfoSize; i++) if (ds[i].Time - time < 0) ds[i].InterfaceID = mDNSNULL; in ExpireDupSuppressInfo()
2713 …; i++) if (ds[i].InterfaceID == InterfaceID && ds[i].Time - time < 0) ds[i].InterfaceID = mDNSNULL; in ExpireDupSuppressInfoOnInterface()
2821 …for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) // If we have a resource record in our … in AccelerateThisQuery()
2860 CacheRecord *KnownAnswerList = mDNSNULL; in SendQueries()
2877 else if (q->SendQNow == mDNSNULL) q->SendQNow = cr->resrec.InterfaceID; in SendQueries()
2902 … &m->omsg, qptr, mDNSInterface_Any, q->LocalSocket, &q->Target, q->TargetPort, mDNSNULL, mDNSNULL); in SendQueries()
2910 q->SendQNow = mDNSNULL; in SendQueries()
2930 m->CurrentQuestion = mDNSNULL; in SendQueries()
2975 q->SendQNow = !intf ? mDNSNULL : (q->InterfaceID) ? q->InterfaceID : intf->InterfaceID; in SendQueries()
3025 SendNDP(m, NDP_Sol, 0, ar, &zerov6Addr, mDNSNULL, &ar->AddressProxy.ip.v6, &ar->WakeUp.IMAC); in SendQueries()
3028 …ar->SendRNow = (!intf || ar->WakeUp.HMAC.l[0]) ? mDNSNULL : ar->resrec.InterfaceID ? ar->resrec.… in SendQueries()
3103 q->SendQNow = (q->InterfaceID || !q->SendOnAll) ? mDNSNULL : GetNextActiveInterfaceID(intf); in SendQueries()
3127 ar->SendRNow = (ar->resrec.InterfaceID) ? mDNSNULL : GetNextActiveInterfaceID(intf); in SendQueries()
3148 ka->NextInKAList = mDNSNULL; in SendQueries()
3175 …ourceRecord(&opt, mDNSNULL, mDNSInterface_Any, kDNSType_OPT, kStandardTTL, kDNSRecordTypeKnownUniq… in SendQueries()
3199 …(m, &m->omsg, queryptr, intf->InterfaceID, mDNSNULL, &AllDNSLinkGroup_v4, MulticastDNSPort, mDNSNU… in SendQueries()
3200 …(m, &m->omsg, queryptr, intf->InterfaceID, mDNSNULL, &AllDNSLinkGroup_v6, MulticastDNSPort, mDNSNU… in SendQueries()
3226 ar->SendRNow = mDNSNULL; in SendQueries()
3239 cr->CRActiveQuestion->SendQNow = mDNSNULL; in SendQueries()
3252 q->SendQNow = mDNSNULL; in SendQueries()
3437 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in AnswerQuestionsForDNSServerChanges()
3465 m->CurrentQuestion = mDNSNULL; in AnswerQuestionsForDNSServerChanges()
3483 m->CurrentQuestion = mDNSNULL; in CacheRecordDeferredAdd()
3493 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in CheckForSoonToExpireRecords()
3540 &rr->resrec.rDNSServer->addr : mDNSNULL, mDNSVal16(rr->resrec.rDNSServer ? in CacheRecordAdd()
3571 m->CurrentQuestion = mDNSNULL; in CacheRecordAdd()
3603 m->CurrentQuestion = mDNSNULL; in NoCacheAnswer()
3634 q->FlappingInterface1 = mDNSNULL; in CacheRecordRmv()
3635 q->FlappingInterface2 = mDNSNULL; in CacheRecordRmv()
3643 q, q->qname.c, DNSTypeName(q->qtype), q->qDNSServer ? &q->qDNSServer->addr : mDNSNULL, in CacheRecordRmv()
3650 q, q->qname.c, DNSTypeName(q->qtype), q->qDNSServer ? &q->qDNSServer->addr : mDNSNULL, in CacheRecordRmv()
3672 m->CurrentQuestion = mDNSNULL; in CacheRecordRmv()
3695 (*cp)->name = mDNSNULL; in ReleaseCacheGroup()
3704 r->resrec.rdata = mDNSNULL; in ReleaseCacheRecord()
3866 m->CurrentRecord = mDNSNULL; in AnswerNewQuestion()
3904 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in AnswerNewQuestion()
3970 m->CurrentQuestion = mDNSNULL; in AnswerNewQuestion()
4029 m->CurrentQuestion = mDNSNULL; in AnswerNewLocalOnlyQuestion()
4030 m->CurrentRecord = mDNSNULL; in AnswerNewLocalOnlyQuestion()
4035 CacheEntity *e = mDNSNULL; in GetCacheEntity()
4037 if (m->lock_rrcache) { LogMsg("GetFreeCacheRR ERROR! Cache already locked!"); return(mDNSNULL); } in GetCacheEntity()
4128 else { ReleaseCacheEntity(m, (CacheEntity*)r); r = mDNSNULL; } in GetCacheRecord()
4137 CacheGroup *cg = (CacheGroup*)GetCacheEntity(m, mDNSNULL); in GetCacheGroup()
4138 …cg) { LogMsg("GetCacheGroup: Failed to allocate memory for %##s", rr->name->c); return(mDNSNULL); } in GetCacheGroup()
4141 cg->members = mDNSNULL; in GetCacheGroup()
4151 return(mDNSNULL); in GetCacheGroup()
4286 m->CurrentQuestion = mDNSNULL; in TimeoutQuestions()
4350 SetSPSProxyListChanged(mDNSNULL); // Perform any deferred BPF reconfiguration now in mDNS_Execute()
4394 head = tail = mDNSNULL; in mDNS_Execute()
4410 if (head != mDNSNULL || m->NewLocalRecords != mDNSNULL) in mDNS_Execute()
4435 rr->next = mDNSNULL; in mDNS_Execute()
4609 if (question->nta) { CancelGetZoneData(m, question->nta); question->nta = mDNSNULL; } in ActivateUnicastQuery()
4615 if (question->tcp) { DisposeTCPConn(question->tcp); question->tcp = mDNSNULL; } in ActivateUnicastQuery()
4632 DNSQuestion *restart = mDNSNULL; in mDNSCoreRestartAddressQueries()
4713 q->qnameOrig = mDNSNULL; in mDNSCoreRestartAddressQueries()
4730 q->next = mDNSNULL; in mDNSCoreRestartAddressQueries()
4809 if (FindSPSInCache1(m, &intf->NetWakeBrowse, mDNSNULL, mDNSNULL) == mDNSNULL) in mDNS_UpdateAllowSleep()
4873 rr->SendRNow = mDNSNULL; in SendSPSRegistrationForOwner()
4887 …ourceRecord(&opt, mDNSNULL, mDNSInterface_Any, kDNSType_OPT, kStandardTTL, kDNSRecordTypeKnownUniq… in SendSPSRegistrationForOwner()
4913 …essage(m, &m->omsg, p, intf->InterfaceID, mDNSNULL, &intf->SPSAddr[sps], intf->SPSPort[sps], mDNSN… in SendSPSRegistrationForOwner()
5066 const CacheRecord *sps[3] = { mDNSNULL }; in BeginSleepProcessing()
5237 rr->SendNSECNow = mDNSNULL; in mDNSCoreMachineSleep()
5440 if (!ptr) return(mDNSNULL); in GenerateUnicastResponse()
5447 …ponseptr) { debugf("GenerateUnicastResponse: Ran out of space for questions!"); return(mDNSNULL); } in GenerateUnicastResponse()
5453 …mQuestions == 0) { LogMsg("GenerateUnicastResponse: ERROR! Why no questions?"); return(mDNSNULL); } in GenerateUnicastResponse()
5495 ourend = putRData(mDNSNULL, ourdata, ourdata + sizeof(ourdata), &our->resrec); in CompareRData()
5496 pktend = putRData(mDNSNULL, pktdata, pktdata + sizeof(pktdata), &pkt->resrec); in CompareRData()
5557 return(mDNSNULL); in FindRRSet()
5655 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in FindIdenticalRecordInCache()
5735 AuthRecord *ResponseRecords = mDNSNULL; in ProcessQuery()
5737 CacheRecord *ExpectedAnswers = mDNSNULL; // Records in our cache we expect to see updated in ProcessQuery()
5739 …DNSQuestion *DupQuestions = mDNSNULL; // Our questions that are identical to questions in… in ProcessQuery()
5744 mDNSu8 *responseptr = mDNSNULL; in ProcessQuery()
5779 AuthRecord *NSECAnswer = mDNSNULL; in ProcessQuery()
5880 for (cr = cg ? cg->members : mDNSNULL; cr; cr=cr->next) in ProcessQuery()
5909 if (q->NextInDQList == mDNSNULL && dqp != &q->NextInDQList) in ProcessQuery()
5922 AddRecordToResponseList(&nrp, rr, mDNSNULL); // ... add it to the list in ProcessQuery()
5943 { rr->NR_AnswerTo = mDNSNULL; rr->NR_AdditionalTo = mDNSNULL; } in ProcessQuery()
5961 rr->ImmedAnswer = mDNSNULL; in ProcessQuery()
5989 { *eap = cr->NextInKAList; cr->NextInKAList = mDNSNULL; } in ProcessQuery()
6001 { *dqp = q->NextInDQList; q->NextInDQList = mDNSNULL; } in ProcessQuery()
6014 { rr->NR_AnswerTo = mDNSNULL; rr->NR_AdditionalTo = mDNSNULL; } in ProcessQuery()
6131 rr->NextResponse = mDNSNULL; in ProcessQuery()
6132 rr->NR_AnswerTo = mDNSNULL; in ProcessQuery()
6133 rr->NR_AdditionalTo = mDNSNULL; in ProcessQuery()
6140 cr->NextInKAList = mDNSNULL; in ProcessQuery()
6207 q->NextInDQList = mDNSNULL; in ProcessQuery()
6220 mDNSu8 *responseend = mDNSNULL; in mDNSCoreReceiveQuery()
6254 …endDNSMessage(m, &m->omsg, responseend, InterfaceID, mDNSNULL, srcaddr, srcport, mDNSNULL, mDNSNUL… in mDNSCoreReceiveQuery()
6289 return(mDNSNULL); in ExpectingUnicastResponseForQuestion()
6327 return(mDNSNULL); in ExpectingUnicastResponseForRecord()
6337 return(mDNSNULL); in ExpectingUnicastResponseForRecord()
6358 CacheRecord *rr = mDNSNULL; in CreateNewCacheEntry()
6385 rr->next = mDNSNULL; // Clear 'next' pointer in CreateNewCacheEntry()
6412 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in GrantCacheExtensions()
6477 DNSQuestion *llqMatch = mDNSNULL; in mDNSCoreReceiveResponse()
6493 DNSServer *uDNSServer = mDNSNULL; in mDNSCoreReceiveResponse()
6543 DNSQuestion q, *qptr = mDNSNULL; in mDNSCoreReceiveResponse()
6552 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in mDNSCoreReceiveResponse()
6644 if (llqMatch != mDNSNULL) m->rec.r.resrec.rDNSServer = uDNSServer = llqMatch->qDNSServer; in mDNSCoreReceiveResponse()
6664 if (q != mDNSNULL) in mDNSCoreReceiveResponse()
6710 …if (rr->ImmedAnswer == InterfaceID) { rr->ImmedAnswer = mDNSNULL; rr->ImmedUnicast = mDNSfals… in mDNSCoreReceiveResponse()
6714 …if (rr->ImmedAnswer == mDNSNULL) { rr->ImmedAnswer = InterfaceID; m->NextScheduledRe… in mDNSCoreReceiveResponse()
6818 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in mDNSCoreReceiveResponse()
6831 if (rr->NextInCFList == mDNSNULL && cfp != &rr->NextInCFList && LLQType != uDNS_LLQ_Events) in mDNSCoreReceiveResponse()
6949 r1->NextInCFList = mDNSNULL; in mDNSCoreReceiveResponse()
6964 for (r2 = cg ? cg->members : mDNSNULL; r2; r2=r2->next) in mDNSCoreReceiveResponse()
7052 DNSQuestion *qptr = mDNSNULL; in mDNSCoreReceiveResponse()
7056 CacheRecord *rr, *neg = mDNSNULL; in mDNSCoreReceiveResponse()
7059 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in mDNSCoreReceiveResponse()
7086 m->CurrentQuestion = mDNSNULL; in mDNSCoreReceiveResponse()
7110 if (response->h.numAuthorities && (ptr = LocateAuthorities(response, end)) != mDNSNULL) in mDNSCoreReceiveResponse()
7324 …mDNS_SetupResourceRecord(ar, mDNSNULL, InterfaceID, m->rec.r.resrec.rrtype, m->rec.r.resrec.rrorig… in mDNSCoreReceiveUpdate()
7367 …ourceRecord(&opt, mDNSNULL, mDNSInterface_Any, kDNSType_OPT, kStandardTTL, kDNSRecordTypeKnownUniq… in mDNSCoreReceiveUpdate()
7377 …DNSSendDNSMessage(m, &m->omsg, p, InterfaceID, m->SPSSocket, srcaddr, srcport, mDNSNULL, mDNSNULL); in mDNSCoreReceiveUpdate()
7459 cr->NextInKAList = mDNSNULL; in MakeNegativeCacheRecord()
7464 cr->CRActiveQuestion = mDNSNULL; in MakeNegativeCacheRecord()
7473 cr->NextInCFList = mDNSNULL; in MakeNegativeCacheRecord()
7487 mDNSu8 *ptr = mDNSNULL; in mDNSCoreReceive()
7489 if (TLS) dstaddr = mDNSNULL; in mDNSCoreReceive()
7626 return(mDNSNULL); in FindDuplicateQuestion()
7633 DNSQuestion *first = mDNSNULL; in UpdateQuestionDuplicates()
7681 question->LocalSocket = mDNSNULL; in UpdateQuestionDuplicates()
7682 …question->nta = mDNSNULL; // If we've got a GetZoneData in progress, transfer it to the new… in UpdateQuestionDuplicates()
7711 McastResolver *tmp = mDNSNULL; in mDNS_AddMcastResolver()
7728 tmp->next = mDNSNULL; in mDNS_AddMcastResolver()
7746 (*p)->next = mDNSNULL; in mDNS_AddMcastResolver()
7809 McastResolver *curmatch = mDNSNULL; in GetTimeoutForMcastQuestion()
7833 DNSServer *curmatch = mDNSNULL; in SetValidDNSServers()
7894 DNSServer *curmatch = mDNSNULL; in GetBestServer()
7968 DNSServer *curmatch = mDNSNULL; in GetServerForName()
7969 char *ifname = mDNSNULL; // for logging purposes only in GetServerForName()
7973 InterfaceID = mDNSNULL; in GetServerForName()
7980 curmatch = GetBestServer(m, name, InterfaceID, allValid, mDNSNULL, mDNStrue); in GetServerForName()
7982 if (curmatch != mDNSNULL) in GetServerForName()
7995 DNSServer *curmatch = mDNSNULL; in GetServerForQuestion()
7996 char *ifname = mDNSNULL; // for logging purposes only in GetServerForQuestion()
8002 InterfaceID = mDNSNULL; in GetServerForQuestion()
8012 if (curmatch != mDNSNULL) in GetServerForQuestion()
8103 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in CacheRecordRmvEventsForCurrentQuestion()
8190 if (m->CurrentQuestion != q) { m->CurrentQuestion = mDNSNULL; return mDNSfalse; } in LocalRecordRmvEventsForQuestion()
8193 m->CurrentQuestion = mDNSNULL; in LocalRecordRmvEventsForQuestion()
8211 if (m->CurrentQuestion != q) { m->CurrentQuestion = mDNSNULL; return mDNSfalse; } in CacheRecordRmvEventsForQuestion()
8212 m->CurrentQuestion = mDNSNULL; in CacheRecordRmvEventsForQuestion()
8222 DNSQuestion *restart = mDNSNULL; in CheckSuppressUnusableQuestions()
8307 q->next = mDNSNULL; in CheckSuppressUnusableQuestions()
8373 question->next = mDNSNULL; in mDNS_StartQuery_internal()
8385 question->FlappingInterface1 = mDNSNULL; in mDNS_StartQuery_internal()
8386 question->FlappingInterface2 = mDNSNULL; in mDNS_StartQuery_internal()
8394 question->NextInDQList = mDNSNULL; in mDNS_StartQuery_internal()
8395 question->SendQNow = mDNSNULL; in mDNS_StartQuery_internal()
8405 question->LocalSocket = mDNSNULL; in mDNS_StartQuery_internal()
8407 question->qDNSServer = mDNSNULL; in mDNS_StartQuery_internal()
8409 question->nta = mDNSNULL; in mDNS_StartQuery_internal()
8412 question->tcp = mDNSNULL; in mDNS_StartQuery_internal()
8435 question->DupSuppress[i].InterfaceID = mDNSNULL; in mDNS_StartQuery_internal()
8480 question->qDNSServer ? &question->qDNSServer->addr : mDNSNULL, in mDNS_StartQuery_internal()
8488 question->qDNSServer ? &question->qDNSServer->addr : mDNSNULL, in mDNS_StartQuery_internal()
8571 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in mDNS_StopQuery_internal()
8615 question->next = mDNSNULL; in mDNS_StopQuery_internal()
8624 if (question->tcp) { DisposeTCPConn(question->tcp); question->tcp = mDNSNULL; } in mDNS_StopQuery_internal()
8625 …on->LocalSocket) { mDNSPlatformUDPClose(question->LocalSocket); question->LocalSocket = mDNSNULL; } in mDNS_StopQuery_internal()
8640 m->LLQNAT.clientContext = mDNSNULL; // Means LLQ NAT Traversal not running in mDNS_StopQuery_internal()
8655 question->tcp->question = mDNSNULL; in mDNS_StopQuery_internal()
8656 question->tcp = mDNSNULL; in mDNS_StopQuery_internal()
8664 if (question->nta) { CancelGetZoneData(m, question->nta); question->nta = mDNSNULL; } in mDNS_StopQuery_internal()
8707 for (rr = cg ? cg->members : mDNSNULL; rr; rr=rr->next) in mDNS_StopQueryWithRemoves()
8760 question->qnameOrig = mDNSNULL; in mDNS_StartBrowse_internal()
8763 if (!ConstructServiceName(&question->qname, mDNSNULL, srv, domain)) return(mStatus_BadParamErr); in mDNS_StartBrowse_internal()
8939 query->qSRV.qnameOrig = mDNSNULL; in mDNS_StartResolveService()
8959 query->qTXT.qnameOrig = mDNSNULL; in mDNS_StartResolveService()
8979 query->qAv4.qnameOrig = mDNSNULL; in mDNS_StartResolveService()
8999 query->qAv6.qnameOrig = mDNSNULL; in mDNS_StartResolveService()
9055 question->qnameOrig = mDNSNULL; in mDNS_GetDomains()
9098 rr->NewRData = mDNSNULL; // Clear the NewRData pointer ... in mDNS_Update()
9112 if (status != mStatus_NoError) { rr->NewRData = mDNSNULL; rr->newrdlength = 0; } in mDNS_Update()
9175 …mDNS_SetupResourceRecord(&set->RR_A, mDNSNULL, set->InterfaceID, kDNSType_A, kHostNameTTL,… in AdvertiseInterface()
9176 …(&set->RR_PTR, mDNSNULL, set->InterfaceID, kDNSType_PTR, kHostNameTTL, kDNSRecordTypeKnownUniq… in AdvertiseInterface()
9177 …(&set->RR_HINFO, mDNSNULL, set->InterfaceID, kDNSType_HINFO, kHostNameTTL, kDNSRecordTypeUnique, … in AdvertiseInterface()
9243 AuthRecord *A = primary ? &primary->RR_A : mDNSNULL; in DeadvertiseInterface()
9412 m->SPSBrowseCallback(m, &set->NetWakeBrowse, mDNSNULL, mDNSfalse); in mDNS_DeactivateNetWake_internal()
9465 set->next = mDNSNULL; in mDNS_RegisterInterface()
9550 rr->SendNSECNow = mDNSNULL; in mDNS_RegisterInterface()
9583 set->next = mDNSNULL; in mDNS_DeregisterInterface()
9784 sr->Extras = mDNSNULL; in mDNS_RegisterService()
9799 …mDNS_SetupResourceRecord(&sr->RR_ADV, mDNSNULL, InterfaceID, kDNSType_PTR, kStandardTTL, kDNSRecor… in mDNS_RegisterService()
9800 …mDNS_SetupResourceRecord(&sr->RR_PTR, mDNSNULL, InterfaceID, kDNSType_PTR, kStandardTTL, kDNSRecor… in mDNS_RegisterService()
9807 …mDNS_SetupResourceRecord(&sr->RR_SRV, mDNSNULL, InterfaceID, kDNSType_SRV, hostTTL, recordType, ar… in mDNS_RegisterService()
9808 …mDNS_SetupResourceRecord(&sr->RR_TXT, mDNSNULL, InterfaceID, kDNSType_TXT, kStandardTTL, kDNSRecor… in mDNS_RegisterService()
9812 …return(mDNS_RegisterNoSuchService(m, &sr->RR_SRV, name, type, domain, mDNSNULL, InterfaceID, NSSCa… in mDNS_RegisterService()
9822 …(const domainlabel*)"\x09_services", (const domainname*)"\x07_dns-sd\x04_udp", domain) == mDNSNULL) in mDNS_RegisterService()
9824 …if (ConstructServiceName(&sr->RR_PTR.namestorage, mDNSNULL, type, domain) == mDNSNULL) return(mSta… in mDNS_RegisterService()
9825 …if (ConstructServiceName(&sr->RR_SRV.namestorage, name, type, domain) == mDNSNULL) return(mSta… in mDNS_RegisterService()
9847 …mDNS_SetupResourceRecord(&sr->SubTypes[i], mDNSNULL, InterfaceID, kDNSType_PTR, kStandardTTL, kDNS… in mDNS_RegisterService()
9848 …if (ConstructServiceName(&sr->SubTypes[i].namestorage, mDNSNULL, &st, domain) == mDNSNULL) return(… in mDNS_RegisterService()
9866 if (txtinfo == mDNSNULL) sr->RR_TXT.resrec.rdlength = 0; in mDNS_RegisterService()
9921 extra->next = mDNSNULL; in mDNS_AddRecordToService()
9976 const domainname *host = sr->RR_SRV.AutoTarget ? mDNSNULL : &sr->RR_SRV.resrec.rdata->u.srv.target; in mDNS_RenameAndReregisterService()
10094 …mDNS_SetupResourceRecord(rr, mDNSNULL, InterfaceID, kDNSType_SRV, kHostNameTTL, kDNSRecordTypeUniq… in mDNS_RegisterNoSuchService()
10095 …if (ConstructServiceName(&rr->namestorage, name, type, domain) == mDNSNULL) return(mStatus_BadPara… in mDNS_RegisterNoSuchService()
10115 …NS_SetupResourceRecord(rr, mDNSNULL, InterfaceID, kDNSType_PTR, kStandardTTL, kDNSRecordTypeShared… in mDNS_AdvertiseDomains()
10312 …else if (msg == msg4) SendNDP(m, NDP_Adv, NDP_Solicited, rr, &ndp->target, mDNSNULL, spa, … in mDNSCoreReceiveRawND()
10313 …else if (msg == msg5) SendNDP(m, NDP_Adv, 0, rr, &ndp->target, mDNSNULL, &AllHosts_v6,… in mDNSCoreReceiveRawND()
10520 mDNS_RenameAndReregisterService(m, srs, mDNSNULL); in SleepProxyServerCallback()
10527 m->SPSState = (mDNSu8)(m->SPSSocket != mDNSNULL); in SleepProxyServerCallback()
10534 mDNSNULL, m->SPSSocket->port, // Host, port in SleepProxyServerCallback()
10536 mDNSNULL, 0, // Subtypes (none) in SleepProxyServerCallback()
10538 SleepProxyServerCallback, mDNSNULL, 0); // Callback, context, flags in SleepProxyServerCallback()
10553 if (!sps && m->SPSSocket) { mDNSPlatformUDPClose(m->SPSSocket); m->SPSSocket = mDNSNULL; } in mDNSCoreBeSleepProxyServer_internal()
10670 m->Questions = mDNSNULL; in mDNS_Init()
10671 m->NewQuestions = mDNSNULL; in mDNS_Init()
10672 m->CurrentQuestion = mDNSNULL; in mDNS_Init()
10673 m->LocalOnlyQuestions = mDNSNULL; in mDNS_Init()
10674 m->NewLocalOnlyQuestions = mDNSNULL; in mDNS_Init()
10675 m->RestartQuestion = mDNSNULL; in mDNS_Init()
10680 m->rrcache_free = mDNSNULL; in mDNS_Init()
10684 m->rrcache_hash[slot] = mDNSNULL; in mDNS_Init()
10689 m->rrauth.rrauth_free = mDNSNULL; in mDNS_Init()
10692 m->rrauth.rrauth_hash[slot] = mDNSNULL; in mDNS_Init()
10700 m->ResourceRecords = mDNSNULL; in mDNS_Init()
10701 m->DuplicateRecords = mDNSNULL; in mDNS_Init()
10702 m->NewLocalRecords = mDNSNULL; in mDNS_Init()
10704 m->CurrentRecord = mDNSNULL; in mDNS_Init()
10705 m->HostInterfaces = mDNSNULL; in mDNS_Init()
10714 m->DNSServers = mDNSNULL; in mDNS_Init()
10720 m->AuthInfoList = mDNSNULL; in mDNS_Init()
10725 m->Hostnames = mDNSNULL; in mDNS_Init()
10734 m->NATTraversals = mDNSNULL; in mDNS_Init()
10735 m->CurrentNATTraversal = mDNSNULL; in mDNS_Init()
10740 m->NATMcastRecvskt = mDNSNULL; in mDNS_Init()
10746 m->SSDPSocket = mDNSNULL; in mDNS_Init()
10750 m->UPnPRouterURL = mDNSNULL; in mDNS_Init()
10752 m->UPnPSOAPURL = mDNSNULL; in mDNS_Init()
10753 m->UPnPRouterAddressString = mDNSNULL; in mDNS_Init()
10754 m->UPnPSOAPAddressString = mDNSNULL; in mDNS_Init()
10760 m->SPSProxyListChanged = mDNSNULL; in mDNS_Init()
10761 m->SPSSocket = mDNSNULL; in mDNS_Init()
10762 m->SPSBrowseCallback = mDNSNULL; in mDNS_Init()
10768 m->TunnelClients = mDNSNULL; in mDNS_Init()
10852 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next) in mDNS_PurgeBeforeResolve()
10918 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next) in CacheRecordResetDNSServer()
10923 (rp->resrec.rDNSServer != mDNSNULL ? &rp->resrec.rDNSServer->addr : mDNSNULL)); in CacheRecordResetDNSServer()
10930 for (rp = cg ? cg->members : mDNSNULL; rp; rp = rp->next) in CacheRecordResetDNSServer()
10939 (rp->resrec.rDNSServer != mDNSNULL ? &rp->resrec.rDNSServer->addr : mDNSNULL), in CacheRecordResetDNSServer()
10940 (new != mDNSNULL ? &new->addr : mDNSNULL)); in CacheRecordResetDNSServer()
10946 if (rp->CRActiveQuestion != mDNSNULL) in CacheRecordResetDNSServer()
10949 rp->CRActiveQuestion = mDNSNULL; in CacheRecordResetDNSServer()
10956 " after:%#a, CRActiveQuestion %p", rp->resrec.name->c, (rp->resrec.rDNSServer != mDNSNULL ? in CacheRecordResetDNSServer()
10957 &rp->resrec.rDNSServer->addr : mDNSNULL), (new != mDNSNULL ? &new->addr : mDNSNULL), in CacheRecordResetDNSServer()
11063 mDNSPlatformSetDNSConfig(m, mDNStrue, mDNSfalse, &fqdn, mDNSNULL, mDNSNULL); in uDNS_SetupDNSConfig()
11097 …erForName(m, cr->resrec.name, cr->CRActiveQuestion ? cr->CRActiveQuestion->InterfaceID : mDNSNULL); in uDNS_SetupDNSConfig()
11104 if (cr->CRActiveQuestion == mDNSNULL) in uDNS_SetupDNSConfig()
11131 t, t ? &t->addr : mDNSNULL, mDNSVal16(t ? t->port : zeroIPPort), t ? t->domain.c : (mDNSu8*)"", in uDNS_SetupDNSConfig()
11132 s, s ? &s->addr : mDNSNULL, mDNSVal16(s ? s->port : zeroIPPort), s ? s->domain.c : (mDNSu8*)"", in uDNS_SetupDNSConfig()
11169 …q, q->qname.c, DNSTypeName(q->qtype), t ? &t->addr : mDNSNULL, mDNSVal16(t ? t->port : zeroIPPort)… in uDNS_SetupDNSConfig()
11203 if (qptr->qDNSServer == mDNSNULL) in uDNS_SetupDNSConfig()
11213 qptr->qDNSServer = mDNSNULL; in uDNS_SetupDNSConfig()
11214 cr->resrec.rDNSServer = mDNSNULL; in uDNS_SetupDNSConfig()
11225 cr->resrec.rDNSServer = mDNSNULL; in uDNS_SetupDNSConfig()
11247 if ((m->DNSServers != mDNSNULL) != (oldServers != mDNSNULL)) in uDNS_SetupDNSConfig()
11268 mDNS_AddDynDNSHostName(m, &m->FQDN, DynDNSHostNameCallback, mDNSNULL); in uDNS_SetupDNSConfig()
11281 !mDNSIPv4AddressIsZero(v4.ip.v4) ? &v4 : mDNSNULL, in uDNS_SetupDNSConfig()
11282 !mDNSIPv6AddressIsZero(v6.ip.v6) ? &v6 : mDNSNULL, in uDNS_SetupDNSConfig()
11283 !mDNSIPv4AddressIsZero(r .ip.v4) ? &r : mDNSNULL); in uDNS_SetupDNSConfig()
11287 mDNS_SetPrimaryInterfaceInfo(m, mDNSNULL, mDNSNULL, mDNSNULL); in uDNS_SetupDNSConfig()