Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/libdns_sd/java/com/apple/dnssd/
H A DDNSSD.java314 public static DNSSDService queryRecord( int flags, int ifIndex, String serviceName, int rrtype, in queryRecord() argument
317 { return getInstance()._queryRecord( flags, ifIndex, serviceName, rrtype, rrclass, listener); } in queryRecord()
398 public static void reconfirmRecord( int flags, int ifIndex, String fullName, int rrtype, in reconfirmRecord() argument
400 { getInstance()._reconfirmRecord( flags, ifIndex, fullName, rrtype, rrclass, rdata); } in reconfirmRecord()
451 …stract protected DNSSDService _queryRecord( int flags, int ifIndex, String serviceName, int rrtype, in _queryRecord() argument
461 abstract protected void _reconfirmRecord( int flags, int ifIndex, String fullName, int rrtype, in _reconfirmRecord() argument
581 protected DNSSDService _queryRecord( int flags, int ifIndex, String serviceName, int rrtype, in _queryRecord() argument
585 return new AppleQuery( flags, ifIndex, serviceName, rrtype, rrclass, client); in _queryRecord()
606 protected void _reconfirmRecord( int flags, int ifIndex, String fullName, int rrtype, in _reconfirmRecord() argument
609 ReconfirmRecord( flags, ifIndex, fullName, rrtype, rrclass, rdata); in _reconfirmRecord()
[all …]
H A DDNSSDRecordRegistrar.java57 public DNSRecord registerRecord( int flags, int ifIndex, String fullname, int rrtype, in registerRecord() argument
H A DQueryListener.java57 int rrtype, int rrclass, byte[] rdata, int ttl); in queryAnswered() argument
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DDNSCommon.h144 (r1)->rrtype == (r2)->rrtype && \
153 (r1)->rrtype == (r2)->rrtype && \
161 #define RRTypeAnswersQuestionType(R,Q) ((R)->rrtype == kDNSType_CNAME || (R)->rrtype == (Q) || (Q) …
163 #define UNICAST_NSEC(rr) ((rr)->rrtype == kDNSType_NSEC && RRAssertsExistence((rr), kDNSType_NSEC))
173 extern mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd);
177 …((RR)->rrtype == kDNSType_NS || (RR)->rrtype == kDNSType_CNAME || (RR)->rrtype == kDNSType_PTR || …
178 …((RR)->rrtype == kDNSType_MX || (RR)->rrtype == kDNSType_AFSDB || (RR)->rrtype == kDNSType_RT || …
179 …((RR)->rrtype == kDNSType_SRV ) ? &(RR)->rdata->u.srv.target : mD…
216 …u8 *ptr, const mDNSu8 *const limit, const domainname *const name, mDNSu16 rrtype, mDNSu16 rrclass);
221 …RSetWithLimit(DNSMessage *msg, mDNSu8 *ptr, const domainname *name, mDNSu16 rrtype, mDNSu8 *limit);
H A DDNSCommon.c173 mDNSexport char *DNSTypeName(mDNSu16 rrtype) in DNSTypeName() argument
175 switch (rrtype) in DNSTypeName()
198 mDNS_snprintf(buffer, sizeof(buffer), "TYPE%d", rrtype); in DNSTypeName()
371 …DNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTypeName(rr->rrtype)); in GetRRDisplayString_rdb()
373 …if (!rr->rdlength && rr->rrtype != kDNSType_OPT) { mDNS_snprintf(buffer+length, RemSpc, "<< ZERO R… in GetRRDisplayString_rdb()
375 switch (rr->rrtype) in GetRRDisplayString_rdb()
1358 …mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, v… in mDNS_SetupResourceRecord() argument
1387 ttl = DefaultTTLforRRType(rrtype); in mDNS_SetupResourceRecord()
1393 rr->resrec.rrtype = rrtype; in mDNS_SetupResourceRecord()
1497 switch(rr->rrtype) in RDataHashValue()
[all …]
H A Ddnssec.h36 mDNSu16 rrtype; member
140 extern DNSSECVerifier *AllocateDNSSECVerifier(mDNS *const m, const domainname *name, mDNSu16 rrtype
H A DmDNS.c141 … ((rr)->resrec.rrtype == kDNSType_A || (rr)->resrec.rrtype == kDNSType_AAAA || \
142 (rr)->resrec.rrtype == kDNSType_CNAME || \
143 (rr)->resrec.rrtype == kDNSType_PTR))
729 #define SameResourceRecordSignature(A,B) (A)->resrec.rrtype == (B)->resrec.rrtype && SameResourceRe…
760 if (pktrr->resrec.rrtype != authrr->resrec.rrtype) return(mDNSfalse); in PacketRRMatchesSignature()
930 …tTargetToHostName: Don't know how to set the target of rrtype %s", DNSTypeName(rr->resrec.rrtype)); in SetTargetToHostName()
957 rr->resrec.name->c, DNSTypeName(rr->resrec.rrtype)); in SetTargetToHostName()
985 if (rr->resrec.rrtype != kDNSType_SRV) in ActivateUnicastRegistration()
988 if (rr->resrec.rrtype == kDNSType_PTR) in ActivateUnicastRegistration()
990 else if (rr->resrec.rrtype == kDNSType_TXT) in ActivateUnicastRegistration()
[all …]
H A Duds_daemon.c389 …ent(%d)[%s]", status ? "+Service" : "-Service", ar->resrec.name->c, DNSTypeName(ar->resrec.rrtype), in LogMcastService()
917 …if (rr->resrec.rrtype == kDNSType_SRV && SameDomainName(rr->resrec.name, r->name) && !IdenticalSam… in CountPeerRegistrations()
929 if (rr->resrec.rrtype == kDNSType_SRV && in CountExistingRegistrations()
1236 …rr->resrec.rrclass == kDNSClass_IN && (rr->resrec.rrtype == kDNSType_A || rr->resrec.rrtype == kDN… in handle_regrecord_request()
1237 rr->resrec.rrtype == kDNSType_CNAME)) in handle_regrecord_request()
1261 rr->resrec.rroriginalttl = DefaultTTLforRRType(rr->resrec.rrtype); in handle_regrecord_request()
1338 …d_to_service(request_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, co… in add_record_to_service() argument
1348 extra->r.resrec.rrtype = rrtype; in add_record_to_service()
1383 mDNSu16 rrtype = get_uint16(&request->msgptr, request->msgend); in handle_add_request() local
1387 if (!ttl) ttl = DefaultTTLforRRType(rrtype); in handle_add_request()
[all …]
H A Danonymous.c102 rr->rrtype = kDNSType_NSEC3; in ConstructNSEC3Record()
469 if (cr->resrec.AnonInfo || cr->resrec.rrtype != kDNSType_PTR) in InitializeAnonInfoForCR()
480 DNSTypeName(cr->resrec.rrtype)); in InitializeAnonInfoForCR()
H A DuDNS.c1763 if (answer->rrtype != question->qtype) return; // Don't care about CNAMEs in GetZoneData_QuestionCallback()
1765 if (answer->rrtype == kDNSType_SOA) in GetZoneData_QuestionCallback()
1801 else if (answer->rrtype == kDNSType_SRV) in GetZoneData_QuestionCallback()
1836 else if (answer->rrtype == kDNSType_A) in GetZoneData_QuestionCallback()
1996 …if (rr->resrec.rrtype != kDNSType_SRV) { LogMsg("UpdateAllServiceRecords:ERROR!! ResourceRecord no… in UpdateAllServiceRecords()
2006 if (r->resrec.rrtype == kDNSType_PTR) in UpdateAllServiceRecords()
2008 else if (r->resrec.rrtype == kDNSType_TXT) in UpdateAllServiceRecords()
2010 if (srvRR && srvRR->resrec.rrtype != kDNSType_SRV) in UpdateAllServiceRecords()
2057 …if (rr->resrec.rrtype != kDNSType_SRV) {LogMsg("CompleteRecordNatMap: Not a service record %s", AR… in CompleteRecordNatMap()
2148 if (rr->resrec.rrtype != kDNSType_SRV) in StartRecordNatMap()
[all …]
H A DmDNSEmbeddedAPI.h458 #define mDNS_KeepaliveRecord(rr) ((rr)->rrtype == kDNSType_NULL && SameDomainLabel(SecondLabel((rr)…
903 …ne DNSSECRecordType(rrtype) (((rrtype) == kDNSType_RRSIG) || ((rrtype) == kDNSType_NSEC) || ((rrty… argument
904 ((rrtype) == kDNSType_NSEC3))
1399 mDNSu16 rrtype; member
1889 (rr)->rrtype == kDNSType_CNAME)
2730 …mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, v…
2899 extern char *DNSTypeName(mDNSu16 rrtype);
3291 …const domainname *const name, const mDNSu32 namehash, const mDNSu16 rrtype, const mDNSu16 rrclass,…
/titanic_50/usr/src/lib/nsswitch/mdns/common/
H A Dmdns_common.c31 static int _nss_mdns_queryrecord(const char *rrname, int rrclass, int rrtype,
73 _nss_mdns_queryrecord(const char *rrname, int rrclass, int rrtype, in _nss_mdns_queryrecord() argument
89 rrname, rrtype); in _nss_mdns_queryrecord()
92 rrname, rrtype, rrclass, callback, data); in _nss_mdns_queryrecord()
159 const char *fullname, uint16_t rrtype, uint16_t rrclass, in _nss_mdns_querynamereply() argument
189 if (rrtype == kDNSServiceType_A) in _nss_mdns_querynamereply()
191 else if (rrtype == kDNSServiceType_AAAA) in _nss_mdns_querynamereply()
253 int rrtype; in _nss_mdns_querybyname() local
263 rrtype = kDNSServiceType_ANY; in _nss_mdns_querybyname()
265 rrtype = kDNSServiceType_A; in _nss_mdns_querybyname()
[all …]
/titanic_50/usr/src/lib/libdns_sd/java/com/apple/dnssd/docs/examples/src/
H A DSwingQueryListener.java63 int rrtype, int rrclass, byte[] rdata, int ttl) in queryAnswered() argument
69 fType = rrtype; in queryAnswered()
H A DSimpleChat.java179 int rrtype, int rrclass, byte[] rdata, int ttl) in queryAnswered() argument
/titanic_50/usr/src/lib/libdns_sd/common/
H A Ddns_sd.h1268 uint16_t rrtype,
1639 uint16_t rrtype,
1690 uint16_t rrtype,
1911 uint16_t rrtype,
1958 uint16_t rrtype,
H A Ddnssd_clientstub.c1322 uint16_t rrtype, rrclass, rdlen; in handle_query_response() local
1326 rrtype = get_uint16(&data, end); in handle_query_response()
1333 …->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err, name, rrtype, rrclass, rdlen, r… in handle_query_response()
1343 uint16_t rrtype, in DNSServiceQueryRecord() argument
1374 put_uint16(rrtype, &ptr); in DNSServiceQueryRecord()
1385 uint16_t rrtype, rdlen; in handle_addrinfo_response() local
1390 rrtype = get_uint16(&data, end); in handle_addrinfo_response()
1401 else if (rrtype == kDNSServiceType_A || rrtype == kDNSServiceType_AAAA) in handle_addrinfo_response()
1405 …const struct sockaddr *const sa = (rrtype == kDNSServiceType_A) ? (struct sockaddr*)&sa4 : (struct… in handle_addrinfo_response()
1406 if (rrtype == kDNSServiceType_A) in handle_addrinfo_response()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/dns-sd/
H A Ddns-sd.c881 static void ParseDNSSECRecords(uint16_t rrtype, char *rdb, char *p, unsigned const char *rd, uint16… in ParseDNSSECRecords() argument
884 switch (rrtype) in ParseDNSSECRecords()
992 …const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32… in qr_reply() argument
1028 strncpy(rr_type, DNSTypeName(rrtype), sizeof(rr_type)); in qr_reply()
1034 switch (rrtype) in qr_reply()
1072 ParseDNSSECRecords(rrtype, rdb, p, rd, rdlen); in qr_reply()
1121 DNSServiceReconfirmRecord(flags, ifIndex, fullname, rrtype, rrclass, rdlen, rdata); in qr_reply()
1633 uint16_t rrtype, rrclass; in main() local
1639 rrtype = (argc <= opi+1) ? kDNSServiceType_A : GetRRType(argv[opi+1]); in main()
1641 if (rrtype == kDNSServiceType_TXT || rrtype == kDNSServiceType_PTR) in main()
[all …]
/titanic_50/usr/src/lib/libdns_sd/java/common/
H A DJNISupport.c756 uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, in ServiceQueryReply() argument
778 rrtype, rrclass, rDataObj, ttl); in ServiceQueryReply()
787 … jint flags, jint ifIndex, jstring serviceName, jint rrtype, jint rrclass) in Java_com_apple_dnssd_AppleQuery_CreateQuery() argument
805 rrtype, rrclass, ServiceQueryReply, pContext); in Java_com_apple_dnssd_AppleQuery_CreateQuery()
902 … jint rrtype, jint rrclass, jbyteArray rdata) in Java_com_apple_dnssd_AppleDNSSD_ReconfirmRecord() argument
911 DNSServiceReconfirmRecord( flags, ifIndex, nameStr, rrtype, rrclass, numBytes, pBytes); in Java_com_apple_dnssd_AppleDNSSD_ReconfirmRecord()