| /src/external/apache2/mDNSResponder/dist/unittests/ |
| mdns_ut.c | 71 mDNSu16 rrtype = 0; local 90 if (rrtype == 0 || rrtype == kDNSType_CNAME) { 91 rrtype = rr->rrtype; 96 return rrtype;
|
| /src/external/apache2/mDNSResponder/dist/ServiceRegistration/ |
| srp-api.h | 59 int srp_add_interface_address(uint16_t rrtype, const uint8_t *NONNULL rdata, uint16_t rdlen); 64 int srp_add_server_address(const uint8_t *NONNULL port, uint16_t rrtype, const uint8_t *NONNULL rdata, uint16_t rdlen); 80 int srp_delete_interface_address(uint16_t rrtype, const uint8_t *NONNULL rdata, uint16_t rdlen); 83 int srp_delete_server_address(uint16_t rrtype, const uint8_t *NONNULL port, const uint8_t *NONNULL rdata, 118 // This function fetches the IP address type (rrtype), address (rrdata x rdlength) and port (port[0], 123 bool srp_get_last_server(uint16_t *NONNULL rrtype, uint8_t *NONNULL rrdata, uint16_t rdlength, 126 // This function stores the IP address type (rrtype), address (rrdata x rdlength) and port (port[0], 131 bool srp_save_last_server(uint16_t rrtype, uint8_t *NONNULL rrdata, uint16_t rdlength,
|
| srp-filedata.c | 100 srp_get_last_server(uint16_t *NONNULL rrtype, uint8_t *NONNULL rdata, uint16_t rdlim, 111 if (length < 10) { // rrtype + rdlength + ipv4 address + port 115 *rrtype = (((uint16_t)buffer[offset]) << 8) | buffer[offset + 1]; 119 if ((*rrtype == dns_rrtype_a && rdlength != 4) || (*rrtype == dns_rrtype_aaaa && rdlength != 16)) { 121 rdlength, *rrtype == dns_rrtype_a ? "A" : "AAAA"); 124 if (length < rdlength + 6) { // rrtype + rdlength + address + port 130 *rrtype == dns_rrtype_a ? "A" : "AAAA", rdlim); 140 srp_save_last_server(uint16_t rrtype, uint8_t *NONNULL rdata, uint16_t rdlength, 154 dns_u16_to_wire(&towire, rrtype); [all...] |
| srp-dnssd.h | 36 uint32_t interfaceIndex, const char *NONNULL fullname, uint16_t rrtype, 43 uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, 62 uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply NONNULL callBack, 67 uint16_t rrtype, uint16_t rrclass, DNSServiceAttribute const *NULLABLE attr,
|
| srp-log.c | 50 dns_rrtype_to_string(const uint16_t rrtype) 53 switch(rrtype) 146 FAULT("Invalid dns_rrtype - rrtype: %u", rrtype);
|
| /src/external/apache2/mDNSResponder/dist/ServiceRegistration/test/tests/ |
| srpl-host-0i-2s.c | 54 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 55 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)), 93 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 94 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)),
|
| single-srpl-update.c | 50 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 51 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)),
|
| srpl-lease-time.c | 54 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 55 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)), 121 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 122 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)),
|
| srpl-update-after-remove.c | 55 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 56 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)), 105 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 106 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)),
|
| srpl-host-2i.c | 99 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 100 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)),
|
| srpl-host-2ir.c | 52 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 53 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)),
|
| srpl-cycle-through-peers.c | 57 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 58 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)), 165 ((regrec_1->rrtype == dns_rrtype_aaaa && regrec_2->rrtype == dns_rrtype_key) || 166 (regrec_2->rrtype == dns_rrtype_aaaa && regrec_1->rrtype == dns_rrtype_key)),
|
| dns-push.c | 64 static void test_dns_push_send_push_subscribe(push_test_state_t *push_state, const char *name, int rrtype); 269 INFO("unexpected rrtype for %s in push update: %d", name, rr->type); 584 test_dns_push_send_push_subscribe(push_test_state_t *push_state, const char *name, int rrtype) 603 INFO("push subscribe for %s, rrtype %d, xid %x, num %d", name, rrtype, push_state->subscribe_xids[i], i); 611 dns_u16_to_wire(&towire, rrtype); 621 if (rrtype == dns_rrtype_srv && push_state->variant == PUSH_TEST_VARIANT_TWO_QUESTIONS) { 633 dns_u16_to_wire(&towire, rrtype); 641 INFO("DNS query for %s, rrtype %d, xid %x, num %d", name, rrtype, push_state->subscribe_xids[i], i) [all...] |
| /src/external/bsd/nsd/dist/ |
| dns.h | 371 /* The RRType number */ 402 /* The length of the RRTYPE descriptors arrary */ 410 uint16_t rrtype); 412 const char *rrtype_to_string(uint16_t rrtype); 429 nsd_type_descriptor(uint16_t rrtype) 431 if (rrtype <= TYPE_IPN) 432 return &type_descriptors[rrtype]; 433 if (rrtype == TYPE_TA) 435 if (rrtype == TYPE_DLV)
|
| /src/external/apache2/mDNSResponder/dist/mDNSCore/ |
| DNSCommon.h | 321 r1->rrtype == r2->rrtype && 339 // A given RRType answers a QuestionType if RRType is CNAME, or types match, or QuestionType is ANY, 340 // or the RRType is NSEC and positively asserts the nonexistence of the type being requested from multicast, 342 // or the RRType is RRSIG that covers the the type being requested. 353 #define UNICAST_NSEC(rr) ((rr)->rrtype == kDNSType_NSEC && RRAssertsExistence((rr), kDNSType_NSEC)) 354 #define MULTICAST_NSEC(rr) ((rr)->rrtype == kDNSType_NSEC && RRAssertsNonexistence((rr), kDNSType_NSEC)) 366 extern mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd); 399 ((RR)->rrtype == kDNSType_NS || (RR)->rrtype == kDNSType_CNAME || (RR)->rrtype == kDNSType_PTR || (RR)->rrtype = (…) [all...] |
| mDNSDebug.h | 368 ##__VA_ARGS__, DNS_TYPE_PARAM((RR_PTR)->rrtype), RDATA_PARAM(_typeRDataBuf, _typeRDataLen, \ 369 (RR_PTR)->rrtype, _rdataBytes, _rdataLen)); \ 403 FORMAT "type: " PUB_DNS_TYPE ", rdata: <none>", ##__VA_ARGS__, DNS_TYPE_PARAM((RR_PTR)->rrtype)); \ 484 #define PUB_DNS_TYPE "%{mdns:rrtype}d" 697 #define RDATA_PARAM(buf, buf_len, rrtype, rdata, rdata_len) \ 698 (rdata_len + 2), GetPrintableRDataBytes(buf, buf_len, rrtype, rdata, rdata_len) 700 #define PUB_TYPE_RDATA "%{public, mdns:rrtype+rdata}.*P" 701 #define PRI_TYPE_RDATA "%{sensitive, mask.hash, mdns:rrtype+rdata}.*P" 702 #define TYPE_RDATA_PARAM(buf, buf_len, rrtype, rdata, rdata_len) RDATA_PARAM(buf, buf_len, rrtype, rdata, rdata_len [all...] |
| /src/external/apache2/mDNSResponder/dist/mDNSShared/ |
| dnssd_clientstub.h | 47 uint16_t rrtype, uint16_t rrclass, const DNSServiceAttribute *attr, const DNSServiceQueryRecordReply callback, 57 uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen,
|
| /src/external/mpl/bind/dist/bin/tests/system/masterformat/ |
| tests.sh | 329 for rrtype in soa dnskey ns; do 330 $DIG +tcp +dnssec $rrtype "kasp-max-records-per-type" @10.53.0.4 -p "${PORT}" >"dig.out.ns4.$rrtype.test$n" 331 grep "status: NOERROR" "dig.out.ns4.$rrtype.test$n" >/dev/null || ret=1 332 grep "RRSIG" "dig.out.ns4.$rrtype.test$n" >/dev/null || ret=1 344 for rrtype in soa dnskey ns; do 345 $DIG +tcp +dnssec $rrtype "kasp-max-records-per-type-dnskey" @10.53.0.4 -p "${PORT}" >"dig.out.ns4.$rrtype.test$n" 346 grep "status: NOERROR" "dig.out.ns4.$rrtype.test$n" >/dev/null || ret=1 347 grep "RRSIG" "dig.out.ns4.$rrtype.test$n" >/dev/null && ret= [all...] |
| /src/external/apache2/mDNSResponder/dist/ServiceRegistration/test/ |
| test-dnssd.c | 33 dns_service_rdata_to_text(test_state_t *state, int rrtype, const uint8_t *rdata, uint16_t rdlen, char *outbuf, size_t buflen) 38 rr.type = rrtype; 49 int rrtype = 0; local 61 rr_printed = dns_service_rdata_to_text(state, event->rrtype, event->rdata, event->rdlen, rrbuf, sizeof(rrbuf)); 69 // Get the rrtype from the previous event. 74 rrtype = ep->rrtype; 77 // as well as the rrtype from the RegisterRecord event. 85 rr_printed = dns_service_rdata_to_text(state, rrtype, rdata, rdlen, rrbuf, sizeof(rrbuf)); 283 uint16_t rdlen, const void *rdata, uint16_t rrtype, uint16_t rrclass, uint32_t ttl, void *attr [all...] |
| test-api.h | 35 const char *NULLABLE fullname, uint16_t rrtype, 62 uint16_t rrtype, uint16_t rrclass,
|
| /src/external/bsd/unbound/dist/libunbound/ |
| unbound-event.h | 226 * @param rrtype: type of RR in host order, 1 is A. 257 int ub_resolve_event(struct ub_ctx* ctx, const char* name, int rrtype,
|
| /src/external/bsd/unbound/dist/libunbound/python/ |
| libunbound.i | 585 def resolve(self,name,rrtype=RR_TYPE_A,rrclass=RR_CLASS_IN): 590 :param rrtype: 598 return _unbound.ub_resolve(self,name,rrtype,rrclass) 600 return _unbound.ub_resolve(self,idn2dname(name),rrtype,rrclass) 604 def resolve_async(self,name,mydata,callback,rrtype=RR_TYPE_A,rrclass=RR_CLASS_IN): 616 :param rrtype: 636 return _unbound._ub_resolve_async(self,name,rrtype,rrclass,mydata,callback) 638 return _unbound._ub_resolve_async(self,idn2dname(name),rrtype,rrclass,mydata,callback) 910 int _ub_resolve_async(struct ub_ctx* ctx, char* name, int rrtype, int rrclass, void* mydata, PyObject *pyfunc, int* async_id); 941 int _ub_resolve_async(struct ub_ctx* ctx, char* name, int rrtype, int rrclass, PyObject* mydata, PyObject *pyfunc, int* async_id) [all...] |
| /src/external/bsd/unbound/dist/sldns/ |
| wire2str.h | 73 * @param rrtype: the RR type in host order. 76 char* sldns_wire2str_type(uint16_t rrtype); 206 * @param rrtype: type of the RR, host format. 210 size_t rrlen, size_t dname_off, uint16_t rrtype); 233 * @param rrtype: RR type of Rdata, host format. 240 size_t* str_len, uint16_t rrtype, uint8_t* pkt, size_t pktlen, 317 * @param rrtype: host format rr type. 320 int sldns_wire2str_type_print(char** str, size_t* str_len, uint16_t rrtype); 439 * @param rrtype: rr type of the data 444 size_t str_len, uint16_t rrtype); [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/reclimit/ |
| tests.sh | 285 for rrtype in AAAA MX NS; do 286 check_manytypes 1 manytypes.big "${rrtype}" NOERROR big SOA 120 || ret=1 289 for rrtype in AAAA MX NS; do 290 check_manytypes 2 manytypes.big "${rrtype}" NOERROR big SOA "" 120 || ret=1 361 for rrtype in AAAA MX NS; do 362 check_manytypes 1 manytypes.big "${rrtype}" NOERROR big SOA 120 || ret=1 365 for rrtype in AAAA MX NS; do 366 check_manytypes 2 manytypes.big "${rrtype}" NOERROR big SOA "" 120 || ret=1
|
| /src/external/mpl/bind/dist/bin/tests/system/selftest/ |
| tests_zone_analyzer.py | 161 rrtype = LABEL2RRTYPE[name[0]] 162 if rrtype is None: # ENT 167 yield f"{prefix}{name}\t{rrtype}\t{'.'.join(sorted(tags))}.\n"
|