/external/mdnsresponder/mDNSCore/ |
D | DNSCommon.h | 142 (r1)->rrtype == (r2)->rrtype && \ 151 (r1)->rrtype == (r2)->rrtype && \ 159 #define RRTypeAnswersQuestionType(R,Q) ((R)->rrtype == kDNSType_CNAME || (R)->rrtype == (Q) || (Q) … 160 #define RRAssertsNonexistence(R,T) ((R)->rrtype == kDNSType_NSEC && (T) < kDNSQType_ANY && !((R)->r… 170 extern mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd); 173 …((RR)->rrtype == kDNSType_NS || (RR)->rrtype == kDNSType_CNAME || (RR)->rrtype == kDNSType_PTR || … 174 …((RR)->rrtype == kDNSType_MX || (RR)->rrtype == kDNSType_AFSDB || (RR)->rrtype == kDNSType_RT || … 175 …((RR)->rrtype == kDNSType_SRV ) ? &(RR)->rdata->u.srv.target : mD… 212 …u8 *ptr, const mDNSu8 *const limit, const domainname *const name, mDNSu16 rrtype, mDNSu16 rrclass); 217 …RSetWithLimit(DNSMessage *msg, mDNSu8 *ptr, const domainname *name, mDNSu16 rrtype, mDNSu8 *limit);
|
D | DNSCommon.c | 145 mDNSexport char *DNSTypeName(mDNSu16 rrtype) in DNSTypeName() argument 147 switch (rrtype) in DNSTypeName() 165 mDNS_snprintf(buffer, sizeof(buffer), "(%d)", rrtype); in DNSTypeName() 179 …DNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTypeName(rr->rrtype)); in GetRRDisplayString_rdb() 183 switch (rr->rrtype) in GetRRDisplayString_rdb() 992 …mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, v… in mDNS_SetupResourceRecord() argument 1021 ttl = DefaultTTLforRRType(rrtype); in mDNS_SetupResourceRecord() 1027 rr->resrec.rrtype = rrtype; in mDNS_SetupResourceRecord() 1115 switch(rr->rrtype) in RDataHashValue() 1169 switch(r1->rrtype) in SameRDataBody() [all …]
|
D | mDNS.c | 119 ((rr)->resrec.rrtype == kDNSType_A || (rr)->resrec.rrtype == kDNSType_AAAA || \ 120 (rr)->resrec.rrtype == kDNSType_CNAME)) 124 (rr)->rrtype == kDNSType_CNAME) 613 #define SameResourceRecordSignature(A,B) (A)->resrec.rrtype == (B)->resrec.rrtype && SameResourceRe… 644 if (pktrr->resrec.rrtype != authrr->resrec.rrtype) return(mDNSfalse); in PacketRRMatchesSignature() 777 if (rr->WakeUp.HMAC.l[0] && rr->resrec.rrtype == kDNSType_AAAA) in InitializeLastAPTime() 822 …tTargetToHostName: Don't know how to set the target of rrtype %s", DNSTypeName(rr->resrec.rrtype)); in SetTargetToHostName() 849 rr->resrec.name->c, DNSTypeName(rr->resrec.rrtype)); in SetTargetToHostName() 876 if (rr->resrec.rrtype != kDNSType_SRV) in ActivateUnicastRegistration() 879 if (rr->resrec.rrtype == kDNSType_PTR) in ActivateUnicastRegistration() [all …]
|
D | uDNS.c | 1470 if (answer->rrtype != question->qtype) return; // Don't care about CNAMEs in GetZoneData_QuestionCallback() 1472 if (answer->rrtype == kDNSType_SOA) in GetZoneData_QuestionCallback() 1508 else if (answer->rrtype == kDNSType_SRV) in GetZoneData_QuestionCallback() 1543 else if (answer->rrtype == kDNSType_A) in GetZoneData_QuestionCallback() 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() 1843 if (rr->resrec.rrtype != kDNSType_SRV) in StartRecordNatMap() [all …]
|
D | mDNSEmbeddedAPI.h | 1083 mDNSu16 rrtype; member 2207 …mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, v… 2371 extern char *DNSTypeName(mDNSu16 rrtype); 2723 …const domainname *const name, const mDNSu32 namehash, const mDNSu16 rrtype, const mDNSu16 rrclass,…
|
/external/mdnsresponder/mDNSPosix/ |
D | Identify.c | 113 if (answer->rrtype == kDNSType_PTR || answer->rrtype == kDNSType_CNAME) in NameCallback() 117 mprintf("%##s %s %##s\n", answer->name->c, DNSTypeName(answer->rrtype), answer->rdata->u.name.c); in NameCallback() 126 if (answer->rrtype == kDNSType_A) in InfoCallback() 131 mprintf("%##s %s %.4a\n", answer->name->c, DNSTypeName(answer->rrtype), &answer->rdata->u.ipv4); in InfoCallback() 135 else if (answer->rrtype == kDNSType_AAAA) in InfoCallback() 140 mprintf("%##s %s %.16a\n", answer->name->c, DNSTypeName(answer->rrtype), &answer->rdata->u.ipv6); in InfoCallback() 147 else if (answer->rrtype == kDNSType_HINFO) in InfoCallback() 171 if (answer->rrtype == kDNSType_PTR && mDNSSameAddress(&lastsrc, &target)) in ServicesCallback() 174 mprintf("%##s %s %##s\n", answer->name->c, DNSTypeName(answer->rrtype), answer->rdata->u.name.c); in ServicesCallback()
|
D | NetMonitor.c | 268 if (pktrr->rrtype == kDNSType_A || pktrr->rrtype == kDNSType_AAAA) in RecordHostInfo() 275 if (pktrr->rrtype == kDNSType_PTR) in RecordHostInfo() 282 else if (pktrr->rrtype == kDNSType_HINFO) in RecordHostInfo() 297 mDNSlocal void SendUnicastQuery(mDNS *const m, HostEntry *entry, domainname *name, mDNSu16 rrtype, … in SendUnicastQuery() argument 305 qptr = putQuestion(&query, qptr, limit, name, rrtype, kDNSClass_IN); in SendUnicastQuery() 406 mDNSlocal void recordstat(HostEntry *entry, const domainname *fqdn, int op, mDNSu16 rrtype) in recordstat() argument 413 if (rrtype == kDNSType_SRV || rrtype == kDNSType_TXT) op = op - OP_browsegroup + OP_resolvegroup; in recordstat() 414 else if (rrtype != kDNSType_PTR) return; in recordstat() 512 …int n = mprintf("%#-16a %-5s %-5s%5lu %##s -> ", srcaddr, op, DNSTypeName(pktrr->rrtype), pktrr->r… in DisplayResourceRecord() 518 switch(pktrr->rrtype) in DisplayResourceRecord() [all …]
|
D | nss_mdns.c | 217 rr_to_af (ns_type_t rrtype); 579 uint16_t rrtype, 854 ns_type_t rrtype; in mdns_lookup_name() local 866 rrtype = kDNSServiceType_A; in mdns_lookup_name() 872 rrtype = kDNSServiceType_AAAA; in mdns_lookup_name() 892 rrtype, // resource record type in mdns_lookup_name() 1065 uint16_t rrtype, in mdns_lookup_callback() argument 1101 rrtype, in mdns_lookup_callback() 1102 ns_type_to_str (rrtype) in mdns_lookup_callback() 1108 if (rrtype == kDNSServiceType_PTR) in mdns_lookup_callback() [all …]
|
D | Client.c | 55 assert(answer->rrtype == kDNSType_PTR); in BrowseCallback()
|
/external/mdnsresponder/mDNSShared/ |
D | dnssd_clientshim.c | 309 uint16_t rrtype, in DNSServiceAddRecord() argument 318 (void)rrtype; // Unused in DNSServiceAddRecord() 380 if (answer->rrtype != kDNSType_PTR) in FoundInstance() 381 …{ LogMsg("FoundInstance: Should not be called with rrtype %d (not a PTR record)", answer->rrtype);… in FoundInstance() 461 if (answer->rrtype == kDNSType_SRV && x->SRV == answer) x->SRV = mDNSNULL; in FoundServiceInfo() 462 if (answer->rrtype == kDNSType_TXT && x->TXT == answer) x->TXT = mDNSNULL; in FoundServiceInfo() 466 if (answer->rrtype == kDNSType_SRV) x->SRV = answer; in FoundServiceInfo() 467 if (answer->rrtype == kDNSType_TXT) x->TXT = answer; in FoundServiceInfo() 594 uint16_t rrtype, in DNSServiceRegisterRecord() argument 608 (void)rrtype; // Unused in DNSServiceRegisterRecord() [all …]
|
D | dns_sd.h | 1084 uint16_t rrtype, 1452 uint16_t rrtype, 1506 uint16_t rrtype, 1734 uint16_t rrtype, 1782 uint16_t rrtype,
|
D | dnssd_clientstub.c | 1190 uint16_t rrtype, rrclass, rdlen; in handle_query_response() local 1194 rrtype = get_uint16(&data, end); in handle_query_response() 1201 …->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err, name, rrtype, rrclass, rdlen, r… in handle_query_response() 1211 uint16_t rrtype, in DNSServiceQueryRecord() argument 1237 put_uint16(rrtype, &ptr); in DNSServiceQueryRecord() 1248 uint16_t rrtype, rrclass, rdlen; in handle_addrinfo_response() local 1253 rrtype = get_uint16(&data, end); in handle_addrinfo_response() 1264 else if (rrtype == kDNSServiceType_A || rrtype == kDNSServiceType_AAAA) in handle_addrinfo_response() 1268 …const struct sockaddr *const sa = (rrtype == kDNSServiceType_A) ? (struct sockaddr*)&sa4 : (struct… in handle_addrinfo_response() 1269 if (rrtype == kDNSServiceType_A) in handle_addrinfo_response() [all …]
|
D | uds_daemon.c | 726 …if (rr->resrec.rrtype == kDNSType_SRV && SameDomainName(rr->resrec.name, r->name) && !IdenticalSam… in CountPeerRegistrations() 738 if (rr->resrec.rrtype == kDNSType_SRV && in CountExistingRegistrations() 1005 …rr->resrec.rrclass == kDNSClass_IN && (rr->resrec.rrtype == kDNSType_A || rr->resrec.rrtype == kDN… in handle_regrecord_request() 1006 rr->resrec.rrtype == kDNSType_CNAME)) in handle_regrecord_request() 1028 rr->resrec.rroriginalttl = DefaultTTLforRRType(rr->resrec.rrtype); in handle_regrecord_request() 1091 …d_to_service(request_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, co… in add_record_to_service() argument 1100 extra->r.resrec.rrtype = rrtype; in add_record_to_service() 1123 mDNSu16 rrtype = get_uint16(&request->msgptr, request->msgend); in handle_add_request() local 1127 if (!ttl) ttl = DefaultTTLforRRType(rrtype); in handle_add_request() 1144 …) ? request->u.servicereg.instances->srs.RR_SRV.resrec.name->c : NULL, DNSTypeName(rrtype), rdlen); in handle_add_request() [all …]
|
D | dnsextd.c | 570 …if ( lcr.r.resrec.rrtype == kDNSType_OPT && lcr.r.resrec.rdlength >= DNSOpt_LLQData_Space && lcr.r… in IsLLQRequest() 871 ptr[0] = (mDNSu8)(rr->rrtype >> 8); in putRRSetDeletion() 872 ptr[1] = (mDNSu8)(rr->rrtype & 0xFF); in putRRSetDeletion() 1404 …if (rr->rrtype == kDNSQType_ANY && !rr->rroriginalttl && rr->rrclass == kDNSQClass_ANY && !rr->rdl… in UpdateLeaseTable() 1417 (DeleteOneRRSet && (*rptr)->rr.resrec.rrtype == rr->rrtype) || in UpdateLeaseTable() 1801 …if (lcr.r.resrec.rrtype != e->type || lcr.r.resrec.rrclass != kDNSClass_IN || !SameDomainName(lcr.… in AnswerQuestion() 1804 lcr.r.resrec.name->c, lcr.r.resrec.rrtype, e->name.c, e->type); in AnswerQuestion() 2353 …if (opt.r.resrec.RecordType != kDNSRecordTypePacketNegative && opt.r.resrec.rrtype == kDNSType_OPT… in RecvLLQ() 2357 …if (opt.r.resrec.rrtype != kDNSType_OPT) { Log("Malformatted LLQ from %s: last Additional not an O… in RecvLLQ() 2422 … lcr.r.resrec.RecordType != kDNSRecordTypePacketNegative && lcr.r.resrec.rrtype == kDNSType_TSIG ); in IsAuthorized()
|
/external/avahi/avahi-compat-libdns_sd/ |
D | unsupported.c | 35 AVAHI_GCC_UNUSED uint16_t rrtype, in DNSServiceRegisterRecord() argument 52 AVAHI_GCC_UNUSED uint16_t rrtype, in DNSServiceReconfirmRecord() argument 72 AVAHI_GCC_UNUSED uint16_t rrtype, in DNSServiceAddRecord() argument
|
D | dns_sd.h | 711 uint16_t rrtype, 1128 uint16_t rrtype, 1182 uint16_t rrtype, 1235 uint16_t rrtype, 1273 uint16_t rrtype,
|
/external/autotest/client/cros/netprotos/ |
D | zeroconf.py | 409 def cached_results(self, rrname, rrtype, timestamp=None): argument 436 if not rrtype in self._peer_records[rrname]: 439 for data, data_ts in self._peer_records[rrname][rrtype].iteritems(): 441 res.append(DnsRecord(rrname, rrtype, data, data_ts)) 457 queries = [dpkt.dns.DNS.Q(name=rrname, type=rrtype) 458 for rrname, rrtype in queries]
|
D | cros_p2p.py | 139 for rrname, rrtype, data in answers: 140 if rrname == self._p2p_domain and rrtype == dpkt.dns.DNS_PTR:
|
/external/avahi/avahi-compat-howl/samples/ |
D | query.c | 41 sw_uint16 rrtype, in query_record_reply() argument 52 if ((rrtype == 1) && (rrclass == 1)) in query_record_reply()
|
/external/avahi/avahi-compat-howl/include/discovery/ |
D | discovery.h | 143 sw_uint16 rrtype, 255 sw_uint16 rrtype,
|
/external/mdnsresponder/Clients/ |
D | dns-sd.c | 680 …const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32… in qr_reply() argument 700 switch (rrtype) in qr_reply() 738 printf("%s%6X%3d %-30s%4d%4d %s", op, flags, ifIndex, fullname, rrtype, rrclass, rdb); in qr_reply() 754 DNSServiceReconfirmRecord(flags, ifIndex, fullname, rrtype, rrclass, rdlen, rdata); in qr_reply() 1172 uint16_t rrtype, rrclass; in main() local 1177 rrtype = (argc <= opi+1) ? kDNSServiceType_A : GetRRType(argv[opi+1]); in main() 1179 …if (rrtype == kDNSServiceType_TXT || rrtype == kDNSServiceType_PTR) flags |= kDNSServiceFlagsLongL… in main() 1180 …err = DNSServiceQueryRecord(&client, flags, opinterface, argv[opi+0], rrtype, rrclass, qr_reply, N… in main()
|
/external/avahi/specs/ |
D | draft-cheshire-dnsext-multicastdns-06.txt | 193 responders may have records with that name, rrtype, and rrclass, and 197 that name, rrtype, and rrclass are conceptually under the control 199 one responder should respond to a query for that name, rrtype, and 956 question name, the record rrtype must match the question qtype 995 has previously verified that the name, rrtype and rrclass are unique 1261 its unique resource record set name, rrtype and rrclass cannot 1322 "lexicographically later". If the rrtype and rrclass both match then 1376 but the rrtypes differ, the record with the lower rrtype number comes 1377 first. If the class and rrtype match, then the rdata is compared 1380 the TXT record comes first (the rrtype for TXT is 16) and the SRV [all …]
|
D | draft-cheshire-dnsext-multicastdns-05.txt | 217 responders may have records with that name, rrtype, and rrclass, and 221 name, rrtype, and rrclass are under the control or ownership of a 871 question name, the record rrtype must match the question qtype 923 verified that the requested name, rrtype and rrclass in the DNS query 1113 its unique resource record set name, rrtype and rrclass cannot 1160 'lexicographically later'. If the rrtype and rrclass both match then 1277 of a Multicast DNS response another record with the same name, rrtype 1389 resource record with the same name, rrtype and rrclass as one of A's 1402 resource record with the same name, rrtype and rrclass as one of A's 1427 response packet, giving the same resource record name, rrtype, [all …]
|
/external/avahi/avahi-compat-howl/ |
D | unsupported.c | 991 AVAHI_GCC_UNUSED sw_uint16 rrtype, in sw_discovery_query_record() argument
|