Lines Matching defs:newRR
4250 AuthRecord *newRR = (AuthRecord*)zoneData->ZoneDataContext;
4254 if (newRR->nta != zoneData)
4255 LogMsg("RecordRegistrationGotZoneData: nta (%p) != zoneData (%p) %##s (%s)", newRR->nta, zoneData, newRR->resrec.name->c, DNSTypeName(newRR->resrec.rrtype));
4261 for (ptr = m->ResourceRecords; ptr; ptr = ptr->next) if (ptr == newRR) break;
4265 CancelGetZoneData(m, newRR->nta);
4266 newRR->nta = mDNSNULL;
4274 CancelGetZoneData(m, newRR->nta);
4275 newRR->nta = mDNSNULL;
4281 if (newRR->resrec.rrclass != zoneData->ZoneClass)
4283 LogMsg("ERROR: New resource record's class (%d) does not match zone class (%d)", newRR->resrec.rrclass, zoneData->ZoneClass);
4284 CancelGetZoneData(m, newRR->nta);
4285 newRR->nta = mDNSNULL;
4294 LogInfo("RecordRegistrationGotZoneData: No name server found claiming responsibility for \"%##s\"!", newRR->resrec.name->c);
4295 CancelGetZoneData(m, newRR->nta);
4296 newRR->nta = mDNSNULL;
4301 c1 = CountLabels(newRR->resrec.name);
4305 LogMsg("RecordRegistrationGotZoneData: Zone \"%##s\" is longer than \"%##s\"", zoneData->ZoneName.c, newRR->resrec.name->c);
4306 CancelGetZoneData(m, newRR->nta);
4307 newRR->nta = mDNSNULL;
4310 newRR->zone = SkipLeadingLabels(newRR->resrec.name, c1-c2);
4311 if (!SameDomainName(newRR->zone, &zoneData->ZoneName))
4313 LogMsg("RecordRegistrationGotZoneData: Zone \"%##s\" does not match \"%##s\" for \"%##s\"", newRR->zone->c, zoneData->ZoneName.c, newRR->resrec.name->c);
4314 CancelGetZoneData(m, newRR->nta);
4315 newRR->nta = mDNSNULL;
4321 LogInfo("RecordRegistrationGotZoneData: No _dns-update._udp service found for \"%##s\"!", newRR->resrec.name->c);
4322 CancelGetZoneData(m, newRR->nta);
4323 newRR->nta = mDNSNULL;
4327 newRR->Private = zoneData->ZonePrivate;
4329 newRR->resrec.name->c, zoneData->ZoneName.c, &zoneData->Addr, mDNSVal16(zoneData->Port));
4332 if (newRR->state == regState_DeregPending)
4335 uDNS_DeregisterRecord(m, newRR);
4340 if (newRR->resrec.rrtype == kDNSType_SRV)
4346 target = GetServiceTarget(m, newRR);
4350 domainname *t = GetRRDomainNameTarget(&newRR->resrec);
4351 LogInfo("RecordRegistrationGotZoneData - no target for %##s", newRR->resrec.name->c);
4353 newRR->resrec.rdlength = newRR->resrec.rdestimate = 0;
4354 newRR->state = regState_NoTarget;
4355 CancelGetZoneData(m, newRR->nta);
4356 newRR->nta = mDNSNULL;
4364 if (newRR->resrec.rrtype == kDNSType_SRV && !mDNSIPPortIsZero(newRR->resrec.rdata->u.srv.port) &&
4365 mDNSv4AddrIsRFC1918(&m->AdvertisedV4.ip.v4) && newRR->nta && !mDNSAddrIsRFC1918(&newRR->nta->Addr) &&
4366 newRR->AutoTarget == Target_AutoHostAndNATMAP)
4369 AuthInfo = GetAuthInfoForName(m, newRR->resrec.name);
4372 domainname *t = GetRRDomainNameTarget(&newRR->resrec);
4373 LogMsg("RecordRegistrationGotZoneData: ERROR!! AutoTunnel has Target_AutoHostAndNATMAP for %s", ARDisplayString(m, newRR));
4375 newRR->resrec.rdlength = newRR->resrec.rdestimate = 0;
4376 newRR->state = regState_NoTarget;
4377 CancelGetZoneData(m, newRR->nta);
4378 newRR->nta = mDNSNULL;
4383 if (!newRR->NATinfo.clientContext)
4385 LogInfo("RecordRegistrationGotZoneData StartRecordNatMap %s", ARDisplayString(m, newRR));
4386 newRR->state = regState_NATMap;
4387 StartRecordNatMap(m, newRR);
4390 else LogInfo("RecordRegistrationGotZoneData: StartRecordNatMap for %s, state %d, context %p", ARDisplayString(m, newRR), newRR->state, newRR->NATinfo.clientContext);
4398 if (newRR->updateError == mStatus_NoError)
4400 newRR->ThisAPInterval = INIT_RECORD_REG_INTERVAL;
4401 newRR->LastAPTime = m->timenow - INIT_RECORD_REG_INTERVAL;
4403 if (IsRecordMergeable(m, newRR, m->timenow + MERGE_DELAY_TIME))
4407 LogInfo("RecordRegistrationGotZoneData: Delayed registration for %s", ARDisplayString(m, newRR));
4408 newRR->LastAPTime += MERGE_DELAY_TIME;