Home
last modified time | relevance | path

Searched refs:rrtype (Results 1 – 25 of 26) sorted by relevance

12

/external/mdnsresponder/mDNSCore/
DDNSCommon.h142 (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);
DDNSCommon.c145 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 …]
DmDNS.c119 ((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 …]
DuDNS.c1470 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 …]
/external/mdnsresponder/mDNSPosix/
DIdentify.c113 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()
DNetMonitor.c268 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 …]
Dnss_mdns.c217 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 …]
DClient.c55 assert(answer->rrtype == kDNSType_PTR); in BrowseCallback()
/external/mdnsresponder/mDNSShared/
Ddnssd_clientshim.c309 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 …]
Ddns_sd.h1084 uint16_t rrtype,
1452 uint16_t rrtype,
1506 uint16_t rrtype,
1734 uint16_t rrtype,
1782 uint16_t rrtype,
Ddnssd_clientstub.c1190 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 …]
Duds_daemon.c726 …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 …]
Ddnsextd.c570 …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/mdnsresponder/mDNSWindows/DLL.NET/
Ddnssd_NET.h279 int rrtype,
389 uint16_t rrtype,
910 int rrtype,
1263 int rrtype,
1310 int rrtype,
1355 int rrtype,
1386 int rrtype,
Ddnssd_NET.cpp262 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/
DDNSSDService.h312 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…
DDNSSDService.cpp638 …: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()
DDLLX.idl338 …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…
DDNSSD.cpp247 STDMETHODIMP CDNSSD::QueryRecord(DNSSDFlags flags, ULONG ifIndex, BSTR fullname, DNSSDRRType rrtype in QueryRecord() argument
277 …err = DNSServiceQueryRecord( &sref, flags, ifIndex, fullNameUTF8.c_str(), ( uint16_t ) rrtype, ( u… in QueryRecord()
729 uint16_t rrtype, in QueryRecordReply() argument
761 …wered( service, ( DNSSDFlags ) flags, ifIndex, fullName, ( DNSSDRRType ) rrtype, ( DNSSDRRClass ) … in QueryRecordReply()
D_IDNSSDEvents_CP.h202 …service, DNSSDFlags flags, ULONG ifIndex, BSTR fullName, DNSSDRRType rrtype, DNSSDRRClass rrc… in Fire_QueryRecordAnswered() argument
225 avarParams[3] = rrtype; in Fire_QueryRecordAnswered()
/external/autotest/client/cros/netprotos/
Dzeroconf.py409 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]
Dcros_p2p.py139 for rrname, rrtype, data in answers:
140 if rrname == self._p2p_domain and rrtype == dpkt.dns.DNS_PTR:
/external/mdnsresponder/mDNSWindows/DLLStub/
DDLLStub.cpp187 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/mdnsresponder/Clients/
Ddns-sd.c680 …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/libcups/cups/
Ddest.c208 uint16_t rrtype, uint16_t rrclass,
220 uint16_t rrtype, const void *rdata,
3076 uint16_t rrtype, /* I - Record type */ argument
3093 uint16_t rrtype, /* I - Record type */
3114 …context=%p)", (void *)sdRef, flags, interfaceIndex, errorCode, fullName, rrtype, rrclass, rdlen, r…
3124 …ntext=%p)", browser, interfaceIndex, protocol, event, fullName, rrclass, rrtype, rdata, (unsigned)…

12