Home
last modified time | relevance | path

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

/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/
H A DDNSCommon.h159 (r1)->rrtype == (r2)->rrtype && \
168 (r1)->rrtype == (r2)->rrtype && \
176 #define RRTypeAnswersQuestionType(R,Q) ((R)->rrtype == kDNSType_CNAME || (R)->rrtype == (Q) || (Q) …
178 #define UNICAST_NSEC(rr) ((rr)->rrtype == kDNSType_NSEC && RRAssertsExistence((rr), kDNSType_NSEC))
190 extern mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd);
194 …((RR)->rrtype == kDNSType_NS || (RR)->rrtype == kDNSType_CNAME || (RR)->rrtype == kDNSType_PTR || …
195 …((RR)->rrtype == kDNSType_MX || (RR)->rrtype == kDNSType_AFSDB || (RR)->rrtype == kDNSType_RT || …
196 …((RR)->rrtype == kDNSType_SRV ) ? &(RR)->rdata->u.srv.target : mD…
234 …u8 *ptr, const mDNSu8 *const limit, const domainname *const name, mDNSu16 rrtype, mDNSu16 rrclass);
239 …RSetWithLimit(DNSMessage *msg, mDNSu8 *ptr, const domainname *name, mDNSu16 rrtype, mDNSu8 *limit);
H A DDNSCommon.c192 mDNSexport char *DNSTypeName(mDNSu16 rrtype) in DNSTypeName() argument
194 switch (rrtype) in DNSTypeName()
219 mDNS_snprintf(buffer, sizeof(buffer), "TYPE%d", rrtype); in DNSTypeName()
302 …DNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTypeName(rr->rrtype)); in GetRRDisplayString_rdb()
304 …if (!rr->rdlength && rr->rrtype != kDNSType_OPT) { mDNS_snprintf(buffer+length, RemSpc, "<< ZERO R… in GetRRDisplayString_rdb()
306 switch (rr->rrtype) in GetRRDisplayString_rdb()
1164 …mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, v… in mDNS_SetupResourceRecord() argument
1190 ttl = DefaultTTLforRRType(rrtype); in mDNS_SetupResourceRecord()
1196 rr->resrec.rrtype = rrtype; in mDNS_SetupResourceRecord()
1295 switch(rr->rrtype) in RDataHashValue()
[all …]
H A DuDNS.c1755 if (answer->rrtype != question->qtype) return; // Don't care about CNAMEs in GetZoneData_QuestionCallback()
1757 if (answer->rrtype == kDNSType_SOA) in GetZoneData_QuestionCallback()
1781 else if (answer->rrtype == kDNSType_SRV) in GetZoneData_QuestionCallback()
1845 else if (answer->rrtype == kDNSType_A) in GetZoneData_QuestionCallback()
1971 …if (rr->resrec.rrtype != kDNSType_SRV) { LogMsg("UpdateAllServiceRecords:ERROR!! ResourceRecord no… in UpdateAllServiceRecords()
1981 if (r->resrec.rrtype == kDNSType_PTR) in UpdateAllServiceRecords()
1983 else if (r->resrec.rrtype == kDNSType_TXT) in UpdateAllServiceRecords()
1985 if (srvRR && srvRR->resrec.rrtype != kDNSType_SRV) in UpdateAllServiceRecords()
2032 …if (rr->resrec.rrtype != kDNSType_SRV) {LogMsg("CompleteRecordNatMap: Not a service record %s", AR… in CompleteRecordNatMap()
2123 if (rr->resrec.rrtype != kDNSType_SRV) in StartRecordNatMap()
[all …]
H A DmDNS.c270 … ((rr)->resrec.rrtype == kDNSType_A || (rr)->resrec.rrtype == kDNSType_AAAA || \
271 (rr)->resrec.rrtype == kDNSType_CNAME || \
272 (rr)->resrec.rrtype == kDNSType_PTR))
968 #define SameResourceRecordSignature(A,B) (A)->resrec.rrtype == (B)->resrec.rrtype && SameResourceRe…
999 if (pktrr->resrec.rrtype != authrr->resrec.rrtype) return(mDNSfalse); in PacketRRMatchesSignature()
1188 …tTargetToHostName: Don't know how to set the target of rrtype %s", DNSTypeName(rr->resrec.rrtype)); in SetTargetToHostName()
1215 rr->resrec.name->c, DNSTypeName(rr->resrec.rrtype)); in SetTargetToHostName()
1243 if (rr->resrec.rrtype != kDNSType_SRV) in ActivateUnicastRegistration()
1246 if (rr->resrec.rrtype == kDNSType_PTR) in ActivateUnicastRegistration()
1248 else if (rr->resrec.rrtype == kDNSType_TXT) in ActivateUnicastRegistration()
[all …]
H A DmDNSEmbeddedAPI.h490 #define mDNS_KeepaliveRecord(rr) ((rr)->rrtype == kDNSType_NULL && SameDomainLabel(SecondLabel((rr)…
1288 mDNSu16 rrtype; // See DNS_TypeValues enum. member
1782 (rr)->rrtype == kDNSType_CNAME \
2653 …mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, v…
2824 extern char *DNSTypeName(mDNSu16 rrtype);
3258 …const mDNSu32 namehash, const mDNSu16 rrtype, const mDNSu16 rrclass, mDNSu32 ttl_seconds, mDNSInte…
/illumos-gate/usr/src/lib/nsswitch/mdns/common/
H A Dmdns_common.c29 static int _nss_mdns_queryrecord(const char *rrname, int rrclass, int rrtype,
71 _nss_mdns_queryrecord(const char *rrname, int rrclass, int rrtype, in _nss_mdns_queryrecord() argument
87 rrname, rrtype); in _nss_mdns_queryrecord()
90 rrname, rrtype, rrclass, callback, data); in _nss_mdns_queryrecord()
157 const char *fullname, uint16_t rrtype, uint16_t rrclass, in _nss_mdns_querynamereply() argument
187 if (rrtype == kDNSServiceType_A) in _nss_mdns_querynamereply()
189 else if (rrtype == kDNSServiceType_AAAA) in _nss_mdns_querynamereply()
251 int rrtype; in _nss_mdns_querybyname() local
261 rrtype = kDNSServiceType_ANY; in _nss_mdns_querybyname()
263 rrtype = kDNSServiceType_A; in _nss_mdns_querybyname()
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/Clients/
H A Ddns-sd.c945 static void ParseDNSSECRecords(uint16_t rrtype, char *rdb, size_t rdb_size, unsigned const char *rd… in ParseDNSSECRecords() argument
948 switch (rrtype) in ParseDNSSECRecords()
1061 …const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32… in qr_reply() argument
1100 strncpy(rr_type, DNSTypeName(rrtype), sizeof(rr_type)); in qr_reply()
1104 switch (rrtype) in qr_reply()
1142 ParseDNSSECRecords(rrtype, rdb, sizeof(rdb), rd, rdlen); in qr_reply()
1189 DNSServiceReconfirmRecord(flags, ifIndex, fullname, rrtype, rrclass, rdlen, rdata); in qr_reply()
1603 uint16_t rrtype = 0; in API_NULL_input_test() local
1608 …if ( (DNSServiceQueryRecord( 0, flags, interfaceIndex, fullname, rrtype, rrclass, callBack,… in API_NULL_input_test()
1609 …|| (DNSServiceQueryRecord(&sdRef, flags, interfaceIndex, 0, rrtype, rrclass, callBack, con… in API_NULL_input_test()
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddns_sd.h1363 uint16_t rrtype,
1748 uint16_t rrtype,
1806 uint16_t rrtype,
2038 uint16_t rrtype,
2086 uint16_t rrtype,
H A Ddnssd_clientstub.c1476 uint16_t rrtype, rrclass, rdlen; in handle_query_response() local
1480 rrtype = get_uint16(&data, end); in handle_query_response()
1487 …->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err, name, rrtype, rrclass, rdlen, r… in handle_query_response()
1528 uint16_t rrtype, in DNSServiceQueryRecord() argument
1577 put_uint16(rrtype, &ptr); in DNSServiceQueryRecord()
1606 uint16_t rrtype, rrclass, rdlen; in handle_addrinfo_response() local
1611 rrtype = get_uint16(&data, end); in handle_addrinfo_response()
1623 else if (rrtype == kDNSServiceType_A || rrtype == kDNSServiceType_AAAA) in handle_addrinfo_response()
1627 …const struct sockaddr *const sa = (rrtype == kDNSServiceType_A) ? (struct sockaddr*)&sa4 : (struct… in handle_addrinfo_response()
1628 if (rrtype == kDNSServiceType_A) in handle_addrinfo_response()
[all …]
H A Duds_daemon.c239 …ent(%d)[%s]", status ? "+Service" : "-Service", ar->resrec.name->c, DNSTypeName(ar->resrec.rrtype), in LogMcastService()
908 …if (rr->resrec.rrtype == kDNSType_SRV && SameDomainName(rr->resrec.name, r->name) && !IdenticalSam… in CountPeerRegistrations()
920 if (rr->resrec.rrtype == kDNSType_SRV && in CountExistingRegistrations()
1308 …rr->resrec.rrclass == kDNSClass_IN && (rr->resrec.rrtype == kDNSType_A || rr->resrec.rrtype == kDN… in _handle_regrecord_request_start()
1309 rr->resrec.rrtype == kDNSType_CNAME)) in _handle_regrecord_request_start()
1332 rr->resrec.rroriginalttl = DefaultTTLforRRType(rr->resrec.rrtype); in _handle_regrecord_request_start()
1542 …ecord_to_service(request_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, in add_record_to_service() argument
1551 extra->r.resrec.rrtype = rrtype; in add_record_to_service()
1560 … request->u.servicereg.instances->srs.RR_SRV.resrec.name : mDNSNULL), DNSTypeName(rrtype)); in add_record_to_service()
1593 mDNSu16 rrtype = get_uint16(&request->msgptr, request->msgend); in handle_add_request() local
[all …]
H A DClientRequests.c712 if (inAnswer->rrtype != kDNSType_SOA) goto exit; in QueryRecordOpCallback()
1002 if (inAnswer->rrtype == kDNSType_A || inAnswer->rrtype == kDNSType_AAAA) in NotifyWebContentFilter()
1004 if (inAnswer->rrtype == kDNSType_A) in NotifyWebContentFilter()
1018 else if (inAnswer->rrtype == kDNSType_AAAA) in NotifyWebContentFilter()
1047 else if (inAnswer->rrtype == kDNSType_CNAME) in NotifyWebContentFilter()