Searched refs:rrtype (Results 1 - 20 of 20) sorted by relevance

/external/mdnsresponder/mDNSCore/
H A DDNSCommon.h142 (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 DDNSCommon.c145 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 DmDNS.c119 ((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 DuDNS.c1470 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...]
H A DmDNSEmbeddedAPI.h1083 mDNSu16 rrtype; member in struct:__anon26808
2207 mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, void *Context);
2371 extern char *DNSTypeName(mDNSu16 rrtype);
2723 const domainname *const name, const mDNSu32 namehash, const mDNSu16 rrtype, const mDNSu16 rrclass, mDNSu32 ttl_seconds,
/external/chromium_org/net/dns/
H A Dmdns_client.h145 // Create listener object for RRType |rrtype| and name |name|.
147 uint16 rrtype,
152 // network, or both for records of type |rrtype| and name |name|. |flags| is
155 uint16 rrtype,
H A Dmdns_client_impl.h119 // Send a query with a specific rrtype and name. Returns true on success.
120 bool SendQuery(uint16 rrtype, std::string name);
127 void QueryCache(uint16 rrtype, const std::string& name,
177 uint16 rrtype,
182 uint16 rrtype,
202 MDnsListenerImpl(uint16 rrtype,
250 MDnsTransactionImpl(uint16 rrtype,
H A Dmdns_client_impl.cc210 bool MDnsClientImpl::Core::SendQuery(uint16 rrtype, std::string name) { argument
215 DnsQuery query(0, name_dns, rrtype);
414 uint16 rrtype, const std::string& name,
416 cache_.FindDnsRecords(rrtype, name, records, base::Time::Now());
444 uint16 rrtype,
448 new MDnsListenerImpl(rrtype, name, delegate, this));
452 uint16 rrtype,
457 new MDnsTransactionImpl(rrtype, name, flags, callback, this));
461 uint16 rrtype,
465 : rrtype_(rrtype), name
413 QueryCache( uint16 rrtype, const std::string& name, std::vector<const RecordParsed*>* records) const argument
443 CreateListener( uint16 rrtype, const std::string& name, MDnsListener::Delegate* delegate) argument
451 CreateTransaction( uint16 rrtype, const std::string& name, int flags, const MDnsTransaction::ResultCallback& callback) argument
460 MDnsListenerImpl( uint16 rrtype, const std::string& name, MDnsListener::Delegate* delegate, MDnsClientImpl* client) argument
589 MDnsTransactionImpl( uint16 rrtype, const std::string& name, int flags, const MDnsTransaction::ResultCallback& callback, MDnsClientImpl* client) argument
[all...]
/external/mdnsresponder/mDNSPosix/
H A DIdentify.c113 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 DNetMonitor.c268 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 Dnss_mdns.c209 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 DClient.c55 assert(answer->rrtype == kDNSType_PTR);
/external/mdnsresponder/mDNSShared/
H A Ddnssd_clientshim.c294 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 Ddns_sd.h1065 * 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 Ddnssd_clientstub.c1189 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 Duds_daemon.c484 // 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 Ddnsextd.c570 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/mdnsresponder/Clients/
H A Ddns-sd.c680 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/common/local_discovery/
H A Dservice_discovery_client_impl.h71 virtual void OnNsecRecord(const std::string& name, unsigned rrtype) OVERRIDE;
H A Dservice_discovery_client_impl.cc322 unsigned rrtype) {
321 OnNsecRecord(const std::string& name, unsigned rrtype) argument

Completed in 2771 milliseconds