2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Add functions to check that a type is only or is not allowed in a question section

This commit is contained in:
Michael Graff
2000-04-14 20:13:49 +00:00
parent 3bb3b7ac46
commit 7ec579cd5d
6 changed files with 91 additions and 29 deletions

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: gen.c,v 1.33 2000/04/07 03:54:03 explorer Exp $ */
/* $Id: gen.c,v 1.34 2000/04/14 20:13:43 explorer Exp $ */
#include <config.h>
@@ -560,6 +560,9 @@ main(int argc, char **argv) {
#define PRINT_COMMA(x) (x == 255 ? "" : ",")
#define METANOTQUESTION "DNS_RDATATYPEATTR_META | DNS_RDATATYPEATTR_NOTQUESTION"
#define METAQUESTIONONLY "DNS_RDATATYPEATTR_META | DNS_RDATATYPEATTR_QUESTIONONLY"
printf("\ntypedef struct {\n");
printf("\tchar *name;\n");
printf("\tunsigned int flags;\n");
@@ -613,13 +616,13 @@ main(int argc, char **argv) {
break;
case 251:
printf("\t{ \"IXFR\", "
"DNS_RDATATYPEATTR_META }%s\n",
METANOTQUESTION " }%s\n",
PRINT_COMMA(i));
special = 1;
break;
case 252:
printf("\t{ \"AXFR\", "
"DNS_RDATATYPEATTR_META }%s\n",
METANOTQUESTION " }%s\n",
PRINT_COMMA(i));
special = 1;
break;
@@ -637,7 +640,7 @@ main(int argc, char **argv) {
break;
case 255:
printf("\t{ \"ANY\", "
"DNS_RDATATYPEATTR_META }%s\n",
METAQUESTIONONLY " }%s\n",
PRINT_COMMA(i));
special = 1;
break;