• Home
  • Raw
  • Download

Lines Matching refs:resrec

387 	info->AutoTunnelHostRecord.resrec.RecordType = kDNSRecordTypeUnregistered;  in mDNS_SetSecretForDomain()
389 info->AutoTunnelTarget .resrec.RecordType = kDNSRecordTypeUnregistered; in mDNS_SetSecretForDomain()
390 info->AutoTunnelDeviceInfo.resrec.RecordType = kDNSRecordTypeUnregistered; in mDNS_SetSecretForDomain()
391 info->AutoTunnelService .resrec.RecordType = kDNSRecordTypeUnregistered; in mDNS_SetSecretForDomain()
392 info->AutoTunnel6Record .resrec.RecordType = kDNSRecordTypeUnregistered; in mDNS_SetSecretForDomain()
705 ResourceRecord *opt = &rr.resrec; in putLLQ()
721 optRD = &rr.resrec.rdata->u.opt[0]; in putLLQ()
876 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in uDNS_recvLLQResponse()
911 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in uDNS_recvLLQResponse()
931 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in uDNS_recvLLQResponse()
939 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in uDNS_recvLLQResponse()
953 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in uDNS_recvLLQResponse()
986 if (tcpInfo->rr && tcpInfo->rr->resrec.name != &tcpInfo->rr->namestorage) in tcpCallback()
988 tcpInfo->rr->resrec.name, &tcpInfo->rr->namestorage); in tcpCallback()
989 if (tcpInfo->rr && tcpInfo->rr-> resrec.name != &tcpInfo->rr-> namestorage) return; in tcpCallback()
991 AuthInfo = tcpInfo->rr ? GetAuthInfoForName(m, tcpInfo->rr->resrec.name) : mDNSNULL; in tcpCallback()
1399 debugf("GetServiceTarget %##s", rr->resrec.name->c); in GetServiceTarget()
1402 return(&rr->resrec.rdata->u.srv.target); in GetServiceTarget()
1406 DomainAuthInfo *AuthInfo = GetAuthInfoForName_internal(m, rr->resrec.name); in GetServiceTarget()
1423 const int srvcount = CountLabels(rr->resrec.name); in GetServiceTarget()
1432 …if (SameDomainName(SkipLeadingLabels(rr->resrec.name, srvcount - x), SkipLeadingLabels(&hi->fqdn, … in GetServiceTarget()
1691 …if (rr->resrec.rrtype != kDNSType_SRV) { LogMsg("UpdateAllServiceRecords:ERROR!! ResourceRecord no… in UpdateAllServiceRecords()
1701 if (r->resrec.rrtype == kDNSType_PTR) in UpdateAllServiceRecords()
1703 else if (r->resrec.rrtype == kDNSType_TXT) in UpdateAllServiceRecords()
1705 if (srvRR && srvRR->resrec.rrtype != kDNSType_SRV) in UpdateAllServiceRecords()
1752 …if (rr->resrec.rrtype != kDNSType_SRV) {LogMsg("CompleteRecordNatMap: Not a service record %s", AR… in CompleteRecordNatMap()
1754 …if (rr->resrec.RecordType == kDNSRecordTypeDeregistering) { LogInfo("CompleteRecordNatMap called f… in CompleteRecordNatMap()
1781 srvt = GetRRDomainNameTarget(&rr->resrec); in CompleteRecordNatMap()
1785 … - Target %##s for ResourceRecord %##s, ExternalPort %d", target->c, rr->resrec.name->c, mDNSVal16… in CompleteRecordNatMap()
1787 …LogInfo("CompleteRecordNatMap - no target for %##s, ExternalPort %d", rr->resrec.name->c, mDNSVal1… in CompleteRecordNatMap()
1790 rr->resrec.rdlength = rr->resrec.rdestimate = 0; in CompleteRecordNatMap()
1795 … - Target %##s for ResourceRecord %##s, ExternalPort %d", target->c, rr->resrec.name->c, mDNSVal16… in CompleteRecordNatMap()
1803 SetNewRData(&rr->resrec, mDNSNULL, 0); // Update rdlength, rdestimate, rdatahash in CompleteRecordNatMap()
1843 if (rr->resrec.rrtype != kDNSType_SRV) in StartRecordNatMap()
1845 …RecordNatMap: Resource Record %##s type %d, not supported", rr->resrec.name->c, rr->resrec.rrtype); in StartRecordNatMap()
1848 p = rr->resrec.name->c; in StartRecordNatMap()
1855 …cordNatMap: could not determine transport protocol of service %##s", rr->resrec.name->c); return; } in StartRecordNatMap()
1864 rr->NATinfo.IntPort = rr->resrec.rdata->u.srv.port; in StartRecordNatMap()
1865 rr->NATinfo.RequestedPort = rr->resrec.rdata->u.srv.port; in StartRecordNatMap()
1905 if (rr->resrec.rrtype == kDNSType_SRV) rr->resrec.rdata->u.srv.port = rr->NATinfo.IntPort; in UnlinkResourceRecord()
1910 LogMsg("UnlinkResourceRecord:ERROR!! - no such active record %##s", rr->resrec.name->c); in UnlinkResourceRecord()
1919 LogInfo("RegisterAllServiceRecords: Service Record %##s", rr->resrec.name->c); in RegisterAllServiceRecords()
1937 domainname *curtarget = &rr->resrec.rdata->u.srv.target; in UpdateOneSRVRecord()
1948 mDNSIPPort port = rr->resrec.rdata->u.srv.port; in UpdateOneSRVRecord()
1959 rr->resrec.name->c, newtarget, in UpdateOneSRVRecord()
1968 if (rr->resrec.RecordType == kDNSRecordTypeDeregistering) in UpdateOneSRVRecord()
1971 rr->resrec.name->c, rr->state); in UpdateOneSRVRecord()
1976 …d %d for %##s, state %d, newtarget %##s", TargetChanged, NATChanged, rr->resrec.name->c, rr->state… in UpdateOneSRVRecord()
1978 …d %d for %##s, state %d, null newtarget", TargetChanged, NATChanged, rr->resrec.name->c, rr->state… in UpdateOneSRVRecord()
2036 rr->resrec.name->c, newtarget->c); in UpdateOneSRVRecord()
2041 …LogInfo("UpdateOneSRVRecord: SRV record changed for service %##s de-registering", rr->resrec.name-… in UpdateOneSRVRecord()
2047 default: LogMsg("UpdateOneSRVRecord: Unknown state %d for %##s", rr->state, rr->resrec.name->c); in UpdateOneSRVRecord()
2063 if (AuthRecord_uDNS(rptr) && rptr->resrec.rrtype == kDNSType_SRV) in UpdateAllSRVRecords()
2082 if (h->arv4.resrec.RecordType) in hostnameGetPublicAddressCallback()
2084 …if (mDNSSameIPv4Address(h->arv4.resrec.rdata->u.ipv4, n->ExternalAddress)) return; // If address u… in hostnameGetPublicAddressCallback()
2086 h->arv4.resrec.name->c, &h->arv4.resrec.rdata->u.ipv4, &n->ExternalAddress); in hostnameGetPublicAddressCallback()
2091 …LogInfo("Advertising hostname %##s IPv4 %.4a (NAT gateway's external address)", h->arv4.resrec.nam… in hostnameGetPublicAddressCallback()
2092 h->arv4.resrec.RecordType = kDNSRecordTypeKnownUnique; in hostnameGetPublicAddressCallback()
2093 h->arv4.resrec.rdata->u.ipv4 = n->ExternalAddress; in hostnameGetPublicAddressCallback()
2102 …if (!mDNSIPv4AddressIsZero(m->AdvertisedV4.ip.v4) && h->arv4.resrec.RecordType == kDNSRecordTypeUn… in AdvertiseHostname()
2106 h->arv4.resrec.rdata->u.ipv4 = m->AdvertisedV4.ip.v4; in AdvertiseHostname()
2122 LogInfo("Advertising hostname %##s IPv4 %.4a", h->arv4.resrec.name->c, &m->AdvertisedV4.ip.v4); in AdvertiseHostname()
2123 h->arv4.resrec.RecordType = kDNSRecordTypeKnownUnique; in AdvertiseHostname()
2128 …if (!mDNSIPv6AddressIsZero(m->AdvertisedV6.ip.v6) && h->arv6.resrec.RecordType == kDNSRecordTypeUn… in AdvertiseHostname()
2132 h->arv6.resrec.rdata->u.ipv6 = m->AdvertisedV6.ip.v6; in AdvertiseHostname()
2134 LogInfo("Advertising hostname %##s IPv6 %.16a", h->arv6.resrec.name->c, &m->AdvertisedV6.ip.v6); in AdvertiseHostname()
2155 if (hi->arv4.resrec.RecordType == kDNSRecordTypeUnregistered && in HostnameCallback()
2156 hi->arv6.resrec.RecordType == kDNSRecordTypeUnregistered) in HostnameCallback()
2169 if (rr->resrec.rrtype == kDNSType_A) in HostnameCallback()
2170 …lback: Error %d for registration of %##s IP %.4a", result, rr->resrec.name->c, &rr->resrec.rdata->… in HostnameCallback()
2172 …back: Error %d for registration of %##s IP %.16a", result, rr->resrec.name->c, &rr->resrec.rdata->… in HostnameCallback()
2195 if (rr->resrec.rrtype == kDNSType_A) in HostnameCallback()
2196 LogInfo("Registered hostname %##s IP %.4a", rr->resrec.name->c, &rr->resrec.rdata->u.ipv4); in HostnameCallback()
2198 LogInfo("Registered hostname %##s IP %.16a", rr->resrec.name->c, &rr->resrec.rdata->u.ipv6); in HostnameCallback()
2321 …mDNSBool f4 = hi->arv4.resrec.RecordType != kDNSRecordTypeUnregistered && hi->arv4.state != regSta… in mDNS_RemoveDynDNSHostName()
2322 …mDNSBool f6 = hi->arv6.resrec.RecordType != kDNSRecordTypeUnregistered && hi->arv6.state != regSta… in mDNS_RemoveDynDNSHostName()
2373 if (i->arv4.resrec.RecordType > kDNSRecordTypeDeregistering && in mDNS_SetPrimaryInterfaceInfo()
2374 !mDNSSameIPv4Address(i->arv4.resrec.rdata->u.ipv4, m->AdvertisedV4.ip.v4)) in mDNS_SetPrimaryInterfaceInfo()
2380 if (i->arv6.resrec.RecordType > kDNSRecordTypeDeregistering && in mDNS_SetPrimaryInterfaceInfo()
2381 !mDNSSameIPv6Address(i->arv6.resrec.rdata->u.ipv6, m->AdvertisedV6.ip.v6)) in mDNS_SetPrimaryInterfaceInfo()
2443 …if (m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative && m->rec.r.resrec.rrtype == kDNSTy… in ParseTSIGError()
2446 mDNSu8 *rd = m->rec.r.resrec.rdata->u.data; in ParseTSIGError()
2447 mDNSu8 *rdend = rd + m->rec.r.resrec.rdlength; in ParseTSIGError()
2448 int alglen = DomainNameLengthLimit(&m->rec.r.resrec.rdata->u.name, rdend); in ParseTSIGError()
2471 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in ParseTSIGError()
2475 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in ParseTSIGError()
2568 ptr = putDeletionRecordWithLimit(&m->omsg, ptr, &rr->resrec, limit); in BuildUpdateMessage()
2581 if (rr->resrec.RecordType != kDNSRecordTypeAdvisory) rr->RequireGoodbye = mDNStrue; in BuildUpdateMessage()
2583 if ((rr->resrec.rrtype == kDNSType_SRV) && (rr->AutoTarget == Target_AutoHostAndNATMAP) && in BuildUpdateMessage()
2586 rr->resrec.rdata->u.srv.port = rr->NATinfo.ExternalPort; in BuildUpdateMessage()
2592 SetNewRData(&rr->resrec, rr->OrigRData, rr->OrigRDLen); in BuildUpdateMessage()
2593 …if (!(ptr = putDeletionRecordWithLimit(&m->omsg, ptr, &rr->resrec, limit))) goto exit; // delete o… in BuildUpdateMessage()
2596 SetNewRData(&rr->resrec, rr->InFlightRData, rr->InFlightRDLen); in BuildUpdateMessage()
2597 …RecordTTLWithLimit(&m->omsg, ptr, &m->omsg.h.mDNS_numUpdates, &rr->resrec, rr->resrec.rroriginaltt… in BuildUpdateMessage()
2601 …if (rr->resrec.RecordType == kDNSRecordTypeKnownUnique || rr->resrec.RecordType == kDNSRecordTypeV… in BuildUpdateMessage()
2606 ptr = putDeleteRRSetWithLimit(&m->omsg, ptr, rr->resrec.name, rr->resrec.rrtype, limit); in BuildUpdateMessage()
2609 else if (rr->resrec.RecordType != kDNSRecordTypeShared) in BuildUpdateMessage()
2616 …RecordTTLWithLimit(&m->omsg, ptr, &m->omsg.h.mDNS_numUpdates, &rr->resrec, rr->resrec.rroriginaltt… in BuildUpdateMessage()
2638 AuthInfo = GetAuthInfoForName_internal(m, rr->resrec.name); in SendRecordRegistration()
2655 ptr = putZone(&m->omsg, ptr, limit, rr->zone, mDNSOpaque16fromIntVal(rr->resrec.rrclass)); in SendRecordRegistration()
2677 …DNSNULL, &rr->nta->Addr, rr->nta->Port, mDNSNULL, GetAuthInfoForName_internal(m, rr->resrec.name)); in SendRecordRegistration()
2816 rdlength = rr->resrec.rdestimate; in RREstimatedSize()
2821 …rr->resrec.name->c, DNSTypeName(rr->resrec.rrtype), DomainNameLength(rr->resrec.name), zoneSize, r… in RREstimatedSize()
2822 return DomainNameLength(rr->resrec.name) - zoneSize + 2 + 10 + rdlength; in RREstimatedSize()
2826 …if (rr->resrec.RecordType == kDNSRecordTypeKnownUnique || rr->resrec.RecordType == kDNSRecordTypeV… in RREstimatedSize()
2832 …rr->resrec.name->c, DNSTypeName(rr->resrec.rrtype), DomainNameLength(rr->resrec.name), zoneSize, r… in RREstimatedSize()
2833 return DomainNameLength(rr->resrec.name) - zoneSize + 2 + 10 + 2 + 10 + rdlength; in RREstimatedSize()
2837 return DomainNameLength(rr->resrec.name) - zoneSize + 2 + 10 + rdlength; in RREstimatedSize()
2978 next = putZone(&m->omsg, next, limit, rr->zone, mDNSOpaque16fromIntVal(rr->resrec.rrclass)); in SendGroupUpdates()
3015 …%s, next %p, state %d, ttl %d", ARDisplayString(m, rr), next, rr->state, rr->resrec.rroriginalttl); in SendGroupUpdates()
3095 …LogInfo("hndlSRVChanged: SRVChanged, No Target, SRV Deregistered for %##s, state %d", rr->resrec.n… in hndlSRVChanged()
3098 dt = GetRRDomainNameTarget(&rr->resrec); in hndlSRVChanged()
3101 rr->resrec.rdlength = rr->resrec.rdestimate = 0; in hndlSRVChanged()
3108 …LogInfo("hndlSRVChanged: SRVChanged, No Target, Deregistering again %##s, state %d", rr->resrec.na… in hndlSRVChanged()
3114 …LogInfo("hndlSRVChanged: Not in DeregPending or RegPending state %##s, state %d", rr->resrec.name-… in hndlSRVChanged()
3126 (rr->state == regState_Pending && !SameDomainName(target, &rr->resrec.rdata->u.srv.target))) in hndlSRVChanged()
3128 dt = GetRRDomainNameTarget(&rr->resrec); in hndlSRVChanged()
3131 rr->resrec.rdlength = rr->resrec.rdestimate = 0; in hndlSRVChanged()
3133 target->c, rr->resrec.name->c, rr->state); in hndlSRVChanged()
3190 if (rr->resrec.RecordType == kDNSRecordTypeDeregistering && rr->state == regState_DeregPending) in hndlRecordUpdateReply()
3192 …eReply: Received reply for deregister record %##s type %d", rr->resrec.name->c, rr->resrec.rrtype); in hndlRecordUpdateReply()
3194 rr->resrec.name->c, rr->resrec.rrtype, err); in hndlRecordUpdateReply()
3208 if (rr->resrec.rrtype == kDNSType_SRV && rr->state == regState_DeregPending) in hndlRecordUpdateReply()
3215 if (err) LogMsg("Update record failed for %##s (err %d)", rr->resrec.name->c, err); in hndlRecordUpdateReply()
3219 SetNewRData(&rr->resrec, rr->InFlightRData, rr->InFlightRDLen); in hndlRecordUpdateReply()
3226 if (rr->resrec.rrtype == kDNSType_SRV) in hndlRecordUpdateReply()
3230 …ecordUpdateReply: Deregistered %##s (%s), state %d", rr->resrec.name->c, DNSTypeName(rr->resrec.rr… in hndlRecordUpdateReply()
3248 …Registration of record %##s type %d failed with error %d", rr->resrec.name->c, rr->resrec.rrtype, … in hndlRecordUpdateReply()
3251 …hndlRecordUpdateReply: Will retry update of record %##s without lease option", rr->resrec.name->c); in hndlRecordUpdateReply()
3266 rr->OrigRData = rr->resrec.rdata; in hndlRecordUpdateReply()
3267 rr->OrigRDLen = rr->resrec.rdlength; in hndlRecordUpdateReply()
3279 LogInfo("hndlRecordUpdateReply: Calling record callback on %##s", rr->resrec.name->c); in hndlRecordUpdateReply()
3553 err = checkUpdateResult(m, rptr->resrec.name, rcode, msg, end); in uDNS_ReceiveMsg()
3754 …zoneData (%p) %##s (%s)", newRR->nta, zoneData, newRR->resrec.name->c, DNSTypeName(newRR->resrec.… in RecordRegistrationGotZoneData()
3780 if (newRR->resrec.rrclass != zoneData->ZoneClass) in RecordRegistrationGotZoneData()
3782 …LogMsg("ERROR: New resource record's class (%d) does not match zone class (%d)", newRR->resrec.rrc… in RecordRegistrationGotZoneData()
3793 …onGotZoneData: No name server found claiming responsibility for \"%##s\"!", newRR->resrec.name->c); in RecordRegistrationGotZoneData()
3800 c1 = CountLabels(newRR->resrec.name); in RecordRegistrationGotZoneData()
3804 …nGotZoneData: Zone \"%##s\" is longer than \"%##s\"", zoneData->ZoneName.c, newRR->resrec.name->c); in RecordRegistrationGotZoneData()
3809 newRR->zone = SkipLeadingLabels(newRR->resrec.name, c1-c2); in RecordRegistrationGotZoneData()
3812 …oes not match \"%##s\" for \"%##s\"", newRR->zone->c, zoneData->ZoneName.c, newRR->resrec.name->c); in RecordRegistrationGotZoneData()
3820 …dRegistrationGotZoneData: No _dns-update._udp service found for \"%##s\"!", newRR->resrec.name->c); in RecordRegistrationGotZoneData()
3828 newRR->resrec.name->c, zoneData->ZoneName.c, &zoneData->Addr, mDNSVal16(zoneData->Port)); in RecordRegistrationGotZoneData()
3839 if (newRR->resrec.rrtype == kDNSType_SRV) in RecordRegistrationGotZoneData()
3849 domainname *t = GetRRDomainNameTarget(&newRR->resrec); in RecordRegistrationGotZoneData()
3850 LogInfo("RecordRegistrationGotZoneData - no target for %##s", newRR->resrec.name->c); in RecordRegistrationGotZoneData()
3852 newRR->resrec.rdlength = newRR->resrec.rdestimate = 0; in RecordRegistrationGotZoneData()
3863 if (newRR->resrec.rrtype == kDNSType_SRV && !mDNSIPPortIsZero(newRR->resrec.rdata->u.srv.port) && in RecordRegistrationGotZoneData()
3868 AuthInfo = GetAuthInfoForName(m, newRR->resrec.name); in RecordRegistrationGotZoneData()
3871 domainname *t = GetRRDomainNameTarget(&newRR->resrec); in RecordRegistrationGotZoneData()
3874 newRR->resrec.rdlength = newRR->resrec.rdestimate = 0; in RecordRegistrationGotZoneData()
3923 …No zone info for Resource record %s RecordType %d", ARDisplayString(m, rr), rr->resrec.RecordType); in SendRecordDeregistration()
3928 AuthInfo = GetAuthInfoForName_internal(m, rr->resrec.name); in SendRecordDeregistration()
3935 ptr = putZone(&m->omsg, ptr, limit, rr->zone, mDNSOpaque16fromIntVal(rr->resrec.rrclass)); in SendRecordDeregistration()
3955 …DNSNULL, &rr->nta->Addr, rr->nta->Port, mDNSNULL, GetAuthInfoForName_internal(m, rr->resrec.name)); in SendRecordDeregistration()
3989 …gisterRecord: State %d for %##s type %s", rr->state, rr->resrec.name->c, DNSTypeName(rr->resrec.rr… in uDNS_DeregisterRecord()
3991 if (rr->resrec.RecordType == kDNSRecordTypeDeregistering) CompleteDeregistration(m, rr); in uDNS_DeregisterRecord()
4032 info = GetAuthInfoForName_internal(m, rr->resrec.name); in uDNS_DeregisterRecord()
4054 LogInfo("uDNS_UpdateRecord: Resource Record %##s, state %d", rr->resrec.name->c, rr->state); in uDNS_UpdateRecord()
4065 if (rr->UpdateCallback) rr->UpdateCallback(m, rr, rr->resrec.rdata, rr->resrec.rdlength); in uDNS_UpdateRecord()
4066 SetNewRData(&rr->resrec, rr->NewRData, rr->newrdlength); in uDNS_UpdateRecord()
4083 rr->OrigRData = rr->resrec.rdata; in uDNS_UpdateRecord()
4084 rr->OrigRDLen = rr->resrec.rdlength; in uDNS_UpdateRecord()
4094 …R: uDNS_UpdateRecord called for record %##s with bad state regState_NATError", rr->resrec.name->c); in uDNS_UpdateRecord()
4097 default: LogMsg("uDNS_UpdateRecord: Unknown state %d for %##s", rr->state, rr->resrec.name->c); in uDNS_UpdateRecord()
4102 rr->resrec.name->c, rr->resrec.rrtype, rr->state); in uDNS_UpdateRecord()
4309 if (SameNameRecordAnswersQuestion(&rr->resrec, q)) mDNS_PurgeCacheResourceRecord(m, rr); in uDNS_CheckCurrentQuestion()
4361 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in uDNS_CheckCurrentQuestion()
4520 …ate_NoTarget) {debugf("CheckRecordUpdates: Record %##s in NoTarget", rr->resrec.name->c); continue… in CheckRecordUpdates()
4523 …if (rr->state == regState_NATMap) {debugf("CheckRecordUpdates: Record %##s in NATMap", rr->resrec.… in CheckRecordUpdates()
4535 …rr->nta = StartGetZoneData(m, rr->resrec.name, ZoneServiceUpdate, RecordRegistrationGotZoneData, r… in CheckRecordUpdates()
4642 SetNewRData(&rr->resrec, rr->InFlightRData, rr->InFlightRDLen); in SleepRecordRegistrations()
4725 AssignDomainName(&arElem->ar.resrec.rdata->u.name, &answer->rdata->u.name); in FoundDomain()
4737 if (SameDomainName(&(*ptr)->ar.resrec.rdata->u.name, &answer->rdata->u.name)) in FoundDomain()
4835 …debugf("Deregistering PTR %##s -> %##s", dereg->ar.resrec.name->c, dereg->ar.resrec.rdata->u.name.… in uDNS_SetupSearchDomains()
4927 if (cr->resrec.InterfaceID) continue; in FlushAddressCacheRecords()
4931 if (RRTypeAnswersQuestionType(&cr->resrec, kDNSType_A) || in FlushAddressCacheRecords()
4932 RRTypeAnswersQuestionType(&cr->resrec, kDNSType_AAAA)) in FlushAddressCacheRecords()