/external/mdnsresponder/mDNSCore/ |
H A 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) == kDNSQType_ANY || RRAssertsNonexistence((R),(Q))) 160 #define RRAssertsNonexistence(R,T) ((R)->rrtype == kDNSType_NSEC && (T) < kDNSQType_ANY && !((R)->rdata->u.nsec.bitmap[(T)>>3] & (128 >> ((T)&7)))) 170 extern mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd); 173 ((RR)->rrtype == kDNSType_NS || (RR)->rrtype [all...] |
H A D | DNSCommon.c | 145 mDNSexport char *DNSTypeName(mDNSu16 rrtype) argument 147 switch (rrtype) 165 mDNS_snprintf(buffer, sizeof(buffer), "(%d)", rrtype); 179 mDNSu32 length = mDNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTypeName(rr->rrtype)); 183 switch (rr->rrtype) 992 mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, void *Context) 1021 ttl = DefaultTTLforRRType(rrtype); 1027 rr->resrec.rrtype = rrtype; 1115 switch(rr->rrtype) 991 mDNS_SetupResourceRecord(AuthRecord *rr, RData *RDataStorage, mDNSInterfaceID InterfaceID, mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, void *Context) argument 1458 ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd) argument 1852 putQuestion(DNSMessage *const msg, mDNSu8 *ptr, const mDNSu8 *const limit, const domainname *const name, mDNSu16 rrtype, mDNSu16 rrclass) argument 1910 putDeleteRRSetWithLimit(DNSMessage *msg, mDNSu8 *ptr, const domainname *name, mDNSu16 rrtype, mDNSu8 *limit) argument 1932 mDNSu16 rrtype = kDNSQType_ANY; local [all...] |
H A 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) 611 // SameResourceRecordNameClassInterface is functionally the same as SameResourceRecordSignature, except rrtype does not have to match 613 #define SameResourceRecordSignature(A,B) (A)->resrec.rrtype == (B)->resrec.rrtype && SameResourceRecordNameClassInterface((A),(B)) 644 if (pktrr->resrec.rrtype != authrr->resrec.rrtype) return(mDNSfalse); 777 if (rr->WakeUp.HMAC.l[0] && rr->resrec.rrtype 7433 MakeNegativeCacheRecord(mDNS *const m, CacheRecord *const cr, const domainname *const name, const mDNSu32 namehash, const mDNSu16 rrtype, const mDNSu16 rrclass, mDNSu32 ttl_seconds, mDNSInterfaceID InterfaceID, DNSServer *dnsserver) argument [all...] |
H A D | uDNS.c | 1470 if (answer->rrtype != question->qtype) return; // Don't care about CNAMEs 1472 if (answer->rrtype == kDNSType_SOA) 1508 else if (answer->rrtype == kDNSType_SRV) 1543 else if (answer->rrtype == kDNSType_A) 1691 if (rr->resrec.rrtype != kDNSType_SRV) { LogMsg("UpdateAllServiceRecords:ERROR!! ResourceRecord not a service record %s", ARDisplayString(m, rr)); return; } 1701 if (r->resrec.rrtype == kDNSType_PTR) 1703 else if (r->resrec.rrtype == kDNSType_TXT) 1705 if (srvRR && srvRR->resrec.rrtype != kDNSType_SRV) 1752 if (rr->resrec.rrtype != kDNSType_SRV) {LogMsg("CompleteRecordNatMap: Not a service record %s", ARDisplayString(m, rr)); return; } 1843 if (rr->resrec.rrtype ! [all...] |
/external/chromium/net/base/ |
H A D | dnssec_keyset.h | 30 // rrtype: the type of the resource records 35 uint16 rrtype,
|
H A D | dnsrr_resolver.h | 99 Handle Resolve(const std::string& name, uint16 rrtype, 114 void HandleResult(const std::string& name, uint16 rrtype, int result, 119 // < name , rrtype>
|
H A D | dnssec_chain_verifier.cc | 237 uint16 DNSSECChainVerifier::rrtype() const { function in class:net::DNSSECChainVerifier 640 uint16 rrtype; local 644 !U16(&rrtype) || 651 if (rrtype == kDNS_DS) { 653 } else if (rrtype == kDNS_CERT || rrtype == kDNS_TXT) { 655 } else if (rrtype == kDNS_CNAME) { 664 *next_name, current_zone_->name, sig, rrtype, rrdatas)) { 668 if (rrtype == kDNS_DS) { 673 } else if (rrtype [all...] |
H A D | dnsrr_resolver.cc | 86 static bool DnsRRIsParsedByWindows(uint16 rrtype) { argument 88 switch (rrtype) { 148 RRResolverWorker(const std::string& name, uint16 rrtype, uint16 flags, argument 151 rrtype_(rrtype), 701 intptr_t DnsRRResolver::Resolve(const std::string& name, uint16 rrtype, argument 713 if (rrtype == kDNS_ANY) 718 const std::pair<std::string, uint16> key(make_pair(name, rrtype)); 757 RRResolverWorker* worker = new RRResolverWorker(name, rrtype, flags, this); 791 void DnsRRResolver::HandleResult(const std::string& name, uint16 rrtype, argument 795 const std::pair<std::string, uint16> key(std::make_pair(name, rrtype)); [all...] |
H A D | dnssec_chain_verifier.h | 50 // rrtype returns the RRTYPE of the proven resource records. Only call this 52 uint16 rrtype() const;
|
H A D | dnssec_keyset.cc | 54 uint16 rrtype, 92 signed_data_len += 2; // rrtype 99 signed_data_len += 2; // rrtype 109 signed_data[j++] = static_cast<uint8>(rrtype >> 8); 110 signed_data[j++] = static_cast<uint8>(rrtype); 120 signed_data[j++] = static_cast<uint8>(rrtype >> 8); 121 signed_data[j++] = static_cast<uint8>(rrtype); 50 CheckSignature( const base::StringPiece& name, const base::StringPiece& zone, const base::StringPiece& signature, uint16 rrtype, const std::vector<base::StringPiece>& rrdatas) argument
|
/external/chromium_org/net/dns/ |
H A D | mdns_client.h | 142 // Create listener object for RRType |rrtype| and name |name|. 144 uint16 rrtype, 149 // network, or both for records of type |rrtype| and name |name|. |flags| is 152 uint16 rrtype,
|
H A D | mdns_client_impl.h | 114 // Send a query with a specific rrtype and name. Returns true on success. 115 bool SendQuery(uint16 rrtype, std::string name); 122 void QueryCache(uint16 rrtype, const std::string& name, 172 uint16 rrtype, 177 uint16 rrtype, 197 MDnsListenerImpl(uint16 rrtype, 234 MDnsTransactionImpl(uint16 rrtype,
|
H A D | mdns_client_impl.cc | 178 bool MDnsClientImpl::Core::SendQuery(uint16 rrtype, std::string name) { argument 183 DnsQuery query(0, name_dns, rrtype); 400 uint16 rrtype, const std::string& name, 402 cache_.FindDnsRecords(rrtype, name, records, base::Time::Now()); 430 uint16 rrtype, 434 new MDnsListenerImpl(rrtype, name, delegate, this)); 438 uint16 rrtype, 443 new MDnsTransactionImpl(rrtype, name, flags, callback, this)); 447 uint16 rrtype, 451 : rrtype_(rrtype), name 399 QueryCache( uint16 rrtype, const std::string& name, std::vector<const RecordParsed*>* records) const argument 429 CreateListener( uint16 rrtype, const std::string& name, MDnsListener::Delegate* delegate) argument 437 CreateTransaction( uint16 rrtype, const std::string& name, int flags, const MDnsTransaction::ResultCallback& callback) argument 446 MDnsListenerImpl( uint16 rrtype, const std::string& name, MDnsListener::Delegate* delegate, MDnsClientImpl* client) argument 492 MDnsTransactionImpl( uint16 rrtype, const std::string& name, int flags, const MDnsTransaction::ResultCallback& callback, MDnsClientImpl* client) argument [all...] |
/external/mdnsresponder/mDNSPosix/ |
H A D | Identify.c | 113 if (answer->rrtype == kDNSType_PTR || answer->rrtype == kDNSType_CNAME) 117 mprintf("%##s %s %##s\n", answer->name->c, DNSTypeName(answer->rrtype), answer->rdata->u.name.c); 126 if (answer->rrtype == kDNSType_A) 131 mprintf("%##s %s %.4a\n", answer->name->c, DNSTypeName(answer->rrtype), &answer->rdata->u.ipv4); 135 else if (answer->rrtype == kDNSType_AAAA) 140 mprintf("%##s %s %.16a\n", answer->name->c, DNSTypeName(answer->rrtype), &answer->rdata->u.ipv6); 147 else if (answer->rrtype == kDNSType_HINFO) 171 if (answer->rrtype == kDNSType_PTR && mDNSSameAddress(&lastsrc, &target)) 174 mprintf("%##s %s %##s\n", answer->name->c, DNSTypeName(answer->rrtype), answe [all...] |
H A D | NetMonitor.c | 268 if (pktrr->rrtype == kDNSType_A || pktrr->rrtype == kDNSType_AAAA) 275 if (pktrr->rrtype == kDNSType_PTR) 282 else if (pktrr->rrtype == kDNSType_HINFO) 297 mDNSlocal void SendUnicastQuery(mDNS *const m, HostEntry *entry, domainname *name, mDNSu16 rrtype, mDNSInterfaceID InterfaceID) argument 305 qptr = putQuestion(&query, qptr, limit, name, rrtype, kDNSClass_IN); 406 mDNSlocal void recordstat(HostEntry *entry, const domainname *fqdn, int op, mDNSu16 rrtype) argument 413 if (rrtype == kDNSType_SRV || rrtype == kDNSType_TXT) op = op - OP_browsegroup + OP_resolvegroup; 414 else if (rrtype ! [all...] |
H A D | nss_mdns.c | 209 rrtype 217 rr_to_af (ns_type_t rrtype); 579 uint16_t rrtype, 854 ns_type_t rrtype; local 866 rrtype = kDNSServiceType_A; 872 rrtype = kDNSServiceType_AAAA; 892 rrtype, // resource record type 1065 uint16_t rrtype, 1101 rrtype, 1102 ns_type_to_str (rrtype) 1058 mdns_lookup_callback( DNSServiceRef sdref, DNSServiceFlags flags, uint32_t interface_index, DNSServiceErrorType error_code, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context ) argument 2273 rr_to_af(ns_type_t rrtype) argument [all...] |
H A D | Client.c | 55 assert(answer->rrtype == kDNSType_PTR);
|
/external/mdnsresponder/mDNSShared/ |
H A D | dnssd_clientshim.c | 294 uint16_t rrtype, 303 (void)rrtype; // Unused 365 if (answer->rrtype != kDNSType_PTR) 366 { LogMsg("FoundInstance: Should not be called with rrtype %d (not a PTR record)", answer->rrtype); return; } 446 if (answer->rrtype == kDNSType_SRV && x->SRV == answer) x->SRV = mDNSNULL; 447 if (answer->rrtype == kDNSType_TXT && x->TXT == answer) x->TXT = mDNSNULL; 451 if (answer->rrtype == kDNSType_SRV) x->SRV = answer; 452 if (answer->rrtype == kDNSType_TXT) x->TXT = answer; 579 uint16_t rrtype, 289 DNSServiceAddRecord( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl ) argument 572 DNSServiceRegisterRecord( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, DNSServiceRegisterRecordReply callback, void *context ) argument 624 DNSServiceQueryRecord( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callback, void *context ) argument 767 DNSServiceReconfirmRecord( DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata ) argument [all...] |
H A D | dns_sd.h | 1065 * rrtype: The type of the record (e.g. kDNSServiceType_TXT, kDNSServiceType_SRV, etc) 1084 uint16_t rrtype, 1423 * rrtype: The resource record's type (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) 1452 uint16_t rrtype, 1483 * rrtype: The numerical type of the resource record to be queried for 1506 uint16_t rrtype, 1703 * rrtype: The numerical type of the resource record (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) 1734 uint16_t rrtype, 1767 * rrtype: The resource record's type (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) 1782 uint16_t rrtype, [all...] |
H A D | dnssd_clientstub.c | 1189 uint16_t rrtype, rrclass, rdlen; local 1193 rrtype = get_uint16(&data, end); 1200 else ((DNSServiceQueryRecordReply)sdr->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err, name, rrtype, rrclass, rdlen, rdata, ttl, sdr->AppContext); 1210 uint16_t rrtype, 1228 len += 2 * sizeof(uint16_t); // rrtype, rrclass 1236 put_uint16(rrtype, &ptr); 1247 uint16_t rrtype, rrclass, rdlen; local 1252 rrtype = get_uint16(&data, end); 1263 else if (rrtype == kDNSServiceType_A || rrtype 1204 DNSServiceQueryRecord( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context ) argument 1605 DNSServiceRegisterRecord( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, DNSServiceRegisterRecordReply callBack, void *context ) argument 1683 DNSServiceAddRecord( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl ) argument 1826 DNSServiceReconfirmRecord( DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata ) argument [all...] |
H A D | uds_daemon.c | 484 // Data must be in the following format: flags, interfaceIndex, name, rrtype, rrclass, rdlen, rdata, (optional) ttl 726 if (rr->resrec.rrtype == kDNSType_SRV && SameDomainName(rr->resrec.name, r->name) && !IdenticalSameNameRecord(&rr->resrec, r)) 738 if (rr->resrec.rrtype == kDNSType_SRV && 1005 rr->resrec.rrclass == kDNSClass_IN && (rr->resrec.rrtype == kDNSType_A || rr->resrec.rrtype == kDNSType_AAAA || 1006 rr->resrec.rrtype == kDNSType_CNAME)) 1028 rr->resrec.rroriginalttl = DefaultTTLforRRType(rr->resrec.rrtype); 1091 mDNSlocal mStatus add_record_to_service(request_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, const char *rdata, mDNSu32 ttl) argument 1100 extra->r.resrec.rrtype = rrtype; 1123 mDNSu16 rrtype = get_uint16(&request->msgptr, request->msgend); local 1317 remove_extra(const request_state *const request, service_instance *const serv, mDNSu16 *const rrtype) argument 1352 mDNSu16 rrtype = 0; local 2970 mDNSu16 rrtype, rrclass; local [all...] |
H A D | dnsextd.c | 570 if ( lcr.r.resrec.rrtype == kDNSType_OPT && lcr.r.resrec.rdlength >= DNSOpt_LLQData_Space && lcr.r.resrec.rdata->u.opt[0].opt == kDNSOpt_LLQ ) 871 ptr[0] = (mDNSu8)(rr->rrtype >> 8); 872 ptr[1] = (mDNSu8)(rr->rrtype & 0xFF); 1404 if (rr->rrtype == kDNSQType_ANY && !rr->rroriginalttl && rr->rrclass == kDNSQClass_ANY && !rr->rdlength) 1417 (DeleteOneRRSet && (*rptr)->rr.resrec.rrtype == rr->rrtype) || 1801 if (lcr.r.resrec.rrtype != e->type || lcr.r.resrec.rrclass != kDNSClass_IN || !SameDomainName(lcr.r.resrec.name, &e->name)) 1804 lcr.r.resrec.name->c, lcr.r.resrec.rrtype, e->name.c, e->type); 2353 if (opt.r.resrec.RecordType != kDNSRecordTypePacketNegative && opt.r.resrec.rrtype == kDNSType_OPT) break; 2357 if (opt.r.resrec.rrtype ! [all...] |
/external/chromium/net/tools/dnssec_chain_verify/ |
H A D | dnssec_chain_verify.cc | 107 fprintf(stderr, "Chain good: rrtype:%d\n", verifier.rrtype());
|
/external/mdnsresponder/Clients/ |
H A D | dns-sd.c | 680 const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context) 700 switch (rrtype) 738 printf("%s%6X%3d %-30s%4d%4d %s", op, flags, ifIndex, fullname, rrtype, rrclass, rdb); 754 DNSServiceReconfirmRecord(flags, ifIndex, fullname, rrtype, rrclass, rdlen, rdata); 1172 uint16_t rrtype, rrclass; local 1177 rrtype = (argc <= opi+1) ? kDNSServiceType_A : GetRRType(argv[opi+1]); 1179 if (rrtype == kDNSServiceType_TXT || rrtype == kDNSServiceType_PTR) flags |= kDNSServiceFlagsLongLivedQuery; 1180 err = DNSServiceQueryRecord(&client, flags, opinterface, argv[opi+0], rrtype, rrclass, qr_reply, NULL); 1315 fprintf(stderr, "%s -Q <FQDN> <rrtype> <rrclas 679 qr_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context) argument [all...] |
/external/chromium_org/chrome/utility/local_discovery/ |
H A D | service_discovery_client_impl.h | 68 virtual void OnNsecRecord(const std::string& name, unsigned rrtype) OVERRIDE;
|