Lines Matching refs:db_rr
729 * Function type for predicate functions that compare a database RR 'db_rr'
732 typedef isc_boolean_t rr_predicate(dns_rdata_t *update_rr, dns_rdata_t *db_rr);
1163 * Return true iff 'db_rr' is neither a SOA nor an NS RR nor
1167 type_not_soa_nor_ns_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1169 return ((db_rr->type != dns_rdatatype_soa &&
1170 db_rr->type != dns_rdatatype_ns &&
1171 db_rr->type != dns_rdatatype_nsec3param &&
1172 db_rr->type != dns_rdatatype_rrsig &&
1173 db_rr->type != dns_rdatatype_nsec) ?
1178 * Return true iff 'db_rr' is neither a RRSIG nor a NSEC.
1181 type_not_dnssec(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1183 return ((db_rr->type != dns_rdatatype_rrsig &&
1184 db_rr->type != dns_rdatatype_nsec) ?
1192 true_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1194 UNUSED(db_rr);
1202 rr_equal_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1208 return (dns_rdata_casecompare(update_rr, db_rr) == 0 ?
1213 * Return true iff 'update_rr' should replace 'db_rr' according
1225 replaces_p(dns_rdata_t *update_rr, dns_rdata_t *db_rr) {
1229 if (db_rr->type != update_rr->type)
1231 if (db_rr->type == dns_rdatatype_cname)
1233 if (db_rr->type == dns_rdatatype_dname)
1235 if (db_rr->type == dns_rdatatype_soa)
1237 if (db_rr->type == dns_rdatatype_nsec)
1239 if (db_rr->type == dns_rdatatype_rrsig) {
1244 result = dns_rdata_tostruct(db_rr, &dbsig, NULL);
1253 if (db_rr->type == dns_rdatatype_wks) {
1260 INSIST(db_rr->length >= 5 && update_rr->length >= 5);
1261 return (memcmp(db_rr->data, update_rr->data, 5) == 0 ?
1265 if (db_rr->type == dns_rdatatype_nsec3param) {
1266 if (db_rr->length != update_rr->length)
1268 INSIST(db_rr->length >= 4 && update_rr->length >= 4);
1273 if (db_rr->data[0] == update_rr->data[0] &&
1274 memcmp(db_rr->data+2, update_rr->data+2,