/external/mdnsresponder/mDNSCore/ |
D | mDNS.c | 118 (rr)->resrec.RecordType & kDNSRecordTypeUniqueMask && \ 119 ((rr)->resrec.rrtype == kDNSType_A || (rr)->resrec.rrtype == kDNSType_AAAA || \ 120 (rr)->resrec.rrtype == kDNSType_CNAME)) 283 const mDNSu32 slot = AuthHashSlot(rr->resrec.name); in InsertAuthRecord() 284 ag = AuthGroupForRecord(r, slot, &rr->resrec); in InsertAuthRecord() 285 …if (!ag) ag = GetAuthGroup(r, slot, &rr->resrec); // If we don't have a AuthGroup for this name, m… in InsertAuthRecord() 300 const mDNSu32 slot = AuthHashSlot(rr->resrec.name); in RemoveAuthRecord() 302 a = AuthGroupForRecord(r, slot, &rr->resrec); in RemoveAuthRecord() 390 m->rec.r.resrec.RecordType = 0; // Clear RecordType to show we're not still using it in GenerateNegativeResponse() 453 followcname = FollowCNAME(q, &rr->resrec, AddRecord); in AnswerLocalQuestionWithLocalAuthRecord() [all …]
|
D | uDNS.c | 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() [all …]
|
D | DNSCommon.c | 141 if (rr->resrec.InterfaceID == id) used++; in NumCacheRecordsForInterfaceID() 1024 rr->resrec.RecordType = RecordType; in mDNS_SetupResourceRecord() 1025 rr->resrec.InterfaceID = InterfaceID; in mDNS_SetupResourceRecord() 1026 rr->resrec.name = &rr->namestorage; in mDNS_SetupResourceRecord() 1027 rr->resrec.rrtype = rrtype; in mDNS_SetupResourceRecord() 1028 rr->resrec.rrclass = kDNSClass_IN; in mDNS_SetupResourceRecord() 1029 rr->resrec.rroriginalttl = ttl; in mDNS_SetupResourceRecord() 1030 rr->resrec.rDNSServer = mDNSNULL; in mDNS_SetupResourceRecord() 1036 rr->resrec.rdata = RDataStorage; in mDNS_SetupResourceRecord() 1039 rr->resrec.rdata = &rr->rdatastorage; in mDNS_SetupResourceRecord() [all …]
|
D | DNSDigest.c | 1357 tsig.resrec.rrclass = kDNSQClass_ANY; in DNSDigest_SignMessage() 1362 tsig.resrec.rroriginalttl = 0; in DNSDigest_SignMessage() 1363 MD5_Update(&c, (mDNSu8 *)&tsig.resrec.rroriginalttl, sizeof(tsig.resrec.rroriginalttl)); in DNSDigest_SignMessage() 1366 AssignDomainName(&tsig.resrec.rdata->u.name, &HMAC_MD5_AlgName); in DNSDigest_SignMessage() 1368 rdata = tsig.resrec.rdata->u.data + len; in DNSDigest_SignMessage() 1422 tsig.resrec.rdlength = (mDNSu16)(rdata - tsig.resrec.rdata->u.data); in DNSDigest_SignMessage() 1423 *end = PutResourceRecordTTLJumbo(msg, ptr, &numAdditionals, &tsig.resrec, 0); in DNSDigest_SignMessage() 1433 mDNSu8 * ptr = (mDNSu8*) &lcr->r.resrec.rdata->u.data; in DNSDigest_VerifyMessage() 1518 MD5_Update(&c, lcr->r.resrec.name->c, DomainNameLength(lcr->r.resrec.name)); in DNSDigest_VerifyMessage() 1522 buf = mDNSOpaque16fromIntVal(lcr->r.resrec.rrclass); in DNSDigest_VerifyMessage() [all …]
|
D | mDNSEmbeddedAPI.h | 1195 ResourceRecord resrec; // 36 bytes when compiling for 32-bit; 48 when compiling for 64-bit member 1293 …define AuthRecord_uDNS(R) ((R)->resrec.InterfaceID == mDNSInterface_Any && !(R)->ForceMCast && !Is… 1334 ResourceRecord resrec; // 36 bytes when compiling for 32-bit; 48 when compiling for 64-bit member 1480 (X)->AutoTunnelHostRecord.resrec.RecordType == kDNSRecordTypeUnregistered && \ 1481 (X)->AutoTunnelDeviceInfo.resrec.RecordType == kDNSRecordTypeUnregistered && \ 1482 (X)->AutoTunnelService. resrec.RecordType == kDNSRecordTypeUnregistered && \ 1483 (X)->AutoTunnel6Record. resrec.RecordType == kDNSRecordTypeUnregistered ) 2385 #define ARDisplayString(m, rr) GetRRDisplayString_rdb(&(rr)->resrec, &(rr)->resrec.rdata->u, (m)->M… 2386 #define CRDisplayString(m, rr) GetRRDisplayString_rdb(&(rr)->resrec, &(rr)->resrec.rdata->u, (m)->M…
|
D | DNSCommon.h | 177 #define LocalRecordReady(X) ((X)->resrec.RecordType != kDNSRecordTypeUnique)
|
/external/mdnsresponder/mDNSPosix/ |
D | ProxyResponder.c | 58 debugf("Host name successfully registered: %##s", rr->resrec.name->c); in HostNameCallback() 61 debugf("Host name conflict for %##s", rr->resrec.name->c); in HostNameCallback() 84 p->RR_A. resrec.rdata->u.ipv4 = p->ip; in mDNS_RegisterProxyHost() 85 AssignDomainName(&p->RR_PTR.resrec.rdata->u.name, p->RR_A.resrec.name); in mDNS_RegisterProxyHost() 90 debugf("Made Proxy Host Records for %##s", p->RR_A.resrec.name->c); in mDNS_RegisterProxyHost() 106 …case mStatus_NoError: debugf("Callback: %##s Name Registered", sr->RR_SRV.resrec.name->c);… in ServiceCallback() 107 …case mStatus_NameConflict: debugf("Callback: %##s Name Conflict", sr->RR_SRV.resrec.name->c);… in ServiceCallback() 108 …case mStatus_MemFree: debugf("Callback: %##s Memory Free", sr->RR_SRV.resrec.name->c);… in ServiceCallback() 109 …default: debugf("Callback: %##s Unknown Result %ld", sr->RR_SRV.resrec.name->c, … in ServiceCallback() 115 ConvertDomainNameToCString(sr->RR_SRV.resrec.name, buffer); in ServiceCallback() [all …]
|
D | NetMonitor.c | 469 …if (m->rec.r.resrec.RecordType != kDNSRecordTypePacketNegative && ResourceRecordAnswersQuestion(&p… in FindUpdate() 637 DisplayResourceRecord(srcaddr, ucbit ? "(PU)" : "(PM)", &pkt.r.resrec); in DisplayQuery() 658 DisplayResourceRecord(srcaddr, "(KA)", &pkt.r.resrec); in DisplayQuery() 664 recordstat(entry, pkt.r.resrec.name, OP_query, pkt.r.resrec.rrtype); in DisplayQuery() 674 …if (pkt.r.resrec.rrtype || pkt.r.resrec.rrclass) DisplayResourceRecord(srcaddr, "(AU)", &pkt.r.res… in DisplayQuery() 682 …DisplayResourceRecord(srcaddr, pkt.r.resrec.rrtype == kDNSType_OPT ? "(OP)" : "(AD)", &pkt.r.resre… in DisplayQuery() 716 if (pkt.r.resrec.rroriginalttl) in DisplayResponse() 719 …layResourceRecord(srcaddr, (pkt.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask) ? "(AN)" : "… in DisplayResponse() 720 …msg->h.id.NotAnInteger != 0xFFFF) recordstat(entry, pkt.r.resrec.name, OP_answer, pkt.r.resrec.rrt… in DisplayResponse() 721 if (entry) RecordHostInfo(entry, &pkt.r.resrec); in DisplayResponse() [all …]
|
D | Responder.c | 366 debugf("Callback: %##s Name Registered", thisRegistration->RR_SRV.resrec.name->c); in RegistrationCallback() 372 debugf("Callback: %##s Name Conflict", thisRegistration->RR_SRV.resrec.name->c); in RegistrationCallback() 390 debugf("Callback: %##s Memory Free", thisRegistration->RR_SRV.resrec.name->c); in RegistrationCallback() 410 … debugf("Callback: %##s Unknown Status %ld", thisRegistration->RR_SRV.resrec.name->c, status); in RegistrationCallback()
|
/external/mdnsresponder/mDNSShared/ |
D | dnsextd.c | 570 …if ( lcr.r.resrec.rrtype == kDNSType_OPT && lcr.r.resrec.rdlength >= DNSOpt_LLQData_Space && lcr.r… in IsLLQRequest() 789 if (orig->resrec.rdlength > InlineCacheRDSize) size += orig->resrec.rdlength - InlineCacheRDSize; in CopyCacheRecord() 793 cr->resrec.rdata = (RData*)&cr->smallrdatastorage; in CopyCacheRecord() 794 cr->resrec.name = name; in CopyCacheRecord() 821 bucket = ptr->rr.resrec.namehash % newnbuckets; in RehashTable() 854 GetRRDisplayString_rdb(&ptr->rr.resrec, &ptr->rr.resrec.rdata->u, rrbuf)); in PrintLeaseTable() 889 rr.resrec.rrclass = kDNSClass_IN; in PutUpdateSRV() 890 rr.resrec.rdata->u.srv.priority = 0; in PutUpdateSRV() 891 rr.resrec.rdata->u.srv.weight = 0; in PutUpdateSRV() 892 rr.resrec.rdata->u.srv.port = port; in PutUpdateSRV() [all …]
|
D | uds_daemon.c | 540 rr->resrec.rrclass = class; in read_rr_from_ipc_msg() 541 rr->resrec.rdlength = rdlen; in read_rr_from_ipc_msg() 542 rr->resrec.rdata->MaxRDLength = rdlen; in read_rr_from_ipc_msg() 543 mDNSPlatformMemCopy(rr->resrec.rdata->u.data, rdata, rdlen); in read_rr_from_ipc_msg() 544 if (GetTTL) rr->resrec.rroriginalttl = ttl; in read_rr_from_ipc_msg() 545 rr->resrec.namehash = DomainNameHashValue(rr->resrec.name); in read_rr_from_ipc_msg() 546 SetNewRData(&rr->resrec, mDNSNULL, 0); // Sets rr->rdatahash for us in read_rr_from_ipc_msg() 631 external_start_advertising_service(&st[i].resrec); in external_start_advertising_helper() 633 external_start_advertising_service(&instance->srs.RR_PTR.resrec); in external_start_advertising_helper() 634 external_start_advertising_service(&instance->srs.RR_TXT.resrec); in external_start_advertising_helper() [all …]
|
D | dnssd_clientshim.c | 155 if (extras->r.resrec.rdata != &extras->r.rdatastorage) in FreeDNSServiceRegistration() 156 mDNSPlatformMemFree(extras->r.resrec.rdata); in FreeDNSServiceRegistration() 160 if (x->s.RR_TXT.resrec.rdata != &x->s.RR_TXT.rdatastorage) in FreeDNSServiceRegistration() 161 mDNSPlatformMemFree(x->s.RR_TXT.resrec.rdata); in FreeDNSServiceRegistration() 189 if (!DeconstructServiceName(sr->RR_SRV.resrec.name, &name, &type, &dom)) return; in RegCallback()
|
D | uds_daemon.h | 30 #define SRS_PORT(S) mDNSVal16((S)->RR_SRV.resrec.rdata->u.srv.port)
|
/external/openscreen/osp/impl/discovery/mdns/ |
D | mdns_responder_adapter_impl.cc | 1012 interface_info.RR_A.resrec.rdata->u.ipv4 = interface_info.ip.ip.v4; in AdvertiseInterfaces() 1014 interface_info.RR_A.resrec.rdata->u.ipv6 = interface_info.ip.ip.v6; in AdvertiseInterfaces()
|