"Fossies" - the Fresh Open Source Software Archive

Member "nsd-4.3.6/configparser.h" (6 Apr 2021, 12602 Bytes) of package /linux/misc/dns/nsd-4.3.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "configparser.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 4.3.5_vs_4.3.6.

    1 /* A Bison parser, made by GNU Bison 3.6.4.  */
    2 
    3 /* Bison interface for Yacc-like parsers in C
    4 
    5    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
    6    Inc.
    7 
    8    This program is free software: you can redistribute it and/or modify
    9    it under the terms of the GNU General Public License as published by
   10    the Free Software Foundation, either version 3 of the License, or
   11    (at your option) any later version.
   12 
   13    This program is distributed in the hope that it will be useful,
   14    but WITHOUT ANY WARRANTY; without even the implied warranty of
   15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16    GNU General Public License for more details.
   17 
   18    You should have received a copy of the GNU General Public License
   19    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
   20 
   21 /* As a special exception, you may create a larger work that contains
   22    part or all of the Bison parser skeleton and distribute that work
   23    under terms of your choice, so long as that work isn't itself a
   24    parser generator using the skeleton or a modified version thereof
   25    as a parser skeleton.  Alternatively, if you modify or redistribute
   26    the parser skeleton itself, you may (at your option) remove this
   27    special exception, which will cause the skeleton and the resulting
   28    Bison output files to be licensed under the GNU General Public
   29    License without this special exception.
   30 
   31    This special exception was added by the Free Software Foundation in
   32    version 2.2 of Bison.  */
   33 
   34 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
   35    especially those whose name start with YY_ or yy_.  They are
   36    private implementation details that can be changed or removed.  */
   37 
   38 #ifndef YY_C_CONFIGPARSER_H_INCLUDED
   39 # define YY_C_CONFIGPARSER_H_INCLUDED
   40 /* Debug traces.  */
   41 #ifndef YYDEBUG
   42 # define YYDEBUG 0
   43 #endif
   44 #if YYDEBUG
   45 extern int c_debug;
   46 #endif
   47 
   48 /* Token kinds.  */
   49 #ifndef YYTOKENTYPE
   50 # define YYTOKENTYPE
   51   enum yytokentype
   52   {
   53     YYEMPTY = -2,
   54     YYEOF = 0,                     /* "end of file"  */
   55     YYerror = 256,                 /* error  */
   56     YYUNDEF = 257,                 /* "invalid token"  */
   57     STRING = 258,                  /* STRING  */
   58     VAR_SERVER = 259,              /* VAR_SERVER  */
   59     VAR_SERVER_COUNT = 260,        /* VAR_SERVER_COUNT  */
   60     VAR_IP_ADDRESS = 261,          /* VAR_IP_ADDRESS  */
   61     VAR_IP_TRANSPARENT = 262,      /* VAR_IP_TRANSPARENT  */
   62     VAR_IP_FREEBIND = 263,         /* VAR_IP_FREEBIND  */
   63     VAR_REUSEPORT = 264,           /* VAR_REUSEPORT  */
   64     VAR_SEND_BUFFER_SIZE = 265,    /* VAR_SEND_BUFFER_SIZE  */
   65     VAR_RECEIVE_BUFFER_SIZE = 266, /* VAR_RECEIVE_BUFFER_SIZE  */
   66     VAR_DEBUG_MODE = 267,          /* VAR_DEBUG_MODE  */
   67     VAR_IP4_ONLY = 268,            /* VAR_IP4_ONLY  */
   68     VAR_IP6_ONLY = 269,            /* VAR_IP6_ONLY  */
   69     VAR_DO_IP4 = 270,              /* VAR_DO_IP4  */
   70     VAR_DO_IP6 = 271,              /* VAR_DO_IP6  */
   71     VAR_PORT = 272,                /* VAR_PORT  */
   72     VAR_USE_SYSTEMD = 273,         /* VAR_USE_SYSTEMD  */
   73     VAR_VERBOSITY = 274,           /* VAR_VERBOSITY  */
   74     VAR_USERNAME = 275,            /* VAR_USERNAME  */
   75     VAR_CHROOT = 276,              /* VAR_CHROOT  */
   76     VAR_ZONESDIR = 277,            /* VAR_ZONESDIR  */
   77     VAR_ZONELISTFILE = 278,        /* VAR_ZONELISTFILE  */
   78     VAR_DATABASE = 279,            /* VAR_DATABASE  */
   79     VAR_LOGFILE = 280,             /* VAR_LOGFILE  */
   80     VAR_LOG_ONLY_SYSLOG = 281,     /* VAR_LOG_ONLY_SYSLOG  */
   81     VAR_PIDFILE = 282,             /* VAR_PIDFILE  */
   82     VAR_DIFFFILE = 283,            /* VAR_DIFFFILE  */
   83     VAR_XFRDFILE = 284,            /* VAR_XFRDFILE  */
   84     VAR_XFRDIR = 285,              /* VAR_XFRDIR  */
   85     VAR_HIDE_VERSION = 286,        /* VAR_HIDE_VERSION  */
   86     VAR_HIDE_IDENTITY = 287,       /* VAR_HIDE_IDENTITY  */
   87     VAR_VERSION = 288,             /* VAR_VERSION  */
   88     VAR_IDENTITY = 289,            /* VAR_IDENTITY  */
   89     VAR_NSID = 290,                /* VAR_NSID  */
   90     VAR_TCP_COUNT = 291,           /* VAR_TCP_COUNT  */
   91     VAR_TCP_REJECT_OVERFLOW = 292, /* VAR_TCP_REJECT_OVERFLOW  */
   92     VAR_TCP_QUERY_COUNT = 293,     /* VAR_TCP_QUERY_COUNT  */
   93     VAR_TCP_TIMEOUT = 294,         /* VAR_TCP_TIMEOUT  */
   94     VAR_TCP_MSS = 295,             /* VAR_TCP_MSS  */
   95     VAR_OUTGOING_TCP_MSS = 296,    /* VAR_OUTGOING_TCP_MSS  */
   96     VAR_IPV4_EDNS_SIZE = 297,      /* VAR_IPV4_EDNS_SIZE  */
   97     VAR_IPV6_EDNS_SIZE = 298,      /* VAR_IPV6_EDNS_SIZE  */
   98     VAR_STATISTICS = 299,          /* VAR_STATISTICS  */
   99     VAR_XFRD_RELOAD_TIMEOUT = 300, /* VAR_XFRD_RELOAD_TIMEOUT  */
  100     VAR_LOG_TIME_ASCII = 301,      /* VAR_LOG_TIME_ASCII  */
  101     VAR_ROUND_ROBIN = 302,         /* VAR_ROUND_ROBIN  */
  102     VAR_MINIMAL_RESPONSES = 303,   /* VAR_MINIMAL_RESPONSES  */
  103     VAR_CONFINE_TO_ZONE = 304,     /* VAR_CONFINE_TO_ZONE  */
  104     VAR_REFUSE_ANY = 305,          /* VAR_REFUSE_ANY  */
  105     VAR_ZONEFILES_CHECK = 306,     /* VAR_ZONEFILES_CHECK  */
  106     VAR_ZONEFILES_WRITE = 307,     /* VAR_ZONEFILES_WRITE  */
  107     VAR_RRL_SIZE = 308,            /* VAR_RRL_SIZE  */
  108     VAR_RRL_RATELIMIT = 309,       /* VAR_RRL_RATELIMIT  */
  109     VAR_RRL_SLIP = 310,            /* VAR_RRL_SLIP  */
  110     VAR_RRL_IPV4_PREFIX_LENGTH = 311, /* VAR_RRL_IPV4_PREFIX_LENGTH  */
  111     VAR_RRL_IPV6_PREFIX_LENGTH = 312, /* VAR_RRL_IPV6_PREFIX_LENGTH  */
  112     VAR_RRL_WHITELIST_RATELIMIT = 313, /* VAR_RRL_WHITELIST_RATELIMIT  */
  113     VAR_TLS_SERVICE_KEY = 314,     /* VAR_TLS_SERVICE_KEY  */
  114     VAR_TLS_SERVICE_PEM = 315,     /* VAR_TLS_SERVICE_PEM  */
  115     VAR_TLS_SERVICE_OCSP = 316,    /* VAR_TLS_SERVICE_OCSP  */
  116     VAR_TLS_PORT = 317,            /* VAR_TLS_PORT  */
  117     VAR_CPU_AFFINITY = 318,        /* VAR_CPU_AFFINITY  */
  118     VAR_XFRD_CPU_AFFINITY = 319,   /* VAR_XFRD_CPU_AFFINITY  */
  119     VAR_SERVER_CPU_AFFINITY = 320, /* VAR_SERVER_CPU_AFFINITY  */
  120     VAR_DROP_UPDATES = 321,        /* VAR_DROP_UPDATES  */
  121     VAR_DNSTAP = 322,              /* VAR_DNSTAP  */
  122     VAR_DNSTAP_ENABLE = 323,       /* VAR_DNSTAP_ENABLE  */
  123     VAR_DNSTAP_SOCKET_PATH = 324,  /* VAR_DNSTAP_SOCKET_PATH  */
  124     VAR_DNSTAP_SEND_IDENTITY = 325, /* VAR_DNSTAP_SEND_IDENTITY  */
  125     VAR_DNSTAP_SEND_VERSION = 326, /* VAR_DNSTAP_SEND_VERSION  */
  126     VAR_DNSTAP_IDENTITY = 327,     /* VAR_DNSTAP_IDENTITY  */
  127     VAR_DNSTAP_VERSION = 328,      /* VAR_DNSTAP_VERSION  */
  128     VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES = 329, /* VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES  */
  129     VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES = 330, /* VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES  */
  130     VAR_REMOTE_CONTROL = 331,      /* VAR_REMOTE_CONTROL  */
  131     VAR_CONTROL_ENABLE = 332,      /* VAR_CONTROL_ENABLE  */
  132     VAR_CONTROL_INTERFACE = 333,   /* VAR_CONTROL_INTERFACE  */
  133     VAR_CONTROL_PORT = 334,        /* VAR_CONTROL_PORT  */
  134     VAR_SERVER_KEY_FILE = 335,     /* VAR_SERVER_KEY_FILE  */
  135     VAR_SERVER_CERT_FILE = 336,    /* VAR_SERVER_CERT_FILE  */
  136     VAR_CONTROL_KEY_FILE = 337,    /* VAR_CONTROL_KEY_FILE  */
  137     VAR_CONTROL_CERT_FILE = 338,   /* VAR_CONTROL_CERT_FILE  */
  138     VAR_KEY = 339,                 /* VAR_KEY  */
  139     VAR_ALGORITHM = 340,           /* VAR_ALGORITHM  */
  140     VAR_SECRET = 341,              /* VAR_SECRET  */
  141     VAR_PATTERN = 342,             /* VAR_PATTERN  */
  142     VAR_NAME = 343,                /* VAR_NAME  */
  143     VAR_ZONEFILE = 344,            /* VAR_ZONEFILE  */
  144     VAR_NOTIFY = 345,              /* VAR_NOTIFY  */
  145     VAR_PROVIDE_XFR = 346,         /* VAR_PROVIDE_XFR  */
  146     VAR_ALLOW_QUERY = 347,         /* VAR_ALLOW_QUERY  */
  147     VAR_AXFR = 348,                /* VAR_AXFR  */
  148     VAR_UDP = 349,                 /* VAR_UDP  */
  149     VAR_NOTIFY_RETRY = 350,        /* VAR_NOTIFY_RETRY  */
  150     VAR_ALLOW_NOTIFY = 351,        /* VAR_ALLOW_NOTIFY  */
  151     VAR_REQUEST_XFR = 352,         /* VAR_REQUEST_XFR  */
  152     VAR_ALLOW_AXFR_FALLBACK = 353, /* VAR_ALLOW_AXFR_FALLBACK  */
  153     VAR_OUTGOING_INTERFACE = 354,  /* VAR_OUTGOING_INTERFACE  */
  154     VAR_MAX_REFRESH_TIME = 355,    /* VAR_MAX_REFRESH_TIME  */
  155     VAR_MIN_REFRESH_TIME = 356,    /* VAR_MIN_REFRESH_TIME  */
  156     VAR_MAX_RETRY_TIME = 357,      /* VAR_MAX_RETRY_TIME  */
  157     VAR_MIN_RETRY_TIME = 358,      /* VAR_MIN_RETRY_TIME  */
  158     VAR_MIN_EXPIRE_TIME = 359,     /* VAR_MIN_EXPIRE_TIME  */
  159     VAR_MULTI_MASTER_CHECK = 360,  /* VAR_MULTI_MASTER_CHECK  */
  160     VAR_SIZE_LIMIT_XFR = 361,      /* VAR_SIZE_LIMIT_XFR  */
  161     VAR_ZONESTATS = 362,           /* VAR_ZONESTATS  */
  162     VAR_INCLUDE_PATTERN = 363,     /* VAR_INCLUDE_PATTERN  */
  163     VAR_ZONE = 364,                /* VAR_ZONE  */
  164     VAR_RRL_WHITELIST = 365,       /* VAR_RRL_WHITELIST  */
  165     VAR_SERVERS = 366,             /* VAR_SERVERS  */
  166     VAR_BINDTODEVICE = 367,        /* VAR_BINDTODEVICE  */
  167     VAR_SETFIB = 368               /* VAR_SETFIB  */
  168   };
  169   typedef enum yytokentype yytoken_kind_t;
  170 #endif
  171 /* Token kinds.  */
  172 #define YYEOF 0
  173 #define YYerror 256
  174 #define YYUNDEF 257
  175 #define STRING 258
  176 #define VAR_SERVER 259
  177 #define VAR_SERVER_COUNT 260
  178 #define VAR_IP_ADDRESS 261
  179 #define VAR_IP_TRANSPARENT 262
  180 #define VAR_IP_FREEBIND 263
  181 #define VAR_REUSEPORT 264
  182 #define VAR_SEND_BUFFER_SIZE 265
  183 #define VAR_RECEIVE_BUFFER_SIZE 266
  184 #define VAR_DEBUG_MODE 267
  185 #define VAR_IP4_ONLY 268
  186 #define VAR_IP6_ONLY 269
  187 #define VAR_DO_IP4 270
  188 #define VAR_DO_IP6 271
  189 #define VAR_PORT 272
  190 #define VAR_USE_SYSTEMD 273
  191 #define VAR_VERBOSITY 274
  192 #define VAR_USERNAME 275
  193 #define VAR_CHROOT 276
  194 #define VAR_ZONESDIR 277
  195 #define VAR_ZONELISTFILE 278
  196 #define VAR_DATABASE 279
  197 #define VAR_LOGFILE 280
  198 #define VAR_LOG_ONLY_SYSLOG 281
  199 #define VAR_PIDFILE 282
  200 #define VAR_DIFFFILE 283
  201 #define VAR_XFRDFILE 284
  202 #define VAR_XFRDIR 285
  203 #define VAR_HIDE_VERSION 286
  204 #define VAR_HIDE_IDENTITY 287
  205 #define VAR_VERSION 288
  206 #define VAR_IDENTITY 289
  207 #define VAR_NSID 290
  208 #define VAR_TCP_COUNT 291
  209 #define VAR_TCP_REJECT_OVERFLOW 292
  210 #define VAR_TCP_QUERY_COUNT 293
  211 #define VAR_TCP_TIMEOUT 294
  212 #define VAR_TCP_MSS 295
  213 #define VAR_OUTGOING_TCP_MSS 296
  214 #define VAR_IPV4_EDNS_SIZE 297
  215 #define VAR_IPV6_EDNS_SIZE 298
  216 #define VAR_STATISTICS 299
  217 #define VAR_XFRD_RELOAD_TIMEOUT 300
  218 #define VAR_LOG_TIME_ASCII 301
  219 #define VAR_ROUND_ROBIN 302
  220 #define VAR_MINIMAL_RESPONSES 303
  221 #define VAR_CONFINE_TO_ZONE 304
  222 #define VAR_REFUSE_ANY 305
  223 #define VAR_ZONEFILES_CHECK 306
  224 #define VAR_ZONEFILES_WRITE 307
  225 #define VAR_RRL_SIZE 308
  226 #define VAR_RRL_RATELIMIT 309
  227 #define VAR_RRL_SLIP 310
  228 #define VAR_RRL_IPV4_PREFIX_LENGTH 311
  229 #define VAR_RRL_IPV6_PREFIX_LENGTH 312
  230 #define VAR_RRL_WHITELIST_RATELIMIT 313
  231 #define VAR_TLS_SERVICE_KEY 314
  232 #define VAR_TLS_SERVICE_PEM 315
  233 #define VAR_TLS_SERVICE_OCSP 316
  234 #define VAR_TLS_PORT 317
  235 #define VAR_CPU_AFFINITY 318
  236 #define VAR_XFRD_CPU_AFFINITY 319
  237 #define VAR_SERVER_CPU_AFFINITY 320
  238 #define VAR_DROP_UPDATES 321
  239 #define VAR_DNSTAP 322
  240 #define VAR_DNSTAP_ENABLE 323
  241 #define VAR_DNSTAP_SOCKET_PATH 324
  242 #define VAR_DNSTAP_SEND_IDENTITY 325
  243 #define VAR_DNSTAP_SEND_VERSION 326
  244 #define VAR_DNSTAP_IDENTITY 327
  245 #define VAR_DNSTAP_VERSION 328
  246 #define VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES 329
  247 #define VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES 330
  248 #define VAR_REMOTE_CONTROL 331
  249 #define VAR_CONTROL_ENABLE 332
  250 #define VAR_CONTROL_INTERFACE 333
  251 #define VAR_CONTROL_PORT 334
  252 #define VAR_SERVER_KEY_FILE 335
  253 #define VAR_SERVER_CERT_FILE 336
  254 #define VAR_CONTROL_KEY_FILE 337
  255 #define VAR_CONTROL_CERT_FILE 338
  256 #define VAR_KEY 339
  257 #define VAR_ALGORITHM 340
  258 #define VAR_SECRET 341
  259 #define VAR_PATTERN 342
  260 #define VAR_NAME 343
  261 #define VAR_ZONEFILE 344
  262 #define VAR_NOTIFY 345
  263 #define VAR_PROVIDE_XFR 346
  264 #define VAR_ALLOW_QUERY 347
  265 #define VAR_AXFR 348
  266 #define VAR_UDP 349
  267 #define VAR_NOTIFY_RETRY 350
  268 #define VAR_ALLOW_NOTIFY 351
  269 #define VAR_REQUEST_XFR 352
  270 #define VAR_ALLOW_AXFR_FALLBACK 353
  271 #define VAR_OUTGOING_INTERFACE 354
  272 #define VAR_MAX_REFRESH_TIME 355
  273 #define VAR_MIN_REFRESH_TIME 356
  274 #define VAR_MAX_RETRY_TIME 357
  275 #define VAR_MIN_RETRY_TIME 358
  276 #define VAR_MIN_EXPIRE_TIME 359
  277 #define VAR_MULTI_MASTER_CHECK 360
  278 #define VAR_SIZE_LIMIT_XFR 361
  279 #define VAR_ZONESTATS 362
  280 #define VAR_INCLUDE_PATTERN 363
  281 #define VAR_ZONE 364
  282 #define VAR_RRL_WHITELIST 365
  283 #define VAR_SERVERS 366
  284 #define VAR_BINDTODEVICE 367
  285 #define VAR_SETFIB 368
  286 
  287 /* Value type.  */
  288 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  289 union YYSTYPE
  290 {
  291 #line 40 "configparser.y"
  292 
  293   char *str;
  294   long long llng;
  295   int bln;
  296   struct ip_address_option *ip;
  297   struct range_option *range;
  298   struct cpu_option *cpu;
  299 
  300 #line 301 "configparser.h"
  301 
  302 };
  303 typedef union YYSTYPE YYSTYPE;
  304 # define YYSTYPE_IS_TRIVIAL 1
  305 # define YYSTYPE_IS_DECLARED 1
  306 #endif
  307 
  308 
  309 extern YYSTYPE c_lval;
  310 
  311 int c_parse (void);
  312 
  313 #endif /* !YY_C_CONFIGPARSER_H_INCLUDED  */