2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

added dns_rdatatype_isknown()

This commit is contained in:
Andreas Gustafsson 2000-04-29 01:49:37 +00:00
parent e01cfa577b
commit 014892d86d
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,5 @@
143. [func] Added function dns_rdatatype_isknown().
142. [cleanup] <isc/stdtime.h> does not need <time.h> or
<isc/result.h>.

View File

@ -483,6 +483,16 @@ isc_boolean_t dns_rdatatype_iszonecutauth(dns_rdatatype_t type);
*
*/
isc_boolean_t dns_rdatatype_isknown(dns_rdatatype_t type);
/*
* Return true iff the rdata type 'type' is known.
*
* Requires:
* 'type' is a valid rdata type.
*
*/
isc_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.80 2000/04/27 00:01:44 tale Exp $ */
/* $Id: rdata.c,v 1.81 2000/04/29 01:48:11 gson Exp $ */
#include <config.h>
@ -1635,3 +1635,13 @@ dns_rdatatype_iszonecutauth(dns_rdatatype_t type)
dns_rdatatype_isdnssec(type) ?
ISC_TRUE : ISC_FALSE);
}
isc_boolean_t
dns_rdatatype_isknown(dns_rdatatype_t type)
{
if ((dns_rdatatype_attributes(type) & DNS_RDATATYPEATTR_UNKNOWN)
== 0)
return (ISC_TRUE);
return (ISC_FALSE);
}