Lines Matching refs:nta
1628 if (q->nta) CancelGetZoneData(m, q->nta);
1629 q->nta = StartGetZoneData(m, &q->qname, ZoneServiceLLQ, LLQGotZoneData, q);
1637 if (!q->nta)
1646 LogInfo("startLLQHandshake: nta is NULL for %##s (%s)", q->qname.c, DNSTypeName(q->qtype));
1647 q->nta = StartGetZoneData(m, &q->qname, ZoneServiceLLQ, LLQGotZoneData, q);
1650 else if (!q->nta->Host.c[0])
1653 LogMsg("startLLQHandshake: ERROR!!: nta non NULL for %##s (%s) but HostName %d NULL, LongLived %d", q->qname.c, DNSTypeName(q->qtype), q->nta->Host.c[0], q->LongLived);
1655 q->tcp = MakeTCPConn(m, mDNSNULL, mDNSNULL, kTCPSocketFlags_UseTLS, &q->servAddr, q->servPort, &q->nta->Host, q, mDNSNULL);
2048 (r->state == regState_Pending && r->nta && !mDNSIPv4AddressIsZero(r->nta->Addr.ip.v4)))
2081 if (!rr->nta || mDNSIPv4AddressIsZero(rr->nta->Addr.ip.v4))
2261 mDNSBool HaveZoneData = rr->nta && !mDNSIPv4AddressIsZero(rr->nta->Addr.ip.v4);
2269 mDNSBool NowNeedNATMAP = (rr->AutoTarget == Target_AutoHostAndNATMAP && !mDNSIPPortIsZero(port) && mDNSv4AddrIsRFC1918(&m->AdvertisedV4.ip.v4) && rr->nta && !mDNSAddrIsRFC1918(&rr->nta->Addr));
2979 if (!rr->nta || mDNSIPv4AddressIsZero(rr->nta->Addr.ip.v4))
3005 if (!rr->nta) { LogMsg("SendRecordRegistration:Private:ERROR!! nta is NULL for %s", ARDisplayString(m, rr)); return; }
3006 rr->tcp = MakeTCPConn(m, &m->omsg, ptr, kTCPSocketFlags_UseTLS, &rr->nta->Addr, rr->nta->Port, &rr->nta->Host, mDNSNULL, rr);
3011 if (!rr->nta) { LogMsg("SendRecordRegistration:ERROR!! nta is NULL for %s", ARDisplayString(m, rr)); return; }
3012 err = mDNSSendDNSMessage(m, &m->omsg, ptr, mDNSInterface_Any, mDNSNULL, &rr->nta->Addr, rr->nta->Port, mDNSNULL, GetAuthInfoForName_internal(m, rr->resrec.name), mDNSfalse);
3059 if (!rr->nta || mDNSIPv4AddressIsZero(rr->nta->Addr.ip.v4)) return mDNSfalse;
3078 if (!mDNSSameIPv4Address(currentRR->nta->Addr.ip.v4, rr->nta->Addr.ip.v4)) return mDNSfalse;
3080 if (!mDNSSameIPPort(currentRR->nta->Port, rr->nta->Port)) return mDNSfalse;
3122 if (!anchorRR->nta) { LogMsg("SendGroupRRMessage:ERROR!! nta is NULL for %s", ARDisplayString(m, anchorRR)); return; }
3123 anchorRR->tcp = MakeTCPConn(m, &m->omsg, ptr, kTCPSocketFlags_UseTLS, &anchorRR->nta->Addr, anchorRR->nta->Port, &anchorRR->nta->Host, mDNSNULL, anchorRR);
3129 mStatus err = mDNSSendDNSMessage(m, &m->omsg, ptr, mDNSInterface_Any, mDNSNULL, &anchorRR->nta->Addr, anchorRR->nta->Port, mDNSNULL, info, mDNSfalse);
3509 if (rr->nta)
3514 if (rr->nta->question.ThisQInterval != -1)
3516 ARDisplayString(m, rr), rr->nta->question.qname.c, DNSTypeName(rr->nta->question.qtype), rr->nta->question.ThisQInterval);
3517 UpdatePort = rr->nta->Port;
3518 CancelGetZoneData(m, rr->nta);
3519 rr->nta = mDNSNULL;
4121 if (!q->nta)
4125 // This function is called only if the query is in LLQ_Established state and hence nta should
4126 // never be NULL. In spite of that, we have seen q->nta being NULL in the field. Just refetch the
4128 q->nta = StartGetZoneData(m, &q->qname, ZoneServiceLLQ, LLQGotZoneData, q);
4131 // again immediately. As q->servAddr and q->servPort are still valid and the nta->Host is initialized
4134 q->tcp = MakeTCPConn(m, &m->omsg, end, kTCPSocketFlags_UseTLS, &q->servAddr, q->servPort, &q->nta->Host, q, mDNSNULL);
4181 if (q->nta)
4183 if (q->nta != zoneInfo) LogMsg("LLQGotZoneData: nta (%p) != zoneInfo (%p) %##s (%s)", q->nta, zoneInfo, q->qname.c, DNSTypeName(q->qtype));
4184 CancelGetZoneData(m, q->nta);
4185 q->nta = mDNSNULL;
4194 if (q->nta)
4196 if (q->nta != zoneInfo) LogMsg("LLQGotZoneData: nta (%p) != zoneInfo (%p) %##s (%s)", q->nta, zoneInfo, q->qname.c, DNSTypeName(q->qtype));
4197 CancelGetZoneData(m, q->nta);
4198 q->nta = mDNSNULL;
4219 if (q->nta != zoneInfo) LogMsg("PrivateQueryGotZoneData:ERROR!!: nta (%p) != zoneInfo (%p) %##s (%s)", q->nta, zoneInfo, q->qname.c, DNSTypeName(q->qtype));
4227 CancelGetZoneData(m, q->nta);
4228 q->nta = mDNSNULL;
4238 CancelGetZoneData(m, q->nta);
4239 q->nta = mDNSNULL;
4250 CancelGetZoneData(m, q->nta);
4251 q->nta = mDNSNULL;
4257 if (!q->nta) { LogMsg("PrivateQueryGotZoneData:ERROR!! nta is NULL for %##s (%s)", q->qname.c, DNSTypeName(q->qtype)); return; }
4258 q->tcp = MakeTCPConn(m, mDNSNULL, mDNSNULL, kTCPSocketFlags_UseTLS, &zoneInfo->Addr, zoneInfo->Port, &q->nta->Host, q, mDNSNULL);
4259 if (q->nta) { CancelGetZoneData(m, q->nta); q->nta = mDNSNULL; }
4278 if (newRR->nta != zoneData)
4279 LogMsg("RecordRegistrationGotZoneData: nta (%p) != zoneData (%p) %##s (%s)", newRR->nta, zoneData, newRR->resrec.name->c, DNSTypeName(newRR->resrec.rrtype));
4289 CancelGetZoneData(m, newRR->nta);
4290 newRR->nta = mDNSNULL;
4298 CancelGetZoneData(m, newRR->nta);
4299 newRR->nta = mDNSNULL;
4306 CancelGetZoneData(m, newRR->nta);
4307 newRR->nta = mDNSNULL;
4317 CancelGetZoneData(m, newRR->nta);
4318 newRR->nta = mDNSNULL;
4328 CancelGetZoneData(m, newRR->nta);
4329 newRR->nta = mDNSNULL;
4336 CancelGetZoneData(m, newRR->nta);
4337 newRR->nta = mDNSNULL;
4344 CancelGetZoneData(m, newRR->nta);
4345 newRR->nta = mDNSNULL;
4377 CancelGetZoneData(m, newRR->nta);
4378 newRR->nta = mDNSNULL;
4387 mDNSv4AddrIsRFC1918(&m->AdvertisedV4.ip.v4) && newRR->nta && !mDNSAddrIsRFC1918(&newRR->nta->Addr) &&
4399 CancelGetZoneData(m, newRR->nta);
4400 newRR->nta = mDNSNULL;
4443 if (!rr->nta || mDNSIPv4AddressIsZero(rr->nta->Addr.ip.v4))
4469 if (!rr->nta) { LogMsg("SendRecordDeregistration:Private:ERROR!! nta is NULL for %s", ARDisplayString(m, rr)); return; }
4470 rr->tcp = MakeTCPConn(m, &m->omsg, ptr, kTCPSocketFlags_UseTLS, &rr->nta->Addr, rr->nta->Port, &rr->nta->Host, mDNSNULL, rr);
4476 if (!rr->nta) { LogMsg("SendRecordDeregistration:ERROR!! nta is NULL for %s", ARDisplayString(m, rr)); return; }
4477 err = mDNSSendDNSMessage(m, &m->omsg, ptr, mDNSInterface_Any, mDNSNULL, &rr->nta->Addr, rr->nta->Port, mDNSNULL, GetAuthInfoForName_internal(m, rr->resrec.name), mDNSfalse);
4820 if (q->nta) CancelGetZoneData(m, q->nta);
4821 q->nta = StartGetZoneData(m, &q->qname, q->LongLived ? ZoneServiceLLQ : ZoneServiceQuery, PrivateQueryGotZoneData, q);
5126 if (!rr->nta || mDNSIPv4AddressIsZero(rr->nta->Addr.ip.v4))
5129 // be accepted as a valid response. If we accept the response, we might free the new "nta"
5130 if (rr->nta) { rr->updateid = zeroID; CancelGetZoneData(m, rr->nta); }
5131 rr->nta = StartGetZoneData(m, rr->resrec.name, ZoneServiceUpdate, RecordRegistrationGotZoneData, rr);
5222 if (rr->nta) { rr->updateid = zeroID; CancelGetZoneData(m, rr->nta); rr->nta = mDNSNULL; }