2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +00:00

added dns_rdatatype_isdnssec() and dns_rdatatype_iszonecutauth()

This commit is contained in:
Andreas Gustafsson
1999-09-08 07:35:27 +00:00
parent b1a67f989f
commit b469f0321d
2 changed files with 38 additions and 3 deletions

View File

@@ -431,7 +431,7 @@ void dns_rdata_freestruct(void *source);
isc_boolean_t dns_rdatatype_ismeta(dns_rdatatype_t type);
/*
* Find out whether the rdata type 'type' is a meta-type
* Return true iff the rdata type 'type' is a meta-type
* like ANY or AXFR.
*
* Requires:
@@ -441,7 +441,7 @@ isc_boolean_t dns_rdatatype_ismeta(dns_rdatatype_t type);
isc_boolean_t dns_rdataclass_ismeta(dns_rdataclass_t rdclass);
/*
* Find out whether the rdata class 'rdclass' is a meta-class
* Return true iff the rdata class 'rdclass' is a meta-class
* like ANY or NONE.
*
* Requires:
@@ -449,6 +449,26 @@ isc_boolean_t dns_rdataclass_ismeta(dns_rdataclass_t rdclass);
*
*/
isc_boolean_t dns_rdatatype_isdnssec(dns_rdatatype_t type);
/*
* Return true iff 'type' is one of the DNSSEC
* rdata types that may exist alongside a CNAME record.
*
* Requires:
* 'type' is a valid rdata type.
*/
isc_boolean_t dns_rdatatype_iszonecutauth(dns_rdatatype_t type);
/*
* Return true iff rdata of type 'type' is considered authoritative
* data (not glue) in the NXT chain when it occurs in the parent zone
* at a zone cut.
*
* Requires:
* 'type' is a valid rdata type.
*
*/
dns_result_t
dns_rdata_additionaldata(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg);

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rdata.c,v 1.59 1999/08/31 22:08:07 halley Exp $ */
/* $Id: rdata.c,v 1.60 1999/09/08 07:35:27 gson Exp $ */
#include <config.h>
@@ -1438,3 +1438,18 @@ isc_boolean_t
dns_rdataclass_ismeta(dns_rdataclass_t rdclass) {
return (ismeta(rdclass, classes));
}
isc_boolean_t
dns_rdatatype_isdnssec(dns_rdatatype_t type) {
return ((type == dns_rdatatype_sig ||
type == dns_rdatatype_key ||
type == dns_rdatatype_nxt) ?
ISC_TRUE : ISC_FALSE);
}
isc_boolean_t
dns_rdatatype_iszonecutauth(dns_rdatatype_t type) {
return (type == dns_rdatatype_ns ||
dns_rdatatype_isdnssec(type) ?
ISC_TRUE : ISC_FALSE);
}