/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 …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/ |
D | dns-proto.h | 23 std::string RRTypeToString(int rrtype); 44 DNSQuestion(const std::string& name, ns_type rrtype, ns_class qclass) in DNSQuestion() 45 : name_(name), rrtype_(rrtype), qclass_(qclass) {} in DNSQuestion() 46 DNSQuestion(const std::string& name, ns_type rrtype) in DNSQuestion() 47 : name_(name), rrtype_(rrtype), qclass_(ns_c_in) {} in DNSQuestion() 56 DNSRR(const std::string& name, ns_type rrtype, ns_class qclass, int ttl) in DNSRR() 57 : DNSQuestion(name, rrtype, qclass), ttl_(ttl) {} in DNSRR() 58 DNSRR(const std::string& name, ns_type rrtype, int ttl) in DNSRR() 59 : DNSQuestion(name, rrtype), ttl_(ttl) {} in DNSRR() 66 DNSAddressRR(const std::string& name, ns_type rrtype, int ttl, in DNSAddressRR() [all …]
|
D | dns-proto.cc | 84 std::string RRTypeToString(int rrtype) { in RRTypeToString() argument 85 switch (rrtype) { in RRTypeToString() 294 int rrtype = DNS_RR_TYPE(*data); in RRToString() local 295 if (rrtype == ns_t_opt) { in RRToString() 297 ss << RRTypeToString(rrtype) << " "; in RRToString() 301 ss << RRTypeToString(rrtype) << " "; in RRToString() 311 switch (rrtype) { in RRToString()
|
/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 …]
|
/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 | 1197 uint16_t rrtype, rrclass, rdlen; in handle_query_response() local 1201 rrtype = get_uint16(&data, end); in handle_query_response() 1208 …->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err, name, rrtype, rrclass, rdlen, r… in handle_query_response() 1218 uint16_t rrtype, in DNSServiceQueryRecord() argument 1244 put_uint16(rrtype, &ptr); in DNSServiceQueryRecord() 1255 uint16_t rrtype, rrclass, rdlen; in handle_addrinfo_response() local 1260 rrtype = get_uint16(&data, end); in handle_addrinfo_response() 1271 else if (rrtype == kDNSServiceType_A || rrtype == kDNSServiceType_AAAA) in handle_addrinfo_response() 1275 …const struct sockaddr *const sa = (rrtype == kDNSServiceType_A) ? (struct sockaddr*)&sa4 : (struct… in handle_addrinfo_response() 1276 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 …]
|
/external/mdnsresponder/mDNSWindows/DLL.NET/ |
D | dnssd_NET.h | 279 int rrtype, 389 uint16_t rrtype, 910 int rrtype, 1263 int rrtype, 1310 int rrtype, 1355 int rrtype, 1386 int rrtype,
|
D | dnssd_NET.cpp | 262 int rrtype, in QueryRecordDispatch() argument 271 OnQueryRecordReply(this, flags, interfaceIndex, errorCode, fullname, rrtype, rrclass, rdata, ttl); in QueryRecordDispatch() 615 uint16_t rrtype, in QueryRecordCallback() argument 639 … (int) interfaceIndex, (ErrorCode) errorCode, ConvertToString(fullname), rrtype, rrclass, rdataByt… in QueryRecordCallback() 737 int rrtype, in AddRecord() argument 755 …int err = DNSServiceAddRecord(sdRef->m_impl->m_ref, &record->m_impl->m_ref, flags, rrtype, len, v,… in AddRecord() 940 int rrtype, in RegisterRecord() argument 960 …_ref, &record->m_impl->m_ref, flags, interfaceIndex, pFullname->c_str(), rrtype, rrclass, len, v, … in RegisterRecord() 983 int rrtype, in QueryRecord() argument 991 …Record(&sdRef->m_impl->m_ref, flags, interfaceIndex, pFullname->c_str(), rrtype, rrclass, (DNSServ… in QueryRecord() [all …]
|
/external/mdnsresponder/mDNSWindows/DLLX/ |
D | DNSSDService.h | 312 uint16_t rrtype, 408 …STDMETHOD(QueryRecord)(DNSSDFlags flags, ULONG ifIndex, BSTR fullname, DNSSDRRType rrtype, DNSSDRR… 410 …STDMETHOD(RegisterRecord)(DNSSDFlags flags, ULONG ifIndex, BSTR fullname, DNSSDRRType rrtype, DNSS… 412 …STDMETHOD(AddRecord)(DNSSDFlags flags, DNSSDRRType rrtype, VARIANT rdata, ULONG ttl, IDNSSDRecord … 414 …STDMETHOD(ReconfirmRecord)(DNSSDFlags flags, ULONG ifIndex, BSTR fullname, DNSSDRRType rrtype, DNS…
|
D | DNSSDService.cpp | 638 …:QueryRecord(DNSSDFlags flags, ULONG ifIndex, BSTR fullname, DNSSDRRType rrtype, DNSSDRRClass rrcl… in QueryRecord() argument 700 …ServiceFlagsShareConnection, ifIndex, fullNameUTF8.c_str(), ( uint16_t ) rrtype, ( uint16_t ) rrcl… in QueryRecord() 740 …gisterRecord(DNSSDFlags flags, ULONG ifIndex, BSTR fullName, DNSSDRRType rrtype, DNSSDRRClass rrcl… in RegisterRecord() argument 812 …err = DNSServiceRegisterRecord( m_primary, &rref, flags, ifIndex, fullNameUTF8.c_str(), rrtype, rr… in RegisterRecord() 852 STDMETHODIMP CDNSSDService::AddRecord(DNSSDFlags flags, DNSSDRRType rrtype, VARIANT rdata, ULONG tt… in AddRecord() argument 914 …err = DNSServiceAddRecord( m_primary, &rref, flags, rrtype, ( uint16_t ) byteArray.size(), byteArr… in AddRecord() 950 …onfirmRecord(DNSSDFlags flags, ULONG ifIndex, BSTR fullName, DNSSDRRType rrtype, DNSSDRRClass rrcl… in ReconfirmRecord() argument 984 …err = DNSServiceReconfirmRecord( flags, ifIndex, fullNameUTF8.c_str(), rrtype, rrclass, ( uint16_t… in ReconfirmRecord() 1720 uint16_t rrtype, in QueryRecordReply() argument 1766 …wered( service, ( DNSSDFlags ) flags, ifIndex, fullName, ( DNSSDRRType ) rrtype, ( DNSSDRRClass ) … in QueryRecordReply()
|
D | DLLX.idl | 338 …SSDFlags flags, [in] ULONG ifIndex, [in] BSTR fullname, [in] DNSSDRRType rrtype, [in] DNSSDRRClass… 340 …SSDFlags flags, [in] ULONG ifIndex, [in] BSTR fullname, [in] DNSSDRRType rrtype, [in] DNSSDRRClass… 342 …d AddRecord")] HRESULT AddRecord([in] DNSSDFlags flags, [in] DNSSDRRType rrtype, [in] VARIANT rdat… 344 …SSDFlags flags, [in] ULONG ifIndex, [in] BSTR fullname, [in] DNSSDRRType rrtype, [in] DNSSDRRClass… 400 …SSDFlags flags, [in] ULONG ifIndex, [in] BSTR fullName, [in] DNSSDRRType rrtype, [in] DNSSDRRClass…
|
/external/libcups/vcnet/ |
D | dns_sd.c | 21 …rviceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, c… 26 …viceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass,… 93 uint16_t rrtype, in DNSServiceAddRecord() argument 103 return (*dnssd_add_record)(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl); in DNSServiceAddRecord() 183 uint16_t rrtype, in DNSServiceQueryRecord() argument 193 …return (*dnssd_query_record)(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, co… in DNSServiceQueryRecord()
|
D | dns_sd.h | 1084 uint16_t rrtype, 1452 uint16_t rrtype, 1506 uint16_t rrtype, 1734 uint16_t rrtype, 1782 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/mdnsresponder/mDNSWindows/DLLStub/ |
D | DLLStub.cpp | 187 uint16_t rrtype, in DNSServiceAddRecord() argument 199 ret = func( sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl ); in DNSServiceAddRecord() 348 uint16_t rrtype, in DNSServiceRegisterRecord() argument 363 …ret = func( sdRef, RecordRef, flags, interfaceIndex, fullname, rrtype, rrclass, rdlen, rdata, ttl,… in DNSServiceRegisterRecord() 377 uint16_t rrtype, in DNSServiceQueryRecord() argument 389 ret = func( sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context ); in DNSServiceQueryRecord() 402 uint16_t rrtype, in DNSServiceReconfirmRecord() argument 414 ret = func( flags, interfaceIndex, fullname, rrtype, rrclass, rdlen, rdata ); in DNSServiceReconfirmRecord()
|
/external/libwebsockets/lib/system/async-dns/ |
D | async-dns-parse.c | 158 uint16_t rrtype, rrpaylen; in lws_adns_iterate() local 247 rrtype = lws_ser_ru16be(&p[0]); in lws_adns_iterate() 287 switch (rrtype) { in lws_adns_iterate() 309 cb(stack[0].name, opaque, ttl, rrtype, p); in lws_adns_iterate()
|
/external/libcups/backend/ |
D | dnssd.c | 107 …faceIndex, DNSServiceErrorType errorCode, const char *fullName, uint16_t rrtype, uint16_t rrclass,… 117 uint16_t rrtype, const void *rdata, 960 uint16_t rrtype, /* I - Record type */ argument 981 uint16_t rrtype, /* I - Record type */ 1010 … sdRef, flags, interfaceIndex, errorCode, fullName, rrtype, rrclass, rdlen, rdata, ttl, context); 1023 …browser, interfaceIndex, protocol, event, fullName, rrclass, rrtype, rdata, (unsigned)rdlen, flags…
|
/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()
|