Lines Matching defs:db_rr

629  * Function type for predicate functions that compare a database RR 'db_rr'
632 typedef isc_boolean_t rr_predicate(dns_rdata_t *update_rr, dns_rdata_t *db_rr);
1093 * Return true iff 'db_rr' is neither a SOA nor an NS RR nor
1097 type_not_soa_nor_ns_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1099 return ((db_rr->type != dns_rdatatype_soa &&
1100 db_rr->type != dns_rdatatype_ns &&
1101 db_rr->type != dns_rdatatype_nsec3param &&
1102 db_rr->type != dns_rdatatype_rrsig &&
1103 db_rr->type != dns_rdatatype_nsec) ?
1108 * Return true iff 'db_rr' is neither a RRSIG nor a NSEC.
1111 type_not_dnssec(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1113 return ((db_rr->type != dns_rdatatype_rrsig &&
1114 db_rr->type != dns_rdatatype_nsec) ?
1122 true_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1124 UNUSED(db_rr);
1132 rrsig_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1134 return ((db_rr->type == dns_rdatatype_rrsig) ?
1142 rr_equal_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1148 return (dns_rdata_compare(update_rr, db_rr) == 0 ?
1153 * Return true iff 'update_rr' should replace 'db_rr' according
1165 replaces_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1169 if (db_rr->type != update_rr->type)
1171 if (db_rr->type == dns_rdatatype_cname)
1173 if (db_rr->type == dns_rdatatype_dname)
1175 if (db_rr->type == dns_rdatatype_soa)
1177 if (db_rr->type == dns_rdatatype_nsec)
1179 if (db_rr->type == dns_rdatatype_rrsig) {
1184 result = dns_rdata_tostruct(db_rr, &dbsig, NULL);
1193 if (db_rr->type == dns_rdatatype_wks) {
1200 INSIST(db_rr->length >= 5 && update_rr->length >= 5);
1201 return (memcmp(db_rr->data, update_rr->data, 5) == 0 ?
1205 if (db_rr->type == dns_rdatatype_nsec3param) {
1206 if (db_rr->length != update_rr->length)
1208 INSIST(db_rr->length >= 4 && update_rr->length >= 4);
1212 if (db_rr->data[0] == update_rr->data[0] &&
1213 db_rr->data[1] & DNS_NSEC3FLAG_UPDATE &&
1215 memcmp(db_rr->data+2, update_rr->data+2,