"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configparser.c" between
nsd-4.3.5.tar.gz and nsd-4.3.6.tar.gz

About: NSD is an authoritative only, high performance, simple name server daemon.

configparser.c  (nsd-4.3.5):configparser.c  (nsd-4.3.6)
/* A Bison parser, made by GNU Bison 3.4.1. */ /* A Bison parser, made by GNU Bison 3.6.4. */
/* Bison implementation for Yacc-like parsers in C /* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
Inc. Inc.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
skipping to change at line 37 skipping to change at line 37
special exception, which will cause the skeleton and the resulting special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public Bison output files to be licensed under the GNU General Public
License without this special exception. License without this special exception.
This special exception was added by the Free Software Foundation in This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */ version 2.2 of Bison. */
/* C LALR(1) parser skeleton written by Richard Stallman, by /* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */ simplifying the original so-called "semantic" parser. */
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
/* All symbols defined below should begin with yy or YY, to avoid /* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros. variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */ USER NAME SPACE" below. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
/* Identify Bison output. */ /* Identify Bison output. */
#define YYBISON 1 #define YYBISON 1
/* Bison version. */ /* Bison version. */
#define YYBISON_VERSION "3.4.1" #define YYBISON_VERSION "3.6.4"
/* Skeleton name. */ /* Skeleton name. */
#define YYSKELETON_NAME "yacc.c" #define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */ /* Pure parsers. */
#define YYPURE 0 #define YYPURE 0
/* Push parsers. */ /* Push parsers. */
#define YYPUSH 0 #define YYPUSH 0
/* Pull parsers. */ /* Pull parsers. */
#define YYPULL 1 #define YYPULL 1
/* Substitute the variable and function names. */
#define yyparse c_parse
#define yylex c_lex
#define yyerror c_error
#define yydebug c_debug
#define yynerrs c_nerrs
#define yylval c_lval
#define yychar c_char
/* First part of user prologue. */ /* First part of user prologue. */
#line 10 "configparser.y" #line 10 "configparser.y"
#include "config.h" #include "config.h"
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "options.h" #include "options.h"
#include "util.h" #include "util.h"
#include "dname.h" #include "dname.h"
#include "tsig.h" #include "tsig.h"
#include "rrl.h" #include "rrl.h"
#include "configyyrename.h"
int yylex(void); int yylex(void);
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* these need to be global, otherwise they cannot be used inside yacc */ /* these need to be global, otherwise they cannot be used inside yacc */
extern config_parser_state_type *cfg_parser; extern config_parser_state_type *cfg_parser;
static void append_acl(struct acl_options **list, struct acl_options *acl); static void append_acl(struct acl_options **list, struct acl_options *acl);
static int parse_boolean(const char *str, int *bln); static int parse_boolean(const char *str, int *bln);
static int parse_expire_expr(const char *str, long long *num, uint8_t *expr); static int parse_expire_expr(const char *str, long long *num, uint8_t *expr);
static int parse_number(const char *str, long long *num); static int parse_number(const char *str, long long *num);
static int parse_range(const char *str, long long *low, long long *high); static int parse_range(const char *str, long long *low, long long *high);
#line 101 "configparser.c" #line 108 "configparser.c"
# ifndef YY_CAST
# ifdef __cplusplus
# define YY_CAST(Type, Val) static_cast<Type> (Val)
# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
# else
# define YY_CAST(Type, Val) ((Type) (Val))
# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
# endif
# endif
# ifndef YY_NULLPTR # ifndef YY_NULLPTR
# if defined __cplusplus # if defined __cplusplus
# if 201103L <= __cplusplus # if 201103L <= __cplusplus
# define YY_NULLPTR nullptr # define YY_NULLPTR nullptr
# else # else
# define YY_NULLPTR 0 # define YY_NULLPTR 0
# endif # endif
# else # else
# define YY_NULLPTR ((void*)0) # define YY_NULLPTR ((void*)0)
# endif # endif
# endif # endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif
/* Use api.header.include to #include this header /* Use api.header.include to #include this header
instead of duplicating it here. */ instead of duplicating it here. */
#ifndef YY_YY_CONFIGPARSER_H_INCLUDED #ifndef YY_C_CONFIGPARSER_H_INCLUDED
# define YY_YY_CONFIGPARSER_H_INCLUDED # define YY_C_CONFIGPARSER_H_INCLUDED
/* Debug traces. */ /* Debug traces. */
#ifndef YYDEBUG #ifndef YYDEBUG
# define YYDEBUG 0 # define YYDEBUG 0
#endif #endif
#if YYDEBUG #if YYDEBUG
extern int yydebug; extern int c_debug;
#endif #endif
/* Token type. */ /* Token kinds. */
#ifndef YYTOKENTYPE #ifndef YYTOKENTYPE
# define YYTOKENTYPE # define YYTOKENTYPE
enum yytokentype enum yytokentype
{ {
STRING = 258, YYEMPTY = -2,
VAR_SERVER = 259, YYEOF = 0, /* "end of file" */
VAR_SERVER_COUNT = 260, YYerror = 256, /* error */
VAR_IP_ADDRESS = 261, YYUNDEF = 257, /* "invalid token" */
VAR_IP_TRANSPARENT = 262, STRING = 258, /* STRING */
VAR_IP_FREEBIND = 263, VAR_SERVER = 259, /* VAR_SERVER */
VAR_REUSEPORT = 264, VAR_SERVER_COUNT = 260, /* VAR_SERVER_COUNT */
VAR_SEND_BUFFER_SIZE = 265, VAR_IP_ADDRESS = 261, /* VAR_IP_ADDRESS */
VAR_RECEIVE_BUFFER_SIZE = 266, VAR_IP_TRANSPARENT = 262, /* VAR_IP_TRANSPARENT */
VAR_DEBUG_MODE = 267, VAR_IP_FREEBIND = 263, /* VAR_IP_FREEBIND */
VAR_IP4_ONLY = 268, VAR_REUSEPORT = 264, /* VAR_REUSEPORT */
VAR_IP6_ONLY = 269, VAR_SEND_BUFFER_SIZE = 265, /* VAR_SEND_BUFFER_SIZE */
VAR_DO_IP4 = 270, VAR_RECEIVE_BUFFER_SIZE = 266, /* VAR_RECEIVE_BUFFER_SIZE */
VAR_DO_IP6 = 271, VAR_DEBUG_MODE = 267, /* VAR_DEBUG_MODE */
VAR_PORT = 272, VAR_IP4_ONLY = 268, /* VAR_IP4_ONLY */
VAR_USE_SYSTEMD = 273, VAR_IP6_ONLY = 269, /* VAR_IP6_ONLY */
VAR_VERBOSITY = 274, VAR_DO_IP4 = 270, /* VAR_DO_IP4 */
VAR_USERNAME = 275, VAR_DO_IP6 = 271, /* VAR_DO_IP6 */
VAR_CHROOT = 276, VAR_PORT = 272, /* VAR_PORT */
VAR_ZONESDIR = 277, VAR_USE_SYSTEMD = 273, /* VAR_USE_SYSTEMD */
VAR_ZONELISTFILE = 278, VAR_VERBOSITY = 274, /* VAR_VERBOSITY */
VAR_DATABASE = 279, VAR_USERNAME = 275, /* VAR_USERNAME */
VAR_LOGFILE = 280, VAR_CHROOT = 276, /* VAR_CHROOT */
VAR_LOG_ONLY_SYSLOG = 281, VAR_ZONESDIR = 277, /* VAR_ZONESDIR */
VAR_PIDFILE = 282, VAR_ZONELISTFILE = 278, /* VAR_ZONELISTFILE */
VAR_DIFFFILE = 283, VAR_DATABASE = 279, /* VAR_DATABASE */
VAR_XFRDFILE = 284, VAR_LOGFILE = 280, /* VAR_LOGFILE */
VAR_XFRDIR = 285, VAR_LOG_ONLY_SYSLOG = 281, /* VAR_LOG_ONLY_SYSLOG */
VAR_HIDE_VERSION = 286, VAR_PIDFILE = 282, /* VAR_PIDFILE */
VAR_HIDE_IDENTITY = 287, VAR_DIFFFILE = 283, /* VAR_DIFFFILE */
VAR_VERSION = 288, VAR_XFRDFILE = 284, /* VAR_XFRDFILE */
VAR_IDENTITY = 289, VAR_XFRDIR = 285, /* VAR_XFRDIR */
VAR_NSID = 290, VAR_HIDE_VERSION = 286, /* VAR_HIDE_VERSION */
VAR_TCP_COUNT = 291, VAR_HIDE_IDENTITY = 287, /* VAR_HIDE_IDENTITY */
VAR_TCP_REJECT_OVERFLOW = 292, VAR_VERSION = 288, /* VAR_VERSION */
VAR_TCP_QUERY_COUNT = 293, VAR_IDENTITY = 289, /* VAR_IDENTITY */
VAR_TCP_TIMEOUT = 294, VAR_NSID = 290, /* VAR_NSID */
VAR_TCP_MSS = 295, VAR_TCP_COUNT = 291, /* VAR_TCP_COUNT */
VAR_OUTGOING_TCP_MSS = 296, VAR_TCP_REJECT_OVERFLOW = 292, /* VAR_TCP_REJECT_OVERFLOW */
VAR_IPV4_EDNS_SIZE = 297, VAR_TCP_QUERY_COUNT = 293, /* VAR_TCP_QUERY_COUNT */
VAR_IPV6_EDNS_SIZE = 298, VAR_TCP_TIMEOUT = 294, /* VAR_TCP_TIMEOUT */
VAR_STATISTICS = 299, VAR_TCP_MSS = 295, /* VAR_TCP_MSS */
VAR_XFRD_RELOAD_TIMEOUT = 300, VAR_OUTGOING_TCP_MSS = 296, /* VAR_OUTGOING_TCP_MSS */
VAR_LOG_TIME_ASCII = 301, VAR_IPV4_EDNS_SIZE = 297, /* VAR_IPV4_EDNS_SIZE */
VAR_ROUND_ROBIN = 302, VAR_IPV6_EDNS_SIZE = 298, /* VAR_IPV6_EDNS_SIZE */
VAR_MINIMAL_RESPONSES = 303, VAR_STATISTICS = 299, /* VAR_STATISTICS */
VAR_CONFINE_TO_ZONE = 304, VAR_XFRD_RELOAD_TIMEOUT = 300, /* VAR_XFRD_RELOAD_TIMEOUT */
VAR_REFUSE_ANY = 305, VAR_LOG_TIME_ASCII = 301, /* VAR_LOG_TIME_ASCII */
VAR_ZONEFILES_CHECK = 306, VAR_ROUND_ROBIN = 302, /* VAR_ROUND_ROBIN */
VAR_ZONEFILES_WRITE = 307, VAR_MINIMAL_RESPONSES = 303, /* VAR_MINIMAL_RESPONSES */
VAR_RRL_SIZE = 308, VAR_CONFINE_TO_ZONE = 304, /* VAR_CONFINE_TO_ZONE */
VAR_RRL_RATELIMIT = 309, VAR_REFUSE_ANY = 305, /* VAR_REFUSE_ANY */
VAR_RRL_SLIP = 310, VAR_ZONEFILES_CHECK = 306, /* VAR_ZONEFILES_CHECK */
VAR_RRL_IPV4_PREFIX_LENGTH = 311, VAR_ZONEFILES_WRITE = 307, /* VAR_ZONEFILES_WRITE */
VAR_RRL_IPV6_PREFIX_LENGTH = 312, VAR_RRL_SIZE = 308, /* VAR_RRL_SIZE */
VAR_RRL_WHITELIST_RATELIMIT = 313, VAR_RRL_RATELIMIT = 309, /* VAR_RRL_RATELIMIT */
VAR_TLS_SERVICE_KEY = 314, VAR_RRL_SLIP = 310, /* VAR_RRL_SLIP */
VAR_TLS_SERVICE_PEM = 315, VAR_RRL_IPV4_PREFIX_LENGTH = 311, /* VAR_RRL_IPV4_PREFIX_LENGTH */
VAR_TLS_SERVICE_OCSP = 316, VAR_RRL_IPV6_PREFIX_LENGTH = 312, /* VAR_RRL_IPV6_PREFIX_LENGTH */
VAR_TLS_PORT = 317, VAR_RRL_WHITELIST_RATELIMIT = 313, /* VAR_RRL_WHITELIST_RATELIMIT */
VAR_CPU_AFFINITY = 318, VAR_TLS_SERVICE_KEY = 314, /* VAR_TLS_SERVICE_KEY */
VAR_XFRD_CPU_AFFINITY = 319, VAR_TLS_SERVICE_PEM = 315, /* VAR_TLS_SERVICE_PEM */
VAR_SERVER_CPU_AFFINITY = 320, VAR_TLS_SERVICE_OCSP = 316, /* VAR_TLS_SERVICE_OCSP */
VAR_DROP_UPDATES = 321, VAR_TLS_PORT = 317, /* VAR_TLS_PORT */
VAR_DNSTAP = 322, VAR_CPU_AFFINITY = 318, /* VAR_CPU_AFFINITY */
VAR_DNSTAP_ENABLE = 323, VAR_XFRD_CPU_AFFINITY = 319, /* VAR_XFRD_CPU_AFFINITY */
VAR_DNSTAP_SOCKET_PATH = 324, VAR_SERVER_CPU_AFFINITY = 320, /* VAR_SERVER_CPU_AFFINITY */
VAR_DNSTAP_SEND_IDENTITY = 325, VAR_DROP_UPDATES = 321, /* VAR_DROP_UPDATES */
VAR_DNSTAP_SEND_VERSION = 326, VAR_DNSTAP = 322, /* VAR_DNSTAP */
VAR_DNSTAP_IDENTITY = 327, VAR_DNSTAP_ENABLE = 323, /* VAR_DNSTAP_ENABLE */
VAR_DNSTAP_VERSION = 328, VAR_DNSTAP_SOCKET_PATH = 324, /* VAR_DNSTAP_SOCKET_PATH */
VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES = 329, VAR_DNSTAP_SEND_IDENTITY = 325, /* VAR_DNSTAP_SEND_IDENTITY */
VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES = 330, VAR_DNSTAP_SEND_VERSION = 326, /* VAR_DNSTAP_SEND_VERSION */
VAR_REMOTE_CONTROL = 331, VAR_DNSTAP_IDENTITY = 327, /* VAR_DNSTAP_IDENTITY */
VAR_CONTROL_ENABLE = 332, VAR_DNSTAP_VERSION = 328, /* VAR_DNSTAP_VERSION */
VAR_CONTROL_INTERFACE = 333, VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES = 329, /* VAR_DNSTAP_LOG_AUTH_QUERY_MESSA
VAR_CONTROL_PORT = 334, GES */
VAR_SERVER_KEY_FILE = 335, VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES = 330, /* VAR_DNSTAP_LOG_AUTH_RESPONSE
VAR_SERVER_CERT_FILE = 336, _MESSAGES */
VAR_CONTROL_KEY_FILE = 337, VAR_REMOTE_CONTROL = 331, /* VAR_REMOTE_CONTROL */
VAR_CONTROL_CERT_FILE = 338, VAR_CONTROL_ENABLE = 332, /* VAR_CONTROL_ENABLE */
VAR_KEY = 339, VAR_CONTROL_INTERFACE = 333, /* VAR_CONTROL_INTERFACE */
VAR_ALGORITHM = 340, VAR_CONTROL_PORT = 334, /* VAR_CONTROL_PORT */
VAR_SECRET = 341, VAR_SERVER_KEY_FILE = 335, /* VAR_SERVER_KEY_FILE */
VAR_PATTERN = 342, VAR_SERVER_CERT_FILE = 336, /* VAR_SERVER_CERT_FILE */
VAR_NAME = 343, VAR_CONTROL_KEY_FILE = 337, /* VAR_CONTROL_KEY_FILE */
VAR_ZONEFILE = 344, VAR_CONTROL_CERT_FILE = 338, /* VAR_CONTROL_CERT_FILE */
VAR_NOTIFY = 345, VAR_KEY = 339, /* VAR_KEY */
VAR_PROVIDE_XFR = 346, VAR_ALGORITHM = 340, /* VAR_ALGORITHM */
VAR_AXFR = 347, VAR_SECRET = 341, /* VAR_SECRET */
VAR_UDP = 348, VAR_PATTERN = 342, /* VAR_PATTERN */
VAR_NOTIFY_RETRY = 349, VAR_NAME = 343, /* VAR_NAME */
VAR_ALLOW_NOTIFY = 350, VAR_ZONEFILE = 344, /* VAR_ZONEFILE */
VAR_REQUEST_XFR = 351, VAR_NOTIFY = 345, /* VAR_NOTIFY */
VAR_ALLOW_AXFR_FALLBACK = 352, VAR_PROVIDE_XFR = 346, /* VAR_PROVIDE_XFR */
VAR_OUTGOING_INTERFACE = 353, VAR_ALLOW_QUERY = 347, /* VAR_ALLOW_QUERY */
VAR_MAX_REFRESH_TIME = 354, VAR_AXFR = 348, /* VAR_AXFR */
VAR_MIN_REFRESH_TIME = 355, VAR_UDP = 349, /* VAR_UDP */
VAR_MAX_RETRY_TIME = 356, VAR_NOTIFY_RETRY = 350, /* VAR_NOTIFY_RETRY */
VAR_MIN_RETRY_TIME = 357, VAR_ALLOW_NOTIFY = 351, /* VAR_ALLOW_NOTIFY */
VAR_MIN_EXPIRE_TIME = 358, VAR_REQUEST_XFR = 352, /* VAR_REQUEST_XFR */
VAR_MULTI_MASTER_CHECK = 359, VAR_ALLOW_AXFR_FALLBACK = 353, /* VAR_ALLOW_AXFR_FALLBACK */
VAR_SIZE_LIMIT_XFR = 360, VAR_OUTGOING_INTERFACE = 354, /* VAR_OUTGOING_INTERFACE */
VAR_ZONESTATS = 361, VAR_MAX_REFRESH_TIME = 355, /* VAR_MAX_REFRESH_TIME */
VAR_INCLUDE_PATTERN = 362, VAR_MIN_REFRESH_TIME = 356, /* VAR_MIN_REFRESH_TIME */
VAR_ZONE = 363, VAR_MAX_RETRY_TIME = 357, /* VAR_MAX_RETRY_TIME */
VAR_RRL_WHITELIST = 364, VAR_MIN_RETRY_TIME = 358, /* VAR_MIN_RETRY_TIME */
VAR_SERVERS = 365, VAR_MIN_EXPIRE_TIME = 359, /* VAR_MIN_EXPIRE_TIME */
VAR_BINDTODEVICE = 366, VAR_MULTI_MASTER_CHECK = 360, /* VAR_MULTI_MASTER_CHECK */
VAR_SETFIB = 367 VAR_SIZE_LIMIT_XFR = 361, /* VAR_SIZE_LIMIT_XFR */
VAR_ZONESTATS = 362, /* VAR_ZONESTATS */
VAR_INCLUDE_PATTERN = 363, /* VAR_INCLUDE_PATTERN */
VAR_ZONE = 364, /* VAR_ZONE */
VAR_RRL_WHITELIST = 365, /* VAR_RRL_WHITELIST */
VAR_SERVERS = 366, /* VAR_SERVERS */
VAR_BINDTODEVICE = 367, /* VAR_BINDTODEVICE */
VAR_SETFIB = 368 /* VAR_SETFIB */
}; };
typedef enum yytokentype yytoken_kind_t;
#endif #endif
/* Tokens. */ /* Token kinds. */
#define YYEOF 0
#define YYerror 256
#define YYUNDEF 257
#define STRING 258 #define STRING 258
#define VAR_SERVER 259 #define VAR_SERVER 259
#define VAR_SERVER_COUNT 260 #define VAR_SERVER_COUNT 260
#define VAR_IP_ADDRESS 261 #define VAR_IP_ADDRESS 261
#define VAR_IP_TRANSPARENT 262 #define VAR_IP_TRANSPARENT 262
#define VAR_IP_FREEBIND 263 #define VAR_IP_FREEBIND 263
#define VAR_REUSEPORT 264 #define VAR_REUSEPORT 264
#define VAR_SEND_BUFFER_SIZE 265 #define VAR_SEND_BUFFER_SIZE 265
#define VAR_RECEIVE_BUFFER_SIZE 266 #define VAR_RECEIVE_BUFFER_SIZE 266
#define VAR_DEBUG_MODE 267 #define VAR_DEBUG_MODE 267
skipping to change at line 338 skipping to change at line 357
#define VAR_CONTROL_KEY_FILE 337 #define VAR_CONTROL_KEY_FILE 337
#define VAR_CONTROL_CERT_FILE 338 #define VAR_CONTROL_CERT_FILE 338
#define VAR_KEY 339 #define VAR_KEY 339
#define VAR_ALGORITHM 340 #define VAR_ALGORITHM 340
#define VAR_SECRET 341 #define VAR_SECRET 341
#define VAR_PATTERN 342 #define VAR_PATTERN 342
#define VAR_NAME 343 #define VAR_NAME 343
#define VAR_ZONEFILE 344 #define VAR_ZONEFILE 344
#define VAR_NOTIFY 345 #define VAR_NOTIFY 345
#define VAR_PROVIDE_XFR 346 #define VAR_PROVIDE_XFR 346
#define VAR_AXFR 347 #define VAR_ALLOW_QUERY 347
#define VAR_UDP 348 #define VAR_AXFR 348
#define VAR_NOTIFY_RETRY 349 #define VAR_UDP 349
#define VAR_ALLOW_NOTIFY 350 #define VAR_NOTIFY_RETRY 350
#define VAR_REQUEST_XFR 351 #define VAR_ALLOW_NOTIFY 351
#define VAR_ALLOW_AXFR_FALLBACK 352 #define VAR_REQUEST_XFR 352
#define VAR_OUTGOING_INTERFACE 353 #define VAR_ALLOW_AXFR_FALLBACK 353
#define VAR_MAX_REFRESH_TIME 354 #define VAR_OUTGOING_INTERFACE 354
#define VAR_MIN_REFRESH_TIME 355 #define VAR_MAX_REFRESH_TIME 355
#define VAR_MAX_RETRY_TIME 356 #define VAR_MIN_REFRESH_TIME 356
#define VAR_MIN_RETRY_TIME 357 #define VAR_MAX_RETRY_TIME 357
#define VAR_MIN_EXPIRE_TIME 358 #define VAR_MIN_RETRY_TIME 358
#define VAR_MULTI_MASTER_CHECK 359 #define VAR_MIN_EXPIRE_TIME 359
#define VAR_SIZE_LIMIT_XFR 360 #define VAR_MULTI_MASTER_CHECK 360
#define VAR_ZONESTATS 361 #define VAR_SIZE_LIMIT_XFR 361
#define VAR_INCLUDE_PATTERN 362 #define VAR_ZONESTATS 362
#define VAR_ZONE 363 #define VAR_INCLUDE_PATTERN 363
#define VAR_RRL_WHITELIST 364 #define VAR_ZONE 364
#define VAR_SERVERS 365 #define VAR_RRL_WHITELIST 365
#define VAR_BINDTODEVICE 366 #define VAR_SERVERS 366
#define VAR_SETFIB 367 #define VAR_BINDTODEVICE 367
#define VAR_SETFIB 368
/* Value type. */ /* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE union YYSTYPE
{ {
#line 41 "configparser.y" #line 40 "configparser.y"
char *str; char *str;
long long llng; long long llng;
int bln; int bln;
struct ip_address_option *ip; struct ip_address_option *ip;
struct range_option *range; struct range_option *range;
struct cpu_option *cpu; struct cpu_option *cpu;
#line 377 "configparser.c" #line 395 "configparser.c"
}; };
typedef union YYSTYPE YYSTYPE; typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1
#endif #endif
extern YYSTYPE yylval; extern YYSTYPE c_lval;
int yyparse (void); int c_parse (void);
#endif /* !YY_YY_CONFIGPARSER_H_INCLUDED */ #endif /* !YY_C_CONFIGPARSER_H_INCLUDED */
/* Symbol kind. */
enum yysymbol_kind_t
{
YYSYMBOL_YYEMPTY = -2,
YYSYMBOL_YYEOF = 0, /* "end of file" */
YYSYMBOL_YYerror = 1, /* error */
YYSYMBOL_YYUNDEF = 2, /* "invalid token" */
YYSYMBOL_STRING = 3, /* STRING */
YYSYMBOL_VAR_SERVER = 4, /* VAR_SERVER */
YYSYMBOL_VAR_SERVER_COUNT = 5, /* VAR_SERVER_COUNT */
YYSYMBOL_VAR_IP_ADDRESS = 6, /* VAR_IP_ADDRESS */
YYSYMBOL_VAR_IP_TRANSPARENT = 7, /* VAR_IP_TRANSPARENT */
YYSYMBOL_VAR_IP_FREEBIND = 8, /* VAR_IP_FREEBIND */
YYSYMBOL_VAR_REUSEPORT = 9, /* VAR_REUSEPORT */
YYSYMBOL_VAR_SEND_BUFFER_SIZE = 10, /* VAR_SEND_BUFFER_SIZE */
YYSYMBOL_VAR_RECEIVE_BUFFER_SIZE = 11, /* VAR_RECEIVE_BUFFER_SIZE */
YYSYMBOL_VAR_DEBUG_MODE = 12, /* VAR_DEBUG_MODE */
YYSYMBOL_VAR_IP4_ONLY = 13, /* VAR_IP4_ONLY */
YYSYMBOL_VAR_IP6_ONLY = 14, /* VAR_IP6_ONLY */
YYSYMBOL_VAR_DO_IP4 = 15, /* VAR_DO_IP4 */
YYSYMBOL_VAR_DO_IP6 = 16, /* VAR_DO_IP6 */
YYSYMBOL_VAR_PORT = 17, /* VAR_PORT */
YYSYMBOL_VAR_USE_SYSTEMD = 18, /* VAR_USE_SYSTEMD */
YYSYMBOL_VAR_VERBOSITY = 19, /* VAR_VERBOSITY */
YYSYMBOL_VAR_USERNAME = 20, /* VAR_USERNAME */
YYSYMBOL_VAR_CHROOT = 21, /* VAR_CHROOT */
YYSYMBOL_VAR_ZONESDIR = 22, /* VAR_ZONESDIR */
YYSYMBOL_VAR_ZONELISTFILE = 23, /* VAR_ZONELISTFILE */
YYSYMBOL_VAR_DATABASE = 24, /* VAR_DATABASE */
YYSYMBOL_VAR_LOGFILE = 25, /* VAR_LOGFILE */
YYSYMBOL_VAR_LOG_ONLY_SYSLOG = 26, /* VAR_LOG_ONLY_SYSLOG */
YYSYMBOL_VAR_PIDFILE = 27, /* VAR_PIDFILE */
YYSYMBOL_VAR_DIFFFILE = 28, /* VAR_DIFFFILE */
YYSYMBOL_VAR_XFRDFILE = 29, /* VAR_XFRDFILE */
YYSYMBOL_VAR_XFRDIR = 30, /* VAR_XFRDIR */
YYSYMBOL_VAR_HIDE_VERSION = 31, /* VAR_HIDE_VERSION */
YYSYMBOL_VAR_HIDE_IDENTITY = 32, /* VAR_HIDE_IDENTITY */
YYSYMBOL_VAR_VERSION = 33, /* VAR_VERSION */
YYSYMBOL_VAR_IDENTITY = 34, /* VAR_IDENTITY */
YYSYMBOL_VAR_NSID = 35, /* VAR_NSID */
YYSYMBOL_VAR_TCP_COUNT = 36, /* VAR_TCP_COUNT */
YYSYMBOL_VAR_TCP_REJECT_OVERFLOW = 37, /* VAR_TCP_REJECT_OVERFLOW */
YYSYMBOL_VAR_TCP_QUERY_COUNT = 38, /* VAR_TCP_QUERY_COUNT */
YYSYMBOL_VAR_TCP_TIMEOUT = 39, /* VAR_TCP_TIMEOUT */
YYSYMBOL_VAR_TCP_MSS = 40, /* VAR_TCP_MSS */
YYSYMBOL_VAR_OUTGOING_TCP_MSS = 41, /* VAR_OUTGOING_TCP_MSS */
YYSYMBOL_VAR_IPV4_EDNS_SIZE = 42, /* VAR_IPV4_EDNS_SIZE */
YYSYMBOL_VAR_IPV6_EDNS_SIZE = 43, /* VAR_IPV6_EDNS_SIZE */
YYSYMBOL_VAR_STATISTICS = 44, /* VAR_STATISTICS */
YYSYMBOL_VAR_XFRD_RELOAD_TIMEOUT = 45, /* VAR_XFRD_RELOAD_TIMEOUT */
YYSYMBOL_VAR_LOG_TIME_ASCII = 46, /* VAR_LOG_TIME_ASCII */
YYSYMBOL_VAR_ROUND_ROBIN = 47, /* VAR_ROUND_ROBIN */
YYSYMBOL_VAR_MINIMAL_RESPONSES = 48, /* VAR_MINIMAL_RESPONSES */
YYSYMBOL_VAR_CONFINE_TO_ZONE = 49, /* VAR_CONFINE_TO_ZONE */
YYSYMBOL_VAR_REFUSE_ANY = 50, /* VAR_REFUSE_ANY */
YYSYMBOL_VAR_ZONEFILES_CHECK = 51, /* VAR_ZONEFILES_CHECK */
YYSYMBOL_VAR_ZONEFILES_WRITE = 52, /* VAR_ZONEFILES_WRITE */
YYSYMBOL_VAR_RRL_SIZE = 53, /* VAR_RRL_SIZE */
YYSYMBOL_VAR_RRL_RATELIMIT = 54, /* VAR_RRL_RATELIMIT */
YYSYMBOL_VAR_RRL_SLIP = 55, /* VAR_RRL_SLIP */
YYSYMBOL_VAR_RRL_IPV4_PREFIX_LENGTH = 56, /* VAR_RRL_IPV4_PREFIX_LENGTH */
YYSYMBOL_VAR_RRL_IPV6_PREFIX_LENGTH = 57, /* VAR_RRL_IPV6_PREFIX_LENGTH */
YYSYMBOL_VAR_RRL_WHITELIST_RATELIMIT = 58, /* VAR_RRL_WHITELIST_RATELIMIT */
YYSYMBOL_VAR_TLS_SERVICE_KEY = 59, /* VAR_TLS_SERVICE_KEY */
YYSYMBOL_VAR_TLS_SERVICE_PEM = 60, /* VAR_TLS_SERVICE_PEM */
YYSYMBOL_VAR_TLS_SERVICE_OCSP = 61, /* VAR_TLS_SERVICE_OCSP */
YYSYMBOL_VAR_TLS_PORT = 62, /* VAR_TLS_PORT */
YYSYMBOL_VAR_CPU_AFFINITY = 63, /* VAR_CPU_AFFINITY */
YYSYMBOL_VAR_XFRD_CPU_AFFINITY = 64, /* VAR_XFRD_CPU_AFFINITY */
YYSYMBOL_VAR_SERVER_CPU_AFFINITY = 65, /* VAR_SERVER_CPU_AFFINITY */
YYSYMBOL_VAR_DROP_UPDATES = 66, /* VAR_DROP_UPDATES */
YYSYMBOL_VAR_DNSTAP = 67, /* VAR_DNSTAP */
YYSYMBOL_VAR_DNSTAP_ENABLE = 68, /* VAR_DNSTAP_ENABLE */
YYSYMBOL_VAR_DNSTAP_SOCKET_PATH = 69, /* VAR_DNSTAP_SOCKET_PATH */
YYSYMBOL_VAR_DNSTAP_SEND_IDENTITY = 70, /* VAR_DNSTAP_SEND_IDENTITY */
YYSYMBOL_VAR_DNSTAP_SEND_VERSION = 71, /* VAR_DNSTAP_SEND_VERSION */
YYSYMBOL_VAR_DNSTAP_IDENTITY = 72, /* VAR_DNSTAP_IDENTITY */
YYSYMBOL_VAR_DNSTAP_VERSION = 73, /* VAR_DNSTAP_VERSION */
YYSYMBOL_VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES = 74, /* VAR_DNSTAP_LOG_AUTH_QUERY
_MESSAGES */
YYSYMBOL_VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES = 75, /* VAR_DNSTAP_LOG_AUTH_RE
SPONSE_MESSAGES */
YYSYMBOL_VAR_REMOTE_CONTROL = 76, /* VAR_REMOTE_CONTROL */
YYSYMBOL_VAR_CONTROL_ENABLE = 77, /* VAR_CONTROL_ENABLE */
YYSYMBOL_VAR_CONTROL_INTERFACE = 78, /* VAR_CONTROL_INTERFACE */
YYSYMBOL_VAR_CONTROL_PORT = 79, /* VAR_CONTROL_PORT */
YYSYMBOL_VAR_SERVER_KEY_FILE = 80, /* VAR_SERVER_KEY_FILE */
YYSYMBOL_VAR_SERVER_CERT_FILE = 81, /* VAR_SERVER_CERT_FILE */
YYSYMBOL_VAR_CONTROL_KEY_FILE = 82, /* VAR_CONTROL_KEY_FILE */
YYSYMBOL_VAR_CONTROL_CERT_FILE = 83, /* VAR_CONTROL_CERT_FILE */
YYSYMBOL_VAR_KEY = 84, /* VAR_KEY */
YYSYMBOL_VAR_ALGORITHM = 85, /* VAR_ALGORITHM */
YYSYMBOL_VAR_SECRET = 86, /* VAR_SECRET */
YYSYMBOL_VAR_PATTERN = 87, /* VAR_PATTERN */
YYSYMBOL_VAR_NAME = 88, /* VAR_NAME */
YYSYMBOL_VAR_ZONEFILE = 89, /* VAR_ZONEFILE */
YYSYMBOL_VAR_NOTIFY = 90, /* VAR_NOTIFY */
YYSYMBOL_VAR_PROVIDE_XFR = 91, /* VAR_PROVIDE_XFR */
YYSYMBOL_VAR_ALLOW_QUERY = 92, /* VAR_ALLOW_QUERY */
YYSYMBOL_VAR_AXFR = 93, /* VAR_AXFR */
YYSYMBOL_VAR_UDP = 94, /* VAR_UDP */
YYSYMBOL_VAR_NOTIFY_RETRY = 95, /* VAR_NOTIFY_RETRY */
YYSYMBOL_VAR_ALLOW_NOTIFY = 96, /* VAR_ALLOW_NOTIFY */
YYSYMBOL_VAR_REQUEST_XFR = 97, /* VAR_REQUEST_XFR */
YYSYMBOL_VAR_ALLOW_AXFR_FALLBACK = 98, /* VAR_ALLOW_AXFR_FALLBACK */
YYSYMBOL_VAR_OUTGOING_INTERFACE = 99, /* VAR_OUTGOING_INTERFACE */
YYSYMBOL_VAR_MAX_REFRESH_TIME = 100, /* VAR_MAX_REFRESH_TIME */
YYSYMBOL_VAR_MIN_REFRESH_TIME = 101, /* VAR_MIN_REFRESH_TIME */
YYSYMBOL_VAR_MAX_RETRY_TIME = 102, /* VAR_MAX_RETRY_TIME */
YYSYMBOL_VAR_MIN_RETRY_TIME = 103, /* VAR_MIN_RETRY_TIME */
YYSYMBOL_VAR_MIN_EXPIRE_TIME = 104, /* VAR_MIN_EXPIRE_TIME */
YYSYMBOL_VAR_MULTI_MASTER_CHECK = 105, /* VAR_MULTI_MASTER_CHECK */
YYSYMBOL_VAR_SIZE_LIMIT_XFR = 106, /* VAR_SIZE_LIMIT_XFR */
YYSYMBOL_VAR_ZONESTATS = 107, /* VAR_ZONESTATS */
YYSYMBOL_VAR_INCLUDE_PATTERN = 108, /* VAR_INCLUDE_PATTERN */
YYSYMBOL_VAR_ZONE = 109, /* VAR_ZONE */
YYSYMBOL_VAR_RRL_WHITELIST = 110, /* VAR_RRL_WHITELIST */
YYSYMBOL_VAR_SERVERS = 111, /* VAR_SERVERS */
YYSYMBOL_VAR_BINDTODEVICE = 112, /* VAR_BINDTODEVICE */
YYSYMBOL_VAR_SETFIB = 113, /* VAR_SETFIB */
YYSYMBOL_YYACCEPT = 114, /* $accept */
YYSYMBOL_blocks = 115, /* blocks */
YYSYMBOL_block = 116, /* block */
YYSYMBOL_server = 117, /* server */
YYSYMBOL_server_block = 118, /* server_block */
YYSYMBOL_server_option = 119, /* server_option */
YYSYMBOL_120_1 = 120, /* $@1 */
YYSYMBOL_socket_options = 121, /* socket_options */
YYSYMBOL_socket_option = 122, /* socket_option */
YYSYMBOL_cpus = 123, /* cpus */
YYSYMBOL_service_cpu_affinity = 124, /* service_cpu_affinity */
YYSYMBOL_dnstap = 125, /* dnstap */
YYSYMBOL_dnstap_block = 126, /* dnstap_block */
YYSYMBOL_dnstap_option = 127, /* dnstap_option */
YYSYMBOL_remote_control = 128, /* remote_control */
YYSYMBOL_remote_control_block = 129, /* remote_control_block */
YYSYMBOL_remote_control_option = 130, /* remote_control_option */
YYSYMBOL_key = 131, /* key */
YYSYMBOL_132_2 = 132, /* $@2 */
YYSYMBOL_key_block = 133, /* key_block */
YYSYMBOL_key_option = 134, /* key_option */
YYSYMBOL_zone = 135, /* zone */
YYSYMBOL_136_3 = 136, /* $@3 */
YYSYMBOL_zone_block = 137, /* zone_block */
YYSYMBOL_zone_option = 138, /* zone_option */
YYSYMBOL_pattern = 139, /* pattern */
YYSYMBOL_140_4 = 140, /* $@4 */
YYSYMBOL_pattern_block = 141, /* pattern_block */
YYSYMBOL_pattern_option = 142, /* pattern_option */
YYSYMBOL_pattern_or_zone_option = 143, /* pattern_or_zone_option */
YYSYMBOL_ip_address = 144, /* ip_address */
YYSYMBOL_number = 145, /* number */
YYSYMBOL_boolean = 146 /* boolean */
};
typedef enum yysymbol_kind_t yysymbol_kind_t;
#ifdef short #ifdef short
# undef short # undef short
#endif #endif
#ifdef YYTYPE_UINT8 /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
typedef YYTYPE_UINT8 yytype_uint8; <limits.h> and (if available) <stdint.h> are included
#else so that the code can choose integer types of a good width. */
typedef unsigned char yytype_uint8;
#ifndef __PTRDIFF_MAX__
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
# include <stdint.h> /* INFRINGES ON USER NAME SPACE */
# define YY_STDINT_H
# endif
#endif #endif
#ifdef YYTYPE_INT8 /* Narrow types that promote to a signed type and that can represent a
typedef YYTYPE_INT8 yytype_int8; signed or unsigned integer of at least N bits. In tables they can
save space and decrease cache pressure. Promoting to a signed type
helps avoid bugs in integer arithmetic. */
#ifdef __INT_LEAST8_MAX__
typedef __INT_LEAST8_TYPE__ yytype_int8;
#elif defined YY_STDINT_H
typedef int_least8_t yytype_int8;
#else #else
typedef signed char yytype_int8; typedef signed char yytype_int8;
#endif #endif
#ifdef YYTYPE_UINT16 #ifdef __INT_LEAST16_MAX__
typedef YYTYPE_UINT16 yytype_uint16; typedef __INT_LEAST16_TYPE__ yytype_int16;
#elif defined YY_STDINT_H
typedef int_least16_t yytype_int16;
#else #else
typedef unsigned short yytype_uint16; typedef short yytype_int16;
#endif #endif
#ifdef YYTYPE_INT16 #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
typedef YYTYPE_INT16 yytype_int16; typedef __UINT_LEAST8_TYPE__ yytype_uint8;
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
&& UINT_LEAST8_MAX <= INT_MAX)
typedef uint_least8_t yytype_uint8;
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
typedef unsigned char yytype_uint8;
#else #else
typedef short yytype_int16; typedef short yytype_uint8;
#endif
#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
&& UINT_LEAST16_MAX <= INT_MAX)
typedef uint_least16_t yytype_uint16;
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
typedef unsigned short yytype_uint16;
#else
typedef int yytype_uint16;
#endif
#ifndef YYPTRDIFF_T
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
# define YYPTRDIFF_T __PTRDIFF_TYPE__
# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
# elif defined PTRDIFF_MAX
# ifndef ptrdiff_t
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# endif
# define YYPTRDIFF_T ptrdiff_t
# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
# else
# define YYPTRDIFF_T long
# define YYPTRDIFF_MAXIMUM LONG_MAX
# endif
#endif #endif
#ifndef YYSIZE_T #ifndef YYSIZE_T
# ifdef __SIZE_TYPE__ # ifdef __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__
# elif defined size_t # elif defined size_t
# define YYSIZE_T size_t # define YYSIZE_T size_t
# elif ! defined YYSIZE_T # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t # define YYSIZE_T size_t
# else # else
# define YYSIZE_T unsigned # define YYSIZE_T unsigned
# endif # endif
#endif #endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #define YYSIZE_MAXIMUM \
YY_CAST (YYPTRDIFF_T, \
(YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
? YYPTRDIFF_MAXIMUM \
: YY_CAST (YYSIZE_T, -1)))
#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
/* Stored state numbers (used for stacks). */
typedef yytype_int16 yy_state_t;
/* State numbers in computations. */
typedef int yy_state_fast_t;
#ifndef YY_ #ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS # if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS # if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(Msgid) dgettext ("bison-runtime", Msgid) # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
# endif # endif
# endif # endif
# ifndef YY_ # ifndef YY_
# define YY_(Msgid) Msgid # define YY_(Msgid) Msgid
# endif # endif
#endif #endif
#ifndef YY_ATTRIBUTE #ifndef YY_ATTRIBUTE_PURE
# if (defined __GNUC__ \ # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
&& (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
|| defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
# else # else
# define YY_ATTRIBUTE(Spec) /* empty */ # define YY_ATTRIBUTE_PURE
# endif # endif
#endif #endif
#ifndef YY_ATTRIBUTE_PURE
# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
#endif
#ifndef YY_ATTRIBUTE_UNUSED #ifndef YY_ATTRIBUTE_UNUSED
# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
# else
# define YY_ATTRIBUTE_UNUSED
# endif
#endif #endif
/* Suppress unused-variable warnings by "using" E. */ /* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__ #if ! defined lint || defined __GNUC__
# define YYUSE(E) ((void) (E)) # define YYUSE(E) ((void) (E))
#else #else
# define YYUSE(E) /* empty */ # define YYUSE(E) /* empty */
#endif #endif
#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR_ _ #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR_ _
/* Suppress an incorrect diagnostic about yylval being uninitialized. */ /* Suppress an incorrect diagnostic about yylval being uninitialized. */
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
_Pragma ("GCC diagnostic pop") _Pragma ("GCC diagnostic pop")
#else #else
# define YY_INITIAL_VALUE(Value) Value # define YY_INITIAL_VALUE(Value) Value
#endif #endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END # define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif #endif
#ifndef YY_INITIAL_VALUE #ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */ # define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif #endif
#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
# define YY_IGNORE_USELESS_CAST_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
# define YY_IGNORE_USELESS_CAST_END \
_Pragma ("GCC diagnostic pop")
#endif
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_END
#endif
#define YY_ASSERT(E) ((void) (0 && (E))) #define YY_ASSERT(E) ((void) (0 && (E)))
#if ! defined yyoverflow || YYERROR_VERBOSE #if !defined yyoverflow
/* The parser invokes alloca or malloc; define the necessary symbols. */ /* The parser invokes alloca or malloc; define the necessary symbols. */
# ifdef YYSTACK_USE_ALLOCA # ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA
# ifdef __GNUC__ # ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca # define YYSTACK_ALLOC __builtin_alloca
# elif defined __BUILTIN_VA_ARG_INCR # elif defined __BUILTIN_VA_ARG_INCR
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */ # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX # elif defined _AIX
skipping to change at line 553 skipping to change at line 795
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif # endif
# endif # endif
# ifndef YYFREE # ifndef YYFREE
# define YYFREE free # define YYFREE free
# if ! defined free && ! defined EXIT_SUCCESS # if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */ void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif # endif
# endif # endif
# endif # endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #endif /* !defined yyoverflow */
#if (! defined yyoverflow \ #if (! defined yyoverflow \
&& (! defined __cplusplus \ && (! defined __cplusplus \
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */ /* A type that is properly aligned for any stack member. */
union yyalloc union yyalloc
{ {
yytype_int16 yyss_alloc; yy_state_t yyss_alloc;
YYSTYPE yyvs_alloc; YYSTYPE yyvs_alloc;
}; };
/* The size of the maximum gap between one aligned stack and the next. */ /* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with /* The size of an array large to enough to hold all stacks, each with
N elements. */ N elements. */
# define YYSTACK_BYTES(N) \ # define YYSTACK_BYTES(N) \
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM) + YYSTACK_GAP_MAXIMUM)
# define YYCOPY_NEEDED 1 # define YYCOPY_NEEDED 1
/* Relocate STACK from its old location to the new one. The /* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next stack. Advance YYPTR to a properly aligned location for the next
stack. */ stack. */
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \ do \
{ \ { \
YYSIZE_T yynewbytes; \ YYPTRDIFF_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \ Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \ yyptr += yynewbytes / YYSIZEOF (*yyptr); \
} \ } \
while (0) while (0)
#endif #endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do /* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */ not overlap. */
# ifndef YYCOPY # ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__ # if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(Dst, Src, Count) \ # define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
# else # else
# define YYCOPY(Dst, Src, Count) \ # define YYCOPY(Dst, Src, Count) \
do \ do \
{ \ { \
YYSIZE_T yyi; \ YYPTRDIFF_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \ for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \ (Dst)[yyi] = (Src)[yyi]; \
} \ } \
while (0) while (0)
# endif # endif
# endif # endif
#endif /* !YYCOPY_NEEDED */ #endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */ /* YYFINAL -- State number of the termination state. */
#define YYFINAL 2 #define YYFINAL 2
/* YYLAST -- Last index in YYTABLE. */ /* YYLAST -- Last index in YYTABLE. */
#define YYLAST 329 #define YYLAST 332
/* YYNTOKENS -- Number of terminals. */ /* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 113 #define YYNTOKENS 114
/* YYNNTS -- Number of nonterminals. */ /* YYNNTS -- Number of nonterminals. */
#define YYNNTS 33 #define YYNNTS 33
/* YYNRULES -- Number of rules. */ /* YYNRULES -- Number of rules. */
#define YYNRULES 146 #define YYNRULES 147
/* YYNSTATES -- Number of states. */ /* YYNSTATES -- Number of states. */
#define YYNSTATES 256 #define YYNSTATES 259
#define YYUNDEFTOK 2 #define YYMAXUTOK 368
#define YYMAXUTOK 367
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
as returned by yylex, with out-of-bounds checking. */ as returned by yylex, with out-of-bounds checking. */
#define YYTRANSLATE(YYX) \ #define YYTRANSLATE(YYX) \
((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) (0 <= (YYX) && (YYX) <= YYMAXUTOK \
? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
: YYSYMBOL_YYUNDEF)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
as returned by yylex. */ as returned by yylex. */
static const yytype_uint8 yytranslate[] = static const yytype_int8 yytranslate[] =
{ {
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
skipping to change at line 677 skipping to change at line 920
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112 105, 106, 107, 108, 109, 110, 111, 112, 113
}; };
#if YYDEBUG #if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] = static const yytype_int16 yyrline[] =
{ {
0, 182, 182, 184, 187, 188, 189, 190, 191, 192, 0, 182, 182, 184, 187, 188, 189, 190, 191, 192,
195, 198, 198, 202, 201, 218, 226, 228, 230, 232, 195, 198, 198, 202, 201, 218, 226, 228, 230, 232,
234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252,
261, 263, 265, 295, 297, 299, 307, 309, 311, 313, 261, 263, 265, 295, 297, 299, 307, 309, 311, 313,
315, 317, 319, 321, 323, 330, 332, 334, 336, 338, 315, 317, 319, 321, 323, 330, 332, 334, 336, 338,
340, 342, 344, 346, 348, 350, 352, 362, 368, 374, 340, 342, 344, 346, 348, 350, 352, 362, 368, 374,
384, 394, 400, 402, 404, 409, 414, 419, 421, 423, 384, 394, 400, 402, 404, 409, 414, 419, 421, 423,
425, 427, 429, 436, 440, 470, 471, 474, 501, 503, 425, 427, 429, 436, 440, 470, 471, 474, 501, 503,
508, 509, 543, 545, 556, 559, 559, 562, 564, 566, 508, 509, 543, 545, 556, 559, 559, 562, 564, 566,
568, 570, 572, 574, 576, 581, 584, 584, 587, 589, 568, 570, 572, 574, 576, 581, 584, 584, 587, 589,
599, 607, 609, 611, 613, 619, 618, 643, 643, 646, 599, 607, 609, 611, 613, 619, 618, 643, 643, 646,
658, 666, 685, 684, 709, 709, 712, 725, 729, 728, 658, 666, 685, 684, 709, 709, 712, 725, 729, 728,
745, 745, 748, 755, 758, 764, 766, 768, 776, 778, 745, 745, 748, 755, 758, 764, 766, 768, 776, 778,
780, 789, 799, 809, 814, 823, 828, 833, 838, 843, 780, 789, 799, 809, 814, 823, 828, 833, 838, 843,
848, 853, 858, 863, 877, 887, 896 848, 853, 858, 863, 868, 882, 892, 901
}; };
#endif #endif
#if YYDEBUG || YYERROR_VERBOSE || 0 /** Accessing symbol of state STATE. */
#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
#if YYDEBUG || 0
/* The user-facing name of the symbol whose (internal) number is
YYSYMBOL. No bounds checking. */
static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] = static const char *const yytname[] =
{ {
"$end", "error", "$undefined", "STRING", "VAR_SERVER", "\"end of file\"", "error", "\"invalid token\"", "STRING", "VAR_SERVER",
"VAR_SERVER_COUNT", "VAR_IP_ADDRESS", "VAR_IP_TRANSPARENT", "VAR_SERVER_COUNT", "VAR_IP_ADDRESS", "VAR_IP_TRANSPARENT",
"VAR_IP_FREEBIND", "VAR_REUSEPORT", "VAR_SEND_BUFFER_SIZE", "VAR_IP_FREEBIND", "VAR_REUSEPORT", "VAR_SEND_BUFFER_SIZE",
"VAR_RECEIVE_BUFFER_SIZE", "VAR_DEBUG_MODE", "VAR_IP4_ONLY", "VAR_RECEIVE_BUFFER_SIZE", "VAR_DEBUG_MODE", "VAR_IP4_ONLY",
"VAR_IP6_ONLY", "VAR_DO_IP4", "VAR_DO_IP6", "VAR_PORT", "VAR_IP6_ONLY", "VAR_DO_IP4", "VAR_DO_IP6", "VAR_PORT",
"VAR_USE_SYSTEMD", "VAR_VERBOSITY", "VAR_USERNAME", "VAR_CHROOT", "VAR_USE_SYSTEMD", "VAR_VERBOSITY", "VAR_USERNAME", "VAR_CHROOT",
"VAR_ZONESDIR", "VAR_ZONELISTFILE", "VAR_DATABASE", "VAR_LOGFILE", "VAR_ZONESDIR", "VAR_ZONELISTFILE", "VAR_DATABASE", "VAR_LOGFILE",
"VAR_LOG_ONLY_SYSLOG", "VAR_PIDFILE", "VAR_DIFFFILE", "VAR_XFRDFILE", "VAR_LOG_ONLY_SYSLOG", "VAR_PIDFILE", "VAR_DIFFFILE", "VAR_XFRDFILE",
"VAR_XFRDIR", "VAR_HIDE_VERSION", "VAR_HIDE_IDENTITY", "VAR_VERSION", "VAR_XFRDIR", "VAR_HIDE_VERSION", "VAR_HIDE_IDENTITY", "VAR_VERSION",
"VAR_IDENTITY", "VAR_NSID", "VAR_TCP_COUNT", "VAR_TCP_REJECT_OVERFLOW", "VAR_IDENTITY", "VAR_NSID", "VAR_TCP_COUNT", "VAR_TCP_REJECT_OVERFLOW",
"VAR_TCP_QUERY_COUNT", "VAR_TCP_TIMEOUT", "VAR_TCP_MSS", "VAR_TCP_QUERY_COUNT", "VAR_TCP_TIMEOUT", "VAR_TCP_MSS",
skipping to change at line 736 skipping to change at line 986
"VAR_CPU_AFFINITY", "VAR_XFRD_CPU_AFFINITY", "VAR_SERVER_CPU_AFFINITY", "VAR_CPU_AFFINITY", "VAR_XFRD_CPU_AFFINITY", "VAR_SERVER_CPU_AFFINITY",
"VAR_DROP_UPDATES", "VAR_DNSTAP", "VAR_DNSTAP_ENABLE", "VAR_DROP_UPDATES", "VAR_DNSTAP", "VAR_DNSTAP_ENABLE",
"VAR_DNSTAP_SOCKET_PATH", "VAR_DNSTAP_SEND_IDENTITY", "VAR_DNSTAP_SOCKET_PATH", "VAR_DNSTAP_SEND_IDENTITY",
"VAR_DNSTAP_SEND_VERSION", "VAR_DNSTAP_IDENTITY", "VAR_DNSTAP_VERSION", "VAR_DNSTAP_SEND_VERSION", "VAR_DNSTAP_IDENTITY", "VAR_DNSTAP_VERSION",
"VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES", "VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES",
"VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES", "VAR_REMOTE_CONTROL", "VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES", "VAR_REMOTE_CONTROL",
"VAR_CONTROL_ENABLE", "VAR_CONTROL_INTERFACE", "VAR_CONTROL_PORT", "VAR_CONTROL_ENABLE", "VAR_CONTROL_INTERFACE", "VAR_CONTROL_PORT",
"VAR_SERVER_KEY_FILE", "VAR_SERVER_CERT_FILE", "VAR_CONTROL_KEY_FILE", "VAR_SERVER_KEY_FILE", "VAR_SERVER_CERT_FILE", "VAR_CONTROL_KEY_FILE",
"VAR_CONTROL_CERT_FILE", "VAR_KEY", "VAR_ALGORITHM", "VAR_SECRET", "VAR_CONTROL_CERT_FILE", "VAR_KEY", "VAR_ALGORITHM", "VAR_SECRET",
"VAR_PATTERN", "VAR_NAME", "VAR_ZONEFILE", "VAR_NOTIFY", "VAR_PATTERN", "VAR_NAME", "VAR_ZONEFILE", "VAR_NOTIFY",
"VAR_PROVIDE_XFR", "VAR_AXFR", "VAR_UDP", "VAR_NOTIFY_RETRY", "VAR_PROVIDE_XFR", "VAR_ALLOW_QUERY", "VAR_AXFR", "VAR_UDP",
"VAR_ALLOW_NOTIFY", "VAR_REQUEST_XFR", "VAR_ALLOW_AXFR_FALLBACK", "VAR_NOTIFY_RETRY", "VAR_ALLOW_NOTIFY", "VAR_REQUEST_XFR",
"VAR_OUTGOING_INTERFACE", "VAR_MAX_REFRESH_TIME", "VAR_MIN_REFRESH_TIME", "VAR_ALLOW_AXFR_FALLBACK", "VAR_OUTGOING_INTERFACE",
"VAR_MAX_RETRY_TIME", "VAR_MIN_RETRY_TIME", "VAR_MIN_EXPIRE_TIME", "VAR_MAX_REFRESH_TIME", "VAR_MIN_REFRESH_TIME", "VAR_MAX_RETRY_TIME",
"VAR_MULTI_MASTER_CHECK", "VAR_SIZE_LIMIT_XFR", "VAR_ZONESTATS", "VAR_MIN_RETRY_TIME", "VAR_MIN_EXPIRE_TIME", "VAR_MULTI_MASTER_CHECK",
"VAR_INCLUDE_PATTERN", "VAR_ZONE", "VAR_RRL_WHITELIST", "VAR_SERVERS", "VAR_SIZE_LIMIT_XFR", "VAR_ZONESTATS", "VAR_INCLUDE_PATTERN", "VAR_ZONE",
"VAR_BINDTODEVICE", "VAR_SETFIB", "$accept", "blocks", "block", "server", "VAR_RRL_WHITELIST", "VAR_SERVERS", "VAR_BINDTODEVICE", "VAR_SETFIB",
"server_block", "server_option", "$@1", "socket_options", "$accept", "blocks", "block", "server", "server_block", "server_option",
"socket_option", "cpus", "service_cpu_affinity", "dnstap", "$@1", "socket_options", "socket_option", "cpus", "service_cpu_affinity",
"dnstap_block", "dnstap_option", "remote_control", "dnstap", "dnstap_block", "dnstap_option", "remote_control",
"remote_control_block", "remote_control_option", "key", "$@2", "remote_control_block", "remote_control_option", "key", "$@2",
"key_block", "key_option", "zone", "$@3", "zone_block", "zone_option", "key_block", "key_option", "zone", "$@3", "zone_block", "zone_option",
"pattern", "$@4", "pattern_block", "pattern_option", "pattern", "$@4", "pattern_block", "pattern_option",
"pattern_or_zone_option", "ip_address", "number", "boolean", YY_NULLPTR "pattern_or_zone_option", "ip_address", "number", "boolean", YY_NULLPTR
}; };
static const char *
yysymbol_name (yysymbol_kind_t yysymbol)
{
return yytname[yysymbol];
}
#endif #endif
# ifdef YYPRINT #ifdef YYPRINT
/* YYTOKNUM[NUM] -- (External) token number corresponding to the /* YYTOKNUM[NUM] -- (External) token number corresponding to the
(internal) symbol number NUM (which must be that of a token). */ (internal) symbol number NUM (which must be that of a token). */
static const yytype_uint16 yytoknum[] = static const yytype_int16 yytoknum[] =
{ {
0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
365, 366, 367 365, 366, 367, 368
}; };
# endif #endif
#define YYPACT_NINF -92 #define YYPACT_NINF (-93)
#define yypact_value_is_default(Yystate) \ #define yypact_value_is_default(Yyn) \
(!!((Yystate) == (-92))) ((Yyn) == YYPACT_NINF)
#define YYTABLE_NINF -1 #define YYTABLE_NINF (-1)
#define yytable_value_is_error(Yytable_value) \ #define yytable_value_is_error(Yyn) \
0 0
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */ STATE-NUM. */
static const yytype_int16 yypact[] = static const yytype_int16 yypact[] =
{ {
-92, 32, -92, -92, -92, -92, -92, -92, -92, -92, -93, 32, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, 263, 52, 51, -92, -93, -93, -93, -93, -93, -93, 266, 52, 51, -93,
-92, -92, -1, 0, 6, 6, 6, -1, -1, 6, -93, -93, -1, 0, 6, 6, 6, -1, -1, 6,
6, 6, 6, 6, -1, 6, -1, 11, 13, 14, 6, 6, 6, 6, -1, 6, -1, 11, 13, 14,
19, 22, 23, 6, 24, 25, 27, 28, 6, 6, 19, 22, 23, 6, 24, 25, 27, 28, 6, 6,
30, 31, 34, -1, 6, -1, -1, -1, -1, -1, 30, 31, 34, -1, 6, -1, -1, -1, -1, -1,
-1, -1, -1, 6, 6, 6, 6, 6, 6, -1, -1, -1, -1, 6, 6, 6, 6, 6, 6, -1,
-1, -1, -1, -1, -1, -1, 41, 44, 45, -1, -1, -1, -1, -1, -1, -1, 41, 44, 45, -1,
-92, -92, -92, 6, -92, -1, 6, 46, 6, 6, -93, -93, -93, 6, -93, -1, 6, 46, 6, 6,
48, 50, 6, 6, -92, 6, 0, -1, 53, 54, 48, 50, 6, 6, -93, 6, 0, -1, 53, 54,
56, 57, -92, -73, 47, 85, -92, -92, -92, -92, 56, 57, -93, -73, 47, 85, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, -92, 59, -92, -92, -93, -93, -93, -93, -93, -93, -93, 59, -93, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, 62, 63, 66, -92, 69, -93, -93, -93, -93, -93, 62, 63, 66, -93, 69,
78, 79, 80, -1, 81, 8, 6, 82, -1, -1, 78, 79, 80, 81, -1, 82, 8, 6, 83, -1,
-1, -1, 83, 6, -1, 91, 92, 93, -92, -92, -1, -1, -1, 91, 6, -1, 92, 93, 95, -93,
95, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, 97, -93, -93, -93, -93, -93, -93, -93, -93,
99, 101, -92, 102, 103, 104, 106, -92, -92, -92, -93, 101, 102, 103, -93, 104, 106, 107, 108, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-91, -92, -92, -92, -92, 107, 108, 109, 6, -1, -93, -93, -92, -93, -93, -93, -93, -93, 109, 110,
-92, -92, -92, -92, -92, -92 111, 6, -1, -93, -93, -93, -93, -93, -93
}; };
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
Performed when YYTABLE does not specify something else to do. Zero Performed when YYTABLE does not specify something else to do. Zero
means the default is an error. */ means the default is an error. */
static const yytype_uint8 yydefact[] = static const yytype_uint8 yydefact[] =
{ {
2, 0, 1, 12, 86, 97, 105, 118, 112, 3, 2, 0, 1, 12, 86, 97, 105, 118, 112, 3,
4, 5, 6, 7, 9, 8, 10, 84, 95, 108, 4, 5, 6, 7, 9, 8, 10, 84, 95, 108,
121, 115, 0, 0, 0, 0, 0, 0, 0, 0, 121, 115, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
80, 82, 83, 0, 11, 0, 0, 0, 0, 0, 80, 82, 83, 0, 11, 0, 0, 0, 0, 0,
0, 0, 0, 0, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 0, 0, 0, 0, 0,
0, 0, 96, 106, 119, 113, 145, 15, 144, 13, 0, 0, 96, 106, 119, 113, 146, 15, 145, 13,
146, 16, 17, 45, 18, 19, 20, 25, 26, 27, 147, 16, 17, 45, 18, 19, 20, 25, 26, 27,
28, 44, 21, 55, 48, 47, 49, 50, 29, 33, 28, 44, 21, 55, 48, 47, 49, 50, 29, 33,
34, 43, 51, 52, 53, 22, 23, 31, 30, 32, 34, 43, 51, 52, 53, 22, 23, 31, 30, 32,
35, 36, 37, 38, 39, 40, 41, 42, 46, 54, 35, 36, 37, 38, 39, 40, 41, 42, 46, 54,
64, 65, 66, 67, 68, 62, 63, 56, 57, 58, 64, 65, 66, 67, 68, 62, 63, 56, 57, 58,
59, 60, 61, 69, 71, 70, 72, 73, 24, 74, 59, 60, 61, 69, 71, 70, 72, 73, 24, 74,
87, 88, 89, 90, 91, 92, 93, 94, 98, 99, 87, 88, 89, 90, 91, 92, 93, 94, 98, 99,
100, 101, 102, 103, 104, 0, 0, 0, 107, 0, 100, 101, 102, 103, 104, 0, 0, 0, 107, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 120, 123, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120,
0, 114, 117, 75, 81, 110, 111, 109, 122, 125, 123, 0, 114, 117, 75, 81, 110, 111, 109, 122,
0, 0, 138, 0, 0, 0, 0, 137, 136, 139, 125, 0, 0, 0, 139, 0, 0, 0, 0, 138,
140, 141, 142, 143, 128, 127, 126, 129, 124, 116, 137, 140, 141, 142, 143, 144, 128, 127, 126, 129,
14, 134, 135, 133, 130, 0, 0, 0, 0, 0, 124, 116, 14, 134, 135, 136, 133, 130, 0, 0,
76, 131, 132, 77, 78, 79 0, 0, 0, 76, 131, 132, 77, 78, 79
}; };
/* YYPGOTO[NTERM-NUM]. */ /* YYPGOTO[NTERM-NUM]. */
static const yytype_int8 yypgoto[] = static const yytype_int8 yypgoto[] =
{ {
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, -93, -93, -93, -93, -93, -93, -93, -93, -93, -93,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -70, -93, -93, -93, -93, -93, -93, -93, -93, -93, -70,
-46, 18, -25 -46, 18, -25
}; };
/* YYDEFGOTO[NTERM-NUM]. */ /* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] = static const yytype_int16 yydefgoto[] =
{ {
-1, 1, 9, 10, 16, 84, 213, 240, 250, 167, -1, 1, 9, 10, 16, 84, 214, 242, 253, 167,
85, 11, 17, 94, 12, 18, 102, 13, 19, 103, 85, 11, 17, 94, 12, 18, 102, 13, 19, 103,
188, 14, 21, 105, 211, 15, 20, 104, 208, 209, 188, 14, 21, 105, 212, 15, 20, 104, 209, 210,
109, 107, 111 109, 107, 111
}; };
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule whose positive, shift that token. If negative, reduce the rule whose
number is the opposite. If YYTABLE_NINF, syntax error. */ number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_uint8 yytable[] = static const yytype_int16 yytable[] =
{ {
112, 113, 106, 108, 116, 117, 118, 119, 120, 110, 112, 113, 106, 108, 116, 117, 118, 119, 120, 110,
122, 224, 185, 186, 124, 187, 125, 126, 130, 247, 122, 226, 185, 186, 124, 187, 125, 126, 130, 250,
248, 249, 127, 135, 136, 128, 129, 131, 132, 141, 251, 252, 127, 135, 136, 128, 129, 131, 132, 141,
133, 134, 2, 137, 138, 212, 3, 139, 150, 151, 133, 134, 2, 137, 138, 213, 3, 139, 150, 151,
152, 153, 154, 155, 163, 114, 115, 164, 165, 171, 152, 153, 154, 155, 163, 114, 115, 164, 165, 171,
179, 174, 121, 175, 123, 0, 181, 182, 168, 183, 179, 174, 121, 175, 123, 0, 181, 182, 168, 183,
184, 170, 214, 172, 173, 215, 216, 176, 177, 217, 184, 170, 215, 172, 173, 216, 217, 176, 177, 218,
178, 140, 218, 142, 143, 144, 145, 146, 147, 148, 178, 140, 219, 142, 143, 144, 145, 146, 147, 148,
149, 219, 220, 221, 223, 228, 233, 156, 157, 158, 149, 220, 221, 222, 223, 225, 230, 156, 157, 158,
159, 160, 161, 162, 236, 237, 238, 166, 239, 4, 159, 160, 161, 162, 235, 238, 239, 166, 240, 4,
225, 226, 241, 169, 242, 243, 244, 245, 5, 246, 241, 227, 228, 169, 243, 244, 245, 246, 5, 247,
251, 252, 253, 0, 0, 180, 6, 0, 0, 7, 248, 249, 254, 255, 256, 180, 6, 0, 0, 7,
86, 87, 88, 89, 90, 91, 92, 93, 95, 96, 86, 87, 88, 89, 90, 91, 92, 93, 95, 96,
97, 98, 99, 100, 101, 189, 190, 191, 192, 0, 97, 98, 99, 100, 101, 189, 190, 191, 192, 193,
8, 193, 194, 195, 196, 197, 198, 199, 200, 201, 0, 8, 194, 195, 196, 197, 198, 199, 200, 201,
202, 203, 204, 205, 206, 0, 207, 0, 0, 0, 202, 203, 204, 205, 206, 207, 0, 208, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 227, 0, 210, 190, 191, 192, 0, 234, 193, 0, 0, 229, 211, 190, 191, 192, 193, 0, 236,
194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203,
204, 205, 206, 0, 207, 0, 0, 0, 0, 0, 204, 205, 206, 207, 0, 208, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 222, 0, 0, 0, 0, 229, 230, 231, 232, 0, 0, 224, 0, 0, 0, 0, 231, 232, 233,
0, 0, 235, 254, 0, 0, 0, 0, 0, 0, 234, 0, 0, 237, 0, 0, 257, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 255, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 258, 22, 23, 24, 25, 26, 27, 28, 29, 30,
34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
74, 75, 76, 77, 78, 79, 80, 81, 82, 83 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
81, 82, 83
}; };
static const yytype_int16 yycheck[] = static const yytype_int16 yycheck[] =
{ {
25, 26, 3, 3, 29, 30, 31, 32, 33, 3, 25, 26, 3, 3, 29, 30, 31, 32, 33, 3,
35, 3, 85, 86, 3, 88, 3, 3, 43, 110, 35, 3, 85, 86, 3, 88, 3, 3, 43, 111,
111, 112, 3, 48, 49, 3, 3, 3, 3, 54, 112, 113, 3, 48, 49, 3, 3, 3, 3, 54,
3, 3, 0, 3, 3, 105, 4, 3, 63, 64, 3, 3, 0, 3, 3, 105, 4, 3, 63, 64,
65, 66, 67, 68, 3, 27, 28, 3, 3, 3, 65, 66, 67, 68, 3, 27, 28, 3, 3, 3,
96, 3, 34, 3, 36, -1, 3, 3, 83, 3, 96, 3, 34, 3, 36, -1, 3, 3, 83, 3,
3, 86, 3, 88, 89, 3, 3, 92, 93, 3, 3, 86, 3, 88, 89, 3, 3, 92, 93, 3,
95, 53, 3, 55, 56, 57, 58, 59, 60, 61, 95, 53, 3, 55, 56, 57, 58, 59, 60, 61,
62, 3, 3, 3, 3, 3, 3, 69, 70, 71, 62, 3, 3, 3, 3, 3, 3, 69, 70, 71,
72, 73, 74, 75, 3, 3, 3, 79, 3, 67, 72, 73, 74, 75, 3, 3, 3, 79, 3, 67,
92, 93, 3, 85, 3, 3, 3, 3, 76, 3, 3, 93, 94, 85, 3, 3, 3, 3, 76, 3,
3, 3, 3, -1, -1, 97, 84, -1, -1, 87, 3, 3, 3, 3, 3, 97, 84, -1, -1, 87,
68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78,
79, 80, 81, 82, 83, 88, 89, 90, 91, -1, 79, 80, 81, 82, 83, 88, 89, 90, 91, 92,
108, 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, 109, 95, 96, 97, 98, 99, 100, 101, 102,
103, 104, 105, 106, 107, -1, 109, -1, -1, -1, 103, 104, 105, 106, 107, 108, -1, 110, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 196, -1, 88, 89, 90, 91, -1, 203, 94, -1, -1, 197, 88, 89, 90, 91, 92, -1, 204,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, -1, 109, -1, -1, -1, -1, -1, 105, 106, 107, 108, -1, 110, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 193, -1, -1, -1, -1, 198, 199, 200, 201, -1, -1, 194, -1, -1, -1, -1, 199, 200, 201,
-1, -1, 204, 248, -1, -1, -1, -1, -1, -1, 202, -1, -1, 205, -1, -1, 251, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 249, 5, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 252, 5, 6, 7, 8, 9, 10, 11, 12, 13,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
57, 58, 59, 60, 61, 62, 63, 64, 65, 66 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
64, 65, 66
}; };
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */ symbol of state STATE-NUM. */
static const yytype_uint8 yystos[] = static const yytype_uint8 yystos[] =
{ {
0, 114, 0, 4, 67, 76, 84, 87, 108, 115, 0, 115, 0, 4, 67, 76, 84, 87, 109, 116,
116, 124, 127, 130, 134, 138, 117, 125, 128, 131, 117, 125, 128, 131, 135, 139, 118, 126, 129, 132,
139, 135, 5, 6, 7, 8, 9, 10, 11, 12, 140, 136, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
63, 64, 65, 66, 118, 123, 68, 69, 70, 71, 63, 64, 65, 66, 119, 124, 68, 69, 70, 71,
72, 73, 74, 75, 126, 77, 78, 79, 80, 81, 72, 73, 74, 75, 127, 77, 78, 79, 80, 81,
82, 83, 129, 132, 140, 136, 3, 144, 3, 143, 82, 83, 130, 133, 141, 137, 3, 145, 3, 144,
3, 145, 145, 145, 144, 144, 145, 145, 145, 145, 3, 146, 146, 146, 145, 145, 146, 146, 146, 146,
145, 144, 145, 144, 3, 3, 3, 3, 3, 3, 146, 145, 146, 145, 3, 3, 3, 3, 3, 3,
145, 3, 3, 3, 3, 145, 145, 3, 3, 3, 146, 3, 3, 3, 3, 146, 146, 3, 3, 3,
144, 145, 144, 144, 144, 144, 144, 144, 144, 144, 145, 146, 145, 145, 145, 145, 145, 145, 145, 145,
145, 145, 145, 145, 145, 145, 144, 144, 144, 144, 146, 146, 146, 146, 146, 146, 145, 145, 145, 145,
144, 144, 144, 3, 3, 3, 144, 122, 145, 144, 145, 145, 145, 3, 3, 3, 145, 123, 146, 145,
145, 3, 145, 145, 3, 3, 145, 145, 145, 143, 146, 3, 146, 146, 3, 3, 146, 146, 146, 144,
144, 3, 3, 3, 3, 85, 86, 88, 133, 88, 145, 3, 3, 3, 3, 85, 86, 88, 134, 88,
89, 90, 91, 94, 95, 96, 97, 98, 99, 100, 89, 90, 91, 92, 95, 96, 97, 98, 99, 100,
101, 102, 103, 104, 105, 106, 107, 109, 141, 142, 101, 102, 103, 104, 105, 106, 107, 108, 110, 142,
88, 137, 142, 119, 3, 3, 3, 3, 3, 3, 143, 88, 138, 143, 120, 3, 3, 3, 3, 3,
3, 3, 144, 3, 3, 92, 93, 145, 3, 144, 3, 3, 3, 3, 145, 3, 3, 93, 94, 146,
144, 144, 144, 3, 145, 144, 3, 3, 3, 3, 3, 145, 145, 145, 145, 3, 146, 145, 3, 3,
120, 3, 3, 3, 3, 3, 3, 110, 111, 112, 3, 3, 121, 3, 3, 3, 3, 3, 3, 3,
121, 3, 3, 3, 145, 144 111, 112, 113, 122, 3, 3, 3, 146, 145
}; };
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] = static const yytype_uint8 yyr1[] =
{ {
0, 113, 114, 114, 115, 115, 115, 115, 115, 115, 0, 114, 115, 115, 116, 116, 116, 116, 116, 116,
116, 117, 117, 119, 118, 118, 118, 118, 118, 118, 117, 118, 118, 120, 119, 119, 119, 119, 119, 119,
118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
118, 118, 118, 118, 118, 120, 120, 121, 121, 121, 119, 119, 119, 119, 119, 121, 121, 122, 122, 122,
122, 122, 123, 123, 124, 125, 125, 126, 126, 126, 123, 123, 124, 124, 125, 126, 126, 127, 127, 127,
126, 126, 126, 126, 126, 127, 128, 128, 129, 129, 127, 127, 127, 127, 127, 128, 129, 129, 130, 130,
129, 129, 129, 129, 129, 131, 130, 132, 132, 133, 130, 130, 130, 130, 130, 132, 131, 133, 133, 134,
133, 133, 135, 134, 136, 136, 137, 137, 139, 138, 134, 134, 136, 135, 137, 137, 138, 138, 140, 139,
140, 140, 141, 141, 142, 142, 142, 142, 142, 142, 141, 141, 142, 142, 143, 143, 143, 143, 143, 143,
142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
142, 142, 142, 142, 143, 144, 145 143, 143, 143, 143, 143, 144, 145, 146
}; };
/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
static const yytype_uint8 yyr2[] = static const yytype_int8 yyr2[] =
{ {
0, 2, 0, 2, 1, 1, 1, 1, 1, 1, 0, 2, 0, 2, 1, 1, 1, 1, 1, 1,
2, 2, 0, 0, 4, 2, 2, 2, 2, 2, 2, 2, 0, 0, 4, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2,
0, 2, 1, 1, 2, 2, 0, 2, 2, 2, 0, 2, 1, 1, 2, 2, 0, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2,
2, 2, 2, 2, 2, 0, 3, 2, 0, 2, 2, 2, 2, 2, 2, 0, 3, 2, 0, 2,
2, 2, 0, 3, 2, 0, 2, 1, 0, 3, 2, 2, 0, 3, 2, 0, 2, 1, 0, 3,
2, 0, 2, 1, 2, 2, 2, 2, 2, 2, 2, 0, 2, 1, 2, 2, 2, 2, 2, 2,
3, 4, 4, 3, 3, 3, 2, 2, 2, 2, 3, 4, 4, 3, 3, 3, 3, 2, 2, 2,
2, 2, 2, 2, 1, 1, 1 2, 2, 2, 2, 2, 1, 1, 1
}; };
enum { YYENOMEM = -2 };
#define yyerrok (yyerrstatus = 0) #define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY) #define yyclearin (yychar = YYEMPTY)
#define YYEMPTY (-2)
#define YYEOF 0
#define YYACCEPT goto yyacceptlab #define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab #define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab #define YYERROR goto yyerrorlab
#define YYRECOVERING() (!!yyerrstatus) #define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \ #define YYBACKUP(Token, Value) \
do \ do \
if (yychar == YYEMPTY) \ if (yychar == YYEMPTY) \
skipping to change at line 1043 skipping to change at line 1301
yystate = *yyssp; \ yystate = *yyssp; \
goto yybackup; \ goto yybackup; \
} \ } \
else \ else \
{ \ { \
yyerror (YY_("syntax error: cannot back up")); \ yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \ YYERROR; \
} \ } \
while (0) while (0)
/* Error token number */ /* Backward compatibility with an undocumented macro.
#define YYTERROR 1 Use YYerror or YYUNDEF. */
#define YYERRCODE 256 #define YYERRCODE YYUNDEF
/* Enable debugging if requested. */ /* Enable debugging if requested. */
#if YYDEBUG #if YYDEBUG
# ifndef YYFPRINTF # ifndef YYFPRINTF
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */ # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
# define YYFPRINTF fprintf # define YYFPRINTF fprintf
# endif # endif
# define YYDPRINTF(Args) \ # define YYDPRINTF(Args) \
do { \ do { \
if (yydebug) \ if (yydebug) \
YYFPRINTF Args; \ YYFPRINTF Args; \
} while (0) } while (0)
/* This macro is provided for backward compatibility. */ /* This macro is provided for backward compatibility. */
#ifndef YY_LOCATION_PRINT # ifndef YY_LOCATION_PRINT
# define YY_LOCATION_PRINT(File, Loc) ((void) 0) # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif # endif
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
do { \ do { \
if (yydebug) \ if (yydebug) \
{ \ { \
YYFPRINTF (stderr, "%s ", Title); \ YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \ yy_symbol_print (stderr, \
Type, Value); \ Kind, Value); \
YYFPRINTF (stderr, "\n"); \ YYFPRINTF (stderr, "\n"); \
} \ } \
} while (0) } while (0)
/*-----------------------------------. /*-----------------------------------.
| Print this symbol's value on YYO. | | Print this symbol's value on YYO. |
`-----------------------------------*/ `-----------------------------------*/
static void static void
yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep) yy_symbol_value_print (FILE *yyo,
yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{ {
FILE *yyoutput = yyo; FILE *yyoutput = yyo;
YYUSE (yyoutput); YYUSE (yyoutput);
if (!yyvaluep) if (!yyvaluep)
return; return;
# ifdef YYPRINT # ifdef YYPRINT
if (yytype < YYNTOKENS) if (yykind < YYNTOKENS)
YYPRINT (yyo, yytoknum[yytype], *yyvaluep); YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
# endif # endif
YYUSE (yytype); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
YYUSE (yykind);
YY_IGNORE_MAYBE_UNINITIALIZED_END
} }
/*---------------------------. /*---------------------------.
| Print this symbol on YYO. | | Print this symbol on YYO. |
`---------------------------*/ `---------------------------*/
static void static void
yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep) yy_symbol_print (FILE *yyo,
yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{ {
YYFPRINTF (yyo, "%s %s (", YYFPRINTF (yyo, "%s %s (",
yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
yy_symbol_value_print (yyo, yytype, yyvaluep); yy_symbol_value_print (yyo, yykind, yyvaluep);
YYFPRINTF (yyo, ")"); YYFPRINTF (yyo, ")");
} }
/*------------------------------------------------------------------. /*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its | | yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included). | | TOP (included). |
`------------------------------------------------------------------*/ `------------------------------------------------------------------*/
static void static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
{ {
YYFPRINTF (stderr, "Stack now"); YYFPRINTF (stderr, "Stack now");
for (; yybottom <= yytop; yybottom++) for (; yybottom <= yytop; yybottom++)
{ {
int yybot = *yybottom; int yybot = *yybottom;
YYFPRINTF (stderr, " %d", yybot); YYFPRINTF (stderr, " %d", yybot);
} }
YYFPRINTF (stderr, "\n"); YYFPRINTF (stderr, "\n");
} }
skipping to change at line 1137 skipping to change at line 1399
do { \ do { \
if (yydebug) \ if (yydebug) \
yy_stack_print ((Bottom), (Top)); \ yy_stack_print ((Bottom), (Top)); \
} while (0) } while (0)
/*------------------------------------------------. /*------------------------------------------------.
| Report that the YYRULE is going to be reduced. | | Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/ `------------------------------------------------*/
static void static void
yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
int yyrule)
{ {
unsigned long yylno = yyrline[yyrule]; int yylno = yyrline[yyrule];
int yynrhs = yyr2[yyrule]; int yynrhs = yyr2[yyrule];
int yyi; int yyi;
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
yyrule - 1, yylno); yyrule - 1, yylno);
/* The symbols being reduced. */ /* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++) for (yyi = 0; yyi < yynrhs; yyi++)
{ {
YYFPRINTF (stderr, " $%d = ", yyi + 1); YYFPRINTF (stderr, " $%d = ", yyi + 1);
yy_symbol_print (stderr, yy_symbol_print (stderr,
yystos[yyssp[yyi + 1 - yynrhs]], YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
&yyvsp[(yyi + 1) - (yynrhs)] &yyvsp[(yyi + 1) - (yynrhs)]);
);
YYFPRINTF (stderr, "\n"); YYFPRINTF (stderr, "\n");
} }
} }
# define YY_REDUCE_PRINT(Rule) \ # define YY_REDUCE_PRINT(Rule) \
do { \ do { \
if (yydebug) \ if (yydebug) \
yy_reduce_print (yyssp, yyvsp, Rule); \ yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0) } while (0)
/* Nonzero means print parse trace. It is left uninitialized so that /* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */ multiple parsers can coexist. */
int yydebug; int yydebug;
#else /* !YYDEBUG */ #else /* !YYDEBUG */
# define YYDPRINTF(Args) # define YYDPRINTF(Args) ((void) 0)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
# define YY_STACK_PRINT(Bottom, Top) # define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule) # define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */ #endif /* !YYDEBUG */
/* YYINITDEPTH -- initial size of the parser's stacks. */ /* YYINITDEPTH -- initial size of the parser's stacks. */
#ifndef YYINITDEPTH #ifndef YYINITDEPTH
# define YYINITDEPTH 200 # define YYINITDEPTH 200
#endif #endif
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
if the built-in stack extension method is used). if the built-in stack extension method is used).
Do not make this value too large; the results are undefined if Do not make this value too large; the results are undefined if
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */ evaluated with infinite-precision integer arithmetic. */
#ifndef YYMAXDEPTH #ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000 # define YYMAXDEPTH 10000
#endif #endif
#if YYERROR_VERBOSE
# ifndef yystrlen
# if defined __GLIBC__ && defined _STRING_H
# define yystrlen strlen
# else
/* Return the length of YYSTR. */
static YYSIZE_T
yystrlen (const char *yystr)
{
YYSIZE_T yylen;
for (yylen = 0; yystr[yylen]; yylen++)
continue;
return yylen;
}
# endif
# endif
# ifndef yystpcpy
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
# define yystpcpy stpcpy
# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
static char *
yystpcpy (char *yydest, const char *yysrc)
{
char *yyd = yydest;
const char *yys = yysrc;
while ((*yyd++ = *yys++) != '\0')
continue;
return yyd - 1;
}
# endif
# endif
# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
quotes and backslashes, so that it's suitable for yyerror. The
heuristic is that double-quoting is unnecessary unless the string
contains an apostrophe, a comma, or backslash (other than
backslash-backslash). YYSTR is taken from yytname. If YYRES is
null, do not copy; instead, return the length of what the result
would have been. */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
if (*yystr == '"')
{
YYSIZE_T yyn = 0;
char const *yyp = yystr;
for (;;)
switch (*++yyp)
{
case '\'':
case ',':
goto do_not_strip_quotes;
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
else
goto append;
append:
default:
if (yyres)
yyres[yyn] = *yyp;
yyn++;
break;
case '"':
if (yyres)
yyres[yyn] = '\0';
return yyn;
}
do_not_strip_quotes: ;
}
if (! yyres)
return yystrlen (yystr);
return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres);
}
# endif
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
about the unexpected token YYTOKEN for the state stack whose top is
YYSSP.
Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
not large enough to hold the message. In that case, also set
*YYMSG_ALLOC to the required number of bytes. Return 2 if the
required number of bytes is too large to store. */
static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
yytype_int16 *yyssp, int yytoken)
{
YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
YYSIZE_T yysize = yysize0;
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
/* Internationalized format string. */
const char *yyformat = YY_NULLPTR;
/* Arguments of yyformat. */
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
/* Number of reported tokens (one for the "unexpected", one per
"expected"). */
int yycount = 0;
/* There are many possibilities here to consider:
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
is an error action. In that case, don't check for expected
tokens because there are none.
- The only way there can be no lookahead present (in yychar) is if
this state is a consistent state with a default action. Thus,
detecting the absence of a lookahead is sufficient to determine
that there is no unexpected or expected token to report. In that
case, just report a simple "syntax error".
- Don't assume there isn't a lookahead just because this state is a
consistent state with a default action. There might have been a
previous inconsistent state, consistent state with a non-default
action, or user semantic action that manipulated yychar.
- Of course, the expected token list depends on states to have
correct lookahead information, and it depends on the parser not
to perform extra reductions after fetching a lookahead from the
scanner and before detecting a syntax error. Thus, state merging
(from LALR or IELR) and default reductions corrupt the expected
token list. However, the list is correct for canonical LR with
one exception: it will still contain any token that will not be
accepted due to an error action in a later state.
*/
if (yytoken != YYEMPTY)
{
int yyn = yypact[*yyssp];
yyarg[yycount++] = yytname[yytoken];
if (!yypact_value_is_default (yyn))
{
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. In other words, skip the first -YYN actions for
this state because they are default actions. */
int yyxbegin = yyn < 0 ? -yyn : 0;
/* Stay within bounds of both yycheck and yytname. */
int yychecklim = YYLAST - yyn + 1;
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
int yyx;
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
&& !yytable_value_is_error (yytable[yyx + yyn]))
{
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
{
yycount = 1;
yysize = yysize0;
break;
}
yyarg[yycount++] = yytname[yyx];
{
YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx
]);
if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
yysize = yysize1;
else
return 2;
}
}
}
}
switch (yycount)
{
# define YYCASE_(N, S) \
case N: \
yyformat = S; \
break
default: /* Avoid compiler warnings. */
YYCASE_(0, YY_("syntax error"));
YYCASE_(1, YY_("syntax error, unexpected %s"));
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %
s"));
# undef YYCASE_
}
{
YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
yysize = yysize1;
else
return 2;
}
if (*yymsg_alloc < yysize)
{
*yymsg_alloc = 2 * yysize;
if (! (yysize <= *yymsg_alloc
&& *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
*yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
return 1;
}
/* Avoid sprintf, as that infringes on the user's name space.
Don't have undefined behavior even if the translation
produced a string with the wrong number of "%s"s. */
{
char *yyp = *yymsg;
int yyi = 0;
while ((*yyp = *yyformat) != '\0')
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
{
yyp += yytnamerr (yyp, yyarg[yyi++]);
yyformat += 2;
}
else
{
yyp++;
yyformat++;
}
}
return 0;
}
#endif /* YYERROR_VERBOSE */
/*-----------------------------------------------. /*-----------------------------------------------.
| Release the memory associated to this symbol. | | Release the memory associated to this symbol. |
`-----------------------------------------------*/ `-----------------------------------------------*/
static void static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) yydestruct (const char *yymsg,
yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
{ {
YYUSE (yyvaluep); YYUSE (yyvaluep);
if (!yymsg) if (!yymsg)
yymsg = "Deleting"; yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
YYUSE (yytype); YYUSE (yykind);
YY_IGNORE_MAYBE_UNINITIALIZED_END YY_IGNORE_MAYBE_UNINITIALIZED_END
} }
/* The lookahead symbol. */ /* The lookahead symbol. */
int yychar; int yychar;
/* The semantic value of the lookahead symbol. */ /* The semantic value of the lookahead symbol. */
YYSTYPE yylval; YYSTYPE yylval;
/* Number of syntax errors so far. */ /* Number of syntax errors so far. */
int yynerrs; int yynerrs;
/*----------. /*----------.
| yyparse. | | yyparse. |
`----------*/ `----------*/
int int
yyparse (void) yyparse (void)
{ {
int yystate; yy_state_fast_t yystate;
/* Number of tokens to shift before error messages enabled. */ /* Number of tokens to shift before error messages enabled. */
int yyerrstatus; int yyerrstatus;
/* The stacks and their tools: /* The stacks and their tools:
'yyss': related to states. 'yyss': related to states.
'yyvs': related to semantic values. 'yyvs': related to semantic values.
Refer to the stacks through separate pointers, to allow yyoverflow Refer to the stacks through separate pointers, to allow yyoverflow
to reallocate them elsewhere. */ to reallocate them elsewhere. */
/* Their size. */
YYPTRDIFF_T yystacksize;
/* The state stack. */ /* The state stack. */
yytype_int16 yyssa[YYINITDEPTH]; yy_state_t yyssa[YYINITDEPTH];
yytype_int16 *yyss; yy_state_t *yyss;
yytype_int16 *yyssp; yy_state_t *yyssp;
/* The semantic value stack. */ /* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs; YYSTYPE *yyvs;
YYSTYPE *yyvsp; YYSTYPE *yyvsp;
YYSIZE_T yystacksize;
int yyn; int yyn;
/* The return value of yyparse. */
int yyresult; int yyresult;
/* Lookahead token as an internal (translated) token number. */ /* Lookahead token as an internal (translated) token number. */
int yytoken = 0; yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
/* The variables used to return semantic value and location from the /* The variables used to return semantic value and location from the
action routines. */ action routines. */
YYSTYPE yyval; YYSTYPE yyval;
#if YYERROR_VERBOSE
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
char *yymsg = yymsgbuf;
YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
/* The number of symbols on the RHS of the reduced rule. /* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */ Keep to zero when no symbol should be popped. */
int yylen = 0; int yylen = 0;
yynerrs = 0;
yystate = 0;
yyerrstatus = 0;
yystacksize = YYINITDEPTH;
yyssp = yyss = yyssa; yyssp = yyss = yyssa;
yyvsp = yyvs = yyvsa; yyvsp = yyvs = yyvsa;
yystacksize = YYINITDEPTH;
YYDPRINTF ((stderr, "Starting parse\n")); YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
yychar = YYEMPTY; /* Cause a token to be read. */ yychar = YYEMPTY; /* Cause a token to be read. */
goto yysetstate; goto yysetstate;
/*------------------------------------------------------------. /*------------------------------------------------------------.
| yynewstate -- push a new state, which is found in yystate. | | yynewstate -- push a new state, which is found in yystate. |
`------------------------------------------------------------*/ `------------------------------------------------------------*/
yynewstate: yynewstate:
/* In all cases, when you get here, the value and location stacks /* In all cases, when you get here, the value and location stacks
have just been pushed. So pushing a state here evens the stacks. */ have just been pushed. So pushing a state here evens the stacks. */
yyssp++; yyssp++;
/*--------------------------------------------------------------------. /*--------------------------------------------------------------------.
| yynewstate -- set current state (the top of the stack) to yystate. | | yysetstate -- set current state (the top of the stack) to yystate. |
`--------------------------------------------------------------------*/ `--------------------------------------------------------------------*/
yysetstate: yysetstate:
YYDPRINTF ((stderr, "Entering state %d\n", yystate)); YYDPRINTF ((stderr, "Entering state %d\n", yystate));
YY_ASSERT (0 <= yystate && yystate < YYNSTATES); YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
*yyssp = (yytype_int16) yystate; YY_IGNORE_USELESS_CAST_BEGIN
*yyssp = YY_CAST (yy_state_t, yystate);
YY_IGNORE_USELESS_CAST_END
YY_STACK_PRINT (yyss, yyssp);
if (yyss + yystacksize - 1 <= yyssp) if (yyss + yystacksize - 1 <= yyssp)
#if !defined yyoverflow && !defined YYSTACK_RELOCATE #if !defined yyoverflow && !defined YYSTACK_RELOCATE
goto yyexhaustedlab; goto yyexhaustedlab;
#else #else
{ {
/* Get the current used size of the three stacks, in elements. */ /* Get the current used size of the three stacks, in elements. */
YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1); YYPTRDIFF_T yysize = yyssp - yyss + 1;
# if defined yyoverflow # if defined yyoverflow
{ {
/* Give user a chance to reallocate the stack. Use copies of /* Give user a chance to reallocate the stack. Use copies of
these so that the &'s don't force the real ones into these so that the &'s don't force the real ones into
memory. */ memory. */
yy_state_t *yyss1 = yyss;
YYSTYPE *yyvs1 = yyvs; YYSTYPE *yyvs1 = yyvs;
yytype_int16 *yyss1 = yyss;
/* Each stack pointer address is followed by the size of the /* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. This used to be a data in use in that stack, in bytes. This used to be a
conditional around just the two extra args, but that might conditional around just the two extra args, but that might
be undefined if yyoverflow is a macro. */ be undefined if yyoverflow is a macro. */
yyoverflow (YY_("memory exhausted"), yyoverflow (YY_("memory exhausted"),
&yyss1, yysize * sizeof (*yyssp), &yyss1, yysize * YYSIZEOF (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp), &yyvs1, yysize * YYSIZEOF (*yyvsp),
&yystacksize); &yystacksize);
yyss = yyss1; yyss = yyss1;
yyvs = yyvs1; yyvs = yyvs1;
} }
# else /* defined YYSTACK_RELOCATE */ # else /* defined YYSTACK_RELOCATE */
/* Extend the stack our own way. */ /* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize) if (YYMAXDEPTH <= yystacksize)
goto yyexhaustedlab; goto yyexhaustedlab;
yystacksize *= 2; yystacksize *= 2;
if (YYMAXDEPTH < yystacksize) if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH; yystacksize = YYMAXDEPTH;
{ {
yytype_int16 *yyss1 = yyss; yy_state_t *yyss1 = yyss;
union yyalloc *yyptr = union yyalloc *yyptr =
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); YY_CAST (union yyalloc *,
YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)
)));
if (! yyptr) if (! yyptr)
goto yyexhaustedlab; goto yyexhaustedlab;
YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, yyvs); YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# undef YYSTACK_RELOCATE # undef YYSTACK_RELOCATE
if (yyss1 != yyssa) if (yyss1 != yyssa)
YYSTACK_FREE (yyss1); YYSTACK_FREE (yyss1);
} }
# endif # endif
yyssp = yyss + yysize - 1; yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1; yyvsp = yyvs + yysize - 1;
YYDPRINTF ((stderr, "Stack size increased to %lu\n", YY_IGNORE_USELESS_CAST_BEGIN
(unsigned long) yystacksize)); YYDPRINTF ((stderr, "Stack size increased to %ld\n",
YY_CAST (long, yystacksize)));
YY_IGNORE_USELESS_CAST_END
if (yyss + yystacksize - 1 <= yyssp) if (yyss + yystacksize - 1 <= yyssp)
YYABORT; YYABORT;
} }
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
if (yystate == YYFINAL) if (yystate == YYFINAL)
YYACCEPT; YYACCEPT;
goto yybackup; goto yybackup;
skipping to change at line 1598 skipping to change at line 1636
/* Do appropriate processing given the current state. Read a /* Do appropriate processing given the current state. Read a
lookahead token if we need one and don't already have one. */ lookahead token if we need one and don't already have one. */
/* First try to decide what to do without reference to lookahead token. */ /* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate]; yyn = yypact[yystate];
if (yypact_value_is_default (yyn)) if (yypact_value_is_default (yyn))
goto yydefault; goto yydefault;
/* Not known => get a lookahead token if don't already have one. */ /* Not known => get a lookahead token if don't already have one. */
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */
if (yychar == YYEMPTY) if (yychar == YYEMPTY)
{ {
YYDPRINTF ((stderr, "Reading a token: ")); YYDPRINTF ((stderr, "Reading a token\n"));
yychar = yylex (); yychar = yylex ();
} }
if (yychar <= YYEOF) if (yychar <= YYEOF)
{ {
yychar = yytoken = YYEOF; yychar = YYEOF;
yytoken = YYSYMBOL_YYEOF;
YYDPRINTF ((stderr, "Now at end of input.\n")); YYDPRINTF ((stderr, "Now at end of input.\n"));
} }
else if (yychar == YYerror)
{
/* The scanner already issued an error message, process directly
to error recovery. But do not keep the error token as
lookahead, it is too special and may lead us to an endless
loop in error recovery. */
yychar = YYUNDEF;
yytoken = YYSYMBOL_YYerror;
goto yyerrlab1;
}
else else
{ {
yytoken = YYTRANSLATE (yychar); yytoken = YYTRANSLATE (yychar);
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
} }
/* If the proper action on seeing token YYTOKEN is to reduce or to /* If the proper action on seeing token YYTOKEN is to reduce or to
detect an error, take that action. */ detect an error, take that action. */
yyn += yytoken; yyn += yytoken;
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
skipping to change at line 1637 skipping to change at line 1686
goto yyreduce; goto yyreduce;
} }
/* Count tokens shifted since error; after three, turn off error /* Count tokens shifted since error; after three, turn off error
status. */ status. */
if (yyerrstatus) if (yyerrstatus)
yyerrstatus--; yyerrstatus--;
/* Shift the lookahead token. */ /* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
/* Discard the shifted token. */
yychar = YYEMPTY;
yystate = yyn; yystate = yyn;
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval; *++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END YY_IGNORE_MAYBE_UNINITIALIZED_END
/* Discard the shifted token. */
yychar = YYEMPTY;
goto yynewstate; goto yynewstate;
/*-----------------------------------------------------------. /*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. | | yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/ `-----------------------------------------------------------*/
yydefault: yydefault:
yyn = yydefact[yystate]; yyn = yydefact[yystate];
if (yyn == 0) if (yyn == 0)
goto yyerrlab; goto yyerrlab;
goto yyreduce; goto yyreduce;
skipping to change at line 1678 skipping to change at line 1726
users should not rely upon it. Assigning to YYVAL users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */ GCC warning that YYVAL may be used uninitialized. */
yyval = yyvsp[1-yylen]; yyval = yyvsp[1-yylen];
YY_REDUCE_PRINT (yyn); YY_REDUCE_PRINT (yyn);
switch (yyn) switch (yyn)
{ {
case 13: case 13:
#line 202 "configparser.y" #line 202 "configparser.y"
{ {
struct ip_address_option *ip = cfg_parser->opt->ip_addresses; struct ip_address_option *ip = cfg_parser->opt->ip_addresses;
if(ip == NULL) { if(ip == NULL) {
cfg_parser->opt->ip_addresses = (yyvsp[0].ip); cfg_parser->opt->ip_addresses = (yyvsp[0].ip);
} else { } else {
while(ip->next) { ip = ip->next; } while(ip->next) { ip = ip->next; }
ip->next = (yyvsp[0].ip); ip->next = (yyvsp[0].ip);
} }
cfg_parser->ip = (yyvsp[0].ip); cfg_parser->ip = (yyvsp[0].ip);
} }
#line 1719 "configparser.c" #line 1774 "configparser.c"
break; break;
case 14: case 14:
#line 215 "configparser.y" #line 215 "configparser.y"
{ {
cfg_parser->ip = NULL; cfg_parser->ip = NULL;
} }
#line 1727 "configparser.c" #line 1782 "configparser.c"
break; break;
case 15: case 15:
#line 219 "configparser.y" #line 219 "configparser.y"
{ {
if ((yyvsp[0].llng) > 0) { if ((yyvsp[0].llng) > 0) {
cfg_parser->opt->server_count = (int)(yyvsp[0].llng); cfg_parser->opt->server_count = (int)(yyvsp[0].llng);
} else { } else {
yyerror("expected a number greater than zero"); yyerror("expected a number greater than zero");
} }
} }
#line 1739 "configparser.c" #line 1794 "configparser.c"
break; break;
case 16: case 16:
#line 227 "configparser.y" #line 227 "configparser.y"
{ cfg_parser->opt->ip_transparent = (yyvsp[0].bln); } { cfg_parser->opt->ip_transparent = (yyvsp[0].bln); }
#line 1745 "configparser.c" #line 1800 "configparser.c"
break; break;
case 17: case 17:
#line 229 "configparser.y" #line 229 "configparser.y"
{ cfg_parser->opt->ip_freebind = (yyvsp[0].bln); } { cfg_parser->opt->ip_freebind = (yyvsp[0].bln); }
#line 1751 "configparser.c" #line 1806 "configparser.c"
break; break;
case 18: case 18:
#line 231 "configparser.y" #line 231 "configparser.y"
{ cfg_parser->opt->send_buffer_size = (int)(yyvsp[0].llng); } { cfg_parser->opt->send_buffer_size = (int)(yyvsp[0].llng); }
#line 1757 "configparser.c" #line 1812 "configparser.c"
break; break;
case 19: case 19:
#line 233 "configparser.y" #line 233 "configparser.y"
{ cfg_parser->opt->receive_buffer_size = (int)(yyvsp[0].llng); } { cfg_parser->opt->receive_buffer_size = (int)(yyvsp[0].llng); }
#line 1763 "configparser.c" #line 1818 "configparser.c"
break; break;
case 20: case 20:
#line 235 "configparser.y" #line 235 "configparser.y"
{ cfg_parser->opt->debug_mode = (yyvsp[0].bln); } { cfg_parser->opt->debug_mode = (yyvsp[0].bln); }
#line 1769 "configparser.c" #line 1824 "configparser.c"
break; break;
case 21: case 21:
#line 237 "configparser.y" #line 237 "configparser.y"
{ /* ignored, deprecated */ } { /* ignored, deprecated */ }
#line 1775 "configparser.c" #line 1830 "configparser.c"
break; break;
case 22: case 22:
#line 239 "configparser.y" #line 239 "configparser.y"
{ cfg_parser->opt->hide_version = (yyvsp[0].bln); } { cfg_parser->opt->hide_version = (yyvsp[0].bln); }
#line 1781 "configparser.c" #line 1836 "configparser.c"
break; break;
case 23: case 23:
#line 241 "configparser.y" #line 241 "configparser.y"
{ cfg_parser->opt->hide_identity = (yyvsp[0].bln); } { cfg_parser->opt->hide_identity = (yyvsp[0].bln); }
#line 1787 "configparser.c" #line 1842 "configparser.c"
break; break;
case 24: case 24:
#line 243 "configparser.y" #line 243 "configparser.y"
{ cfg_parser->opt->drop_updates = (yyvsp[0].bln); } { cfg_parser->opt->drop_updates = (yyvsp[0].bln); }
#line 1793 "configparser.c" #line 1848 "configparser.c"
break; break;
case 25: case 25:
#line 245 "configparser.y" #line 245 "configparser.y"
{ if((yyvsp[0].bln)) { cfg_parser->opt->do_ip4 = 1; cfg_parser->opt->do_ip6 = 0; } } { if((yyvsp[0].bln)) { cfg_parser->opt->do_ip4 = 1; cfg_parser->opt->do_ip6 = 0; } }
#line 1799 "configparser.c" #line 1854 "configparser.c"
break; break;
case 26: case 26:
#line 247 "configparser.y" #line 247 "configparser.y"
{ if((yyvsp[0].bln)) { cfg_parser->opt->do_ip4 = 0; cfg_parser->opt->do_ip6 = 1; } } { if((yyvsp[0].bln)) { cfg_parser->opt->do_ip4 = 0; cfg_parser->opt->do_ip6 = 1; } }
#line 1805 "configparser.c" #line 1860 "configparser.c"
break; break;
case 27: case 27:
#line 249 "configparser.y" #line 249 "configparser.y"
{ cfg_parser->opt->do_ip4 = (yyvsp[0].bln); } { cfg_parser->opt->do_ip4 = (yyvsp[0].bln); }
#line 1811 "configparser.c" #line 1866 "configparser.c"
break; break;
case 28: case 28:
#line 251 "configparser.y" #line 251 "configparser.y"
{ cfg_parser->opt->do_ip6 = (yyvsp[0].bln); } { cfg_parser->opt->do_ip6 = (yyvsp[0].bln); }
#line 1817 "configparser.c" #line 1872 "configparser.c"
break; break;
case 29: case 29:
#line 253 "configparser.y" #line 253 "configparser.y"
{ {
cfg_parser->opt->database = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); cfg_parser->opt->database = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str));
if(cfg_parser->opt->database[0] == 0 && if(cfg_parser->opt->database[0] == 0 &&
cfg_parser->opt->zonefiles_write == 0) cfg_parser->opt->zonefiles_write == 0)
{ {
cfg_parser->opt->zonefiles_write = ZONEFILES_WRITE_INTERVAL; cfg_parser->opt->zonefiles_write = ZONEFILES_WRITE_INTERVAL;
} }
} }
#line 1830 "configparser.c" #line 1885 "configparser.c"
break; break;
case 30: case 30:
#line 262 "configparser.y" #line 262 "configparser.y"
{ cfg_parser->opt->identity = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); } { cfg_parser->opt->identity = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); }
#line 1836 "configparser.c" #line 1891 "configparser.c"
break; break;
case 31: case 31:
#line 264 "configparser.y" #line 264 "configparser.y"
{ cfg_parser->opt->version = region_strdup(cfg_parser->opt->region, (yyvsp[0 ].str)); } { cfg_parser->opt->version = region_strdup(cfg_parser->opt->region, (yyvsp[0 ].str)); }
#line 1842 "configparser.c" #line 1897 "configparser.c"
break; break;
case 32: case 32:
#line 266 "configparser.y" #line 266 "configparser.y"
{ {
unsigned char* nsid = 0; unsigned char* nsid = 0;
size_t nsid_len = strlen((yyvsp[0].str)); size_t nsid_len = strlen((yyvsp[0].str));
if (strncasecmp((yyvsp[0].str), "ascii_", 6) == 0) { if (strncasecmp((yyvsp[0].str), "ascii_", 6) == 0) {
nsid_len -= 6; /* discard "ascii_" */ nsid_len -= 6; /* discard "ascii_" */
skipping to change at line 1847 skipping to change at line 1895
yyerror("hex string cannot be parsed in NSID."); yyerror("hex string cannot be parsed in NSID.");
} else { } else {
cfg_parser->opt->nsid = region_strdup(cfg_parser->opt->region, (yyvs p[0].str)); cfg_parser->opt->nsid = region_strdup(cfg_parser->opt->region, (yyvs p[0].str));
} }
free(nsid); free(nsid);
} else { } else {
yyerror("NSID too long"); yyerror("NSID too long");
} }
} }
} }
#line 1876 "configparser.c" #line 1931 "configparser.c"
break; break;
case 33: case 33:
#line 296 "configparser.y" #line 296 "configparser.y"
{ cfg_parser->opt->logfile = region_strdup(cfg_parser->opt->region, (yyvsp[0 ].str)); } { cfg_parser->opt->logfile = region_strdup(cfg_parser->opt->region, (yyvsp[0 ].str)); }
#line 1882 "configparser.c" #line 1937 "configparser.c"
break; break;
case 34: case 34:
#line 298 "configparser.y" #line 298 "configparser.y"
{ cfg_parser->opt->log_only_syslog = (yyvsp[0].bln); } { cfg_parser->opt->log_only_syslog = (yyvsp[0].bln); }
#line 1888 "configparser.c" #line 1943 "configparser.c"
break; break;
case 35: case 35:
#line 300 "configparser.y" #line 300 "configparser.y"
{ {
if ((yyvsp[0].llng) > 0) { if ((yyvsp[0].llng) > 0) {
cfg_parser->opt->tcp_count = (int)(yyvsp[0].llng); cfg_parser->opt->tcp_count = (int)(yyvsp[0].llng);
} else { } else {
yyerror("expected a number greater than zero"); yyerror("expected a number greater than zero");
} }
} }
#line 1900 "configparser.c" #line 1955 "configparser.c"
break; break;
case 36: case 36:
#line 308 "configparser.y" #line 308 "configparser.y"
{ cfg_parser->opt->tcp_reject_overflow = (yyvsp[0].bln); } { cfg_parser->opt->tcp_reject_overflow = (yyvsp[0].bln); }
#line 1906 "configparser.c" #line 1961 "configparser.c"
break; break;
case 37: case 37:
#line 310 "configparser.y" #line 310 "configparser.y"
{ cfg_parser->opt->tcp_query_count = (int)(yyvsp[0].llng); } { cfg_parser->opt->tcp_query_count = (int)(yyvsp[0].llng); }
#line 1912 "configparser.c" #line 1967 "configparser.c"
break; break;
case 38: case 38:
#line 312 "configparser.y" #line 312 "configparser.y"
{ cfg_parser->opt->tcp_timeout = (int)(yyvsp[0].llng); } { cfg_parser->opt->tcp_timeout = (int)(yyvsp[0].llng); }
#line 1918 "configparser.c" #line 1973 "configparser.c"
break; break;
case 39: case 39:
#line 314 "configparser.y" #line 314 "configparser.y"
{ cfg_parser->opt->tcp_mss = (int)(yyvsp[0].llng); } { cfg_parser->opt->tcp_mss = (int)(yyvsp[0].llng); }
#line 1924 "configparser.c" #line 1979 "configparser.c"
break; break;
case 40: case 40:
#line 316 "configparser.y" #line 316 "configparser.y"
{ cfg_parser->opt->outgoing_tcp_mss = (int)(yyvsp[0].llng); } { cfg_parser->opt->outgoing_tcp_mss = (int)(yyvsp[0].llng); }
#line 1930 "configparser.c" #line 1985 "configparser.c"
break; break;
case 41: case 41:
#line 318 "configparser.y" #line 318 "configparser.y"
{ cfg_parser->opt->ipv4_edns_size = (size_t)(yyvsp[0].llng); } { cfg_parser->opt->ipv4_edns_size = (size_t)(yyvsp[0].llng); }
#line 1936 "configparser.c" #line 1991 "configparser.c"
break; break;
case 42: case 42:
#line 320 "configparser.y" #line 320 "configparser.y"
{ cfg_parser->opt->ipv6_edns_size = (size_t)(yyvsp[0].llng); } { cfg_parser->opt->ipv6_edns_size = (size_t)(yyvsp[0].llng); }
#line 1942 "configparser.c" #line 1997 "configparser.c"
break; break;
case 43: case 43:
#line 322 "configparser.y" #line 322 "configparser.y"
{ cfg_parser->opt->pidfile = region_strdup(cfg_parser->opt->region, (yyvsp[0 ].str)); } { cfg_parser->opt->pidfile = region_strdup(cfg_parser->opt->region, (yyvsp[0 ].str)); }
#line 1948 "configparser.c" #line 2003 "configparser.c"
break; break;
case 44: case 44:
#line 324 "configparser.y" #line 324 "configparser.y"
{ {
/* port number, stored as a string */ /* port number, stored as a string */
char buf[16]; char buf[16];
(void)snprintf(buf, sizeof(buf), "%lld", (yyvsp[0].llng)); (void)snprintf(buf, sizeof(buf), "%lld", (yyvsp[0].llng));
cfg_parser->opt->port = region_strdup(cfg_parser->opt->region, buf); cfg_parser->opt->port = region_strdup(cfg_parser->opt->region, buf);
} }
#line 1959 "configparser.c" #line 2014 "configparser.c"
break; break;
case 45: case 45:
#line 331 "configparser.y" #line 331 "configparser.y"
{ cfg_parser->opt->reuseport = (yyvsp[0].bln); } { cfg_parser->opt->reuseport = (yyvsp[0].bln); }
#line 1965 "configparser.c" #line 2020 "configparser.c"
break; break;
case 46: case 46:
#line 333 "configparser.y" #line 333 "configparser.y"
{ cfg_parser->opt->statistics = (int)(yyvsp[0].llng); } { cfg_parser->opt->statistics = (int)(yyvsp[0].llng); }
#line 1971 "configparser.c" #line 2026 "configparser.c"
break; break;
case 47: case 47:
#line 335 "configparser.y" #line 335 "configparser.y"
{ cfg_parser->opt->chroot = region_strdup(cfg_parser->opt->region, (yyvsp[0] .str)); } { cfg_parser->opt->chroot = region_strdup(cfg_parser->opt->region, (yyvsp[0] .str)); }
#line 1977 "configparser.c" #line 2032 "configparser.c"
break; break;
case 48: case 48:
#line 337 "configparser.y" #line 337 "configparser.y"
{ cfg_parser->opt->username = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); } { cfg_parser->opt->username = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); }
#line 1983 "configparser.c" #line 2038 "configparser.c"
break; break;
case 49: case 49:
#line 339 "configparser.y" #line 339 "configparser.y"
{ cfg_parser->opt->zonesdir = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); } { cfg_parser->opt->zonesdir = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); }
#line 1989 "configparser.c" #line 2044 "configparser.c"
break; break;
case 50: case 50:
#line 341 "configparser.y" #line 341 "configparser.y"
{ cfg_parser->opt->zonelistfile = region_strdup(cfg_parser->opt->region, (yy vsp[0].str)); } { cfg_parser->opt->zonelistfile = region_strdup(cfg_parser->opt->region, (yy vsp[0].str)); }
#line 1995 "configparser.c" #line 2050 "configparser.c"
break; break;
case 51: case 51:
#line 343 "configparser.y" #line 343 "configparser.y"
{ /* ignored, deprecated */ } { /* ignored, deprecated */ }
#line 2001 "configparser.c" #line 2056 "configparser.c"
break; break;
case 52: case 52:
#line 345 "configparser.y" #line 345 "configparser.y"
{ cfg_parser->opt->xfrdfile = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); } { cfg_parser->opt->xfrdfile = region_strdup(cfg_parser->opt->region, (yyvsp[ 0].str)); }
#line 2007 "configparser.c" #line 2062 "configparser.c"
break; break;
case 53: case 53:
#line 347 "configparser.y" #line 347 "configparser.y"
{ cfg_parser->opt->xfrdir = region_strdup(cfg_parser->opt->region, (yyvsp[0] .str)); } { cfg_parser->opt->xfrdir = region_strdup(cfg_parser->opt->region, (yyvsp[0] .str)); }
#line 2013 "configparser.c" #line 2068 "configparser.c"
break; break;
case 54: case 54:
#line 349 "configparser.y" #line 349 "configparser.y"
{ cfg_parser->opt->xfrd_reload_timeout = (int)(yyvsp[0].llng); } { cfg_parser->opt->xfrd_reload_timeout = (int)(yyvsp[0].llng); }
#line 2019 "configparser.c" #line 2074 "configparser.c"
break; break;
case 55: case 55:
#line 351 "configparser.y" #line 351 "configparser.y"
{ cfg_parser->opt->verbosity = (int)(yyvsp[0].llng); } { cfg_parser->opt->verbosity = (int)(yyvsp[0].llng); }
#line 2025 "configparser.c" #line 2080 "configparser.c"
break; break;
case 56: case 56:
#line 353 "configparser.y" #line 353 "configparser.y"
{ {
#ifdef RATELIMIT #ifdef RATELIMIT
if ((yyvsp[0].llng) > 0) { if ((yyvsp[0].llng) > 0) {
cfg_parser->opt->rrl_size = (size_t)(yyvsp[0].llng); cfg_parser->opt->rrl_size = (size_t)(yyvsp[0].llng);
} else { } else {
yyerror("expected a number greater than zero"); yyerror("expected a number greater than zero");
} }
#endif #endif
} }
#line 2039 "configparser.c" #line 2094 "configparser.c"
break; break;
case 57: case 57:
#line 363 "configparser.y" #line 363 "configparser.y"
{ {
#ifdef RATELIMIT #ifdef RATELIMIT
cfg_parser->opt->rrl_ratelimit = (size_t)(yyvsp[0].llng); cfg_parser->opt->rrl_ratelimit = (size_t)(yyvsp[0].llng);
#endif #endif
} }
#line 2049 "configparser.c" #line 2104 "configparser.c"
break; break;
case 58: case 58:
#line 369 "configparser.y" #line 369 "configparser.y"
{ {
#ifdef RATELIMIT #ifdef RATELIMIT
cfg_parser->opt->rrl_slip = (size_t)(yyvsp[0].llng); cfg_parser->opt->rrl_slip = (size_t)(yyvsp[0].llng);
#endif #endif
} }
#line 2059 "configparser.c" #line 2114 "configparser.c"
break; break;
case 59: case 59:
#line 375 "configparser.y" #line 375 "configparser.y"
{ {
#ifdef RATELIMIT #ifdef RATELIMIT
if ((yyvsp[0].llng) > 32) { if ((yyvsp[0].llng) > 32) {
yyerror("invalid IPv4 prefix length"); yyerror("invalid IPv4 prefix length");
} else { } else {
cfg_parser->opt->rrl_ipv4_prefix_length = (size_t)(yyvsp[0].llng); cfg_parser->opt->rrl_ipv4_prefix_length = (size_t)(yyvsp[0].llng);
} }
#endif #endif
} }
#line 2073 "configparser.c" #line 2128 "configparser.c"
break; break;
case 60: case 60:
#line 385 "configparser.y" #line 385 "configparser.y"
{ {
#ifdef RATELIMIT #ifdef RATELIMIT
if ((yyvsp[0].llng) > 64) { if ((yyvsp[0].llng) > 64) {
yyerror("invalid IPv6 prefix length"); yyerror("invalid IPv6 prefix length");
} else { } else {
cfg_parser->opt->rrl_ipv6_prefix_length = (size_t)(yyvsp[0].llng); cfg_parser->opt->rrl_ipv6_prefix_length = (size_t)(yyvsp[0].llng);
} }
#endif #endif
} }
#line 2087 "configparser.c" #line 2142 "configparser.c"
break; break;
case 61: case 61:
#line 395 "configparser.y" #line 395 "configparser.y"
{ {
#ifdef RATELIMIT #ifdef RATELIMIT
cfg_parser->opt->rrl_whitelist_ratelimit = (size_t)(yyvsp[0].llng); cfg_parser->opt->rrl_whitelist_ratelimit = (size_t)(yyvsp[0].llng);
#endif #endif
} }
#line 2097 "configparser.c" #line 2152 "configparser.c"
break; break;
case 62: case 62:
#line 401 "configparser.y" #line 401 "configparser.y"
{ cfg_parser->opt->zonefiles_check = (yyvsp[0].bln); } { cfg_parser->opt->zonefiles_check = (yyvsp[0].bln); }
#line 2103 "configparser.c" #line 2158 "configparser.c"
break; break;
case 63: case 63:
#line 403 "configparser.y" #line 403 "configparser.y"
{ cfg_parser->opt->zonefiles_write = (int)(yyvsp[0].llng); } { cfg_parser->opt->zonefiles_write = (int)(yyvsp[0].llng); }
#line 2109 "configparser.c" #line 2164 "configparser.c"
break; break;
case 64: case 64:
#line 405 "configparser.y" #line 405 "configparser.y"
{ {
cfg_parser->opt->log_time_ascii = (yyvsp[0].bln); cfg_parser->opt->log_time_ascii = (yyvsp[0].bln);
log_time_asc = cfg_parser->opt->log_time_ascii; log_time_asc = cfg_parser->opt->log_time_ascii;
} }
#line 2118 "configparser.c" #line 2173 "configparser.c"
break; break;
case 65: case 65:
#line 410 "configparser.y" #line 410 "configparser.y"
{ {
cfg_parser->opt->round_robin = (yyvsp[0].bln); cfg_parser->opt->round_robin = (yyvsp[0].bln);
round_robin = cfg_parser->opt->round_robin; round_robin = cfg_parser->opt->round_robin;
} }
#line 2127 "configparser.c" #line 2182 "configparser.c"
break; break;
case 66: case 66:
#line 415 "configparser.y" #line 415 "configparser.y"
{ {
cfg_parser->opt->minimal_responses = (yyvsp[0].bln); cfg_parser->opt->minimal_responses = (yyvsp[0].bln);
minimal_responses = cfg_parser->opt->minimal_responses; minimal_responses = cfg_parser->opt->minimal_responses;
} }
#line 2136 "configparser.c" #line 2191 "configparser.c"
break; break;
case 67: case 67:
#line 420 "configparser.y" #line 420 "configparser.y"
{ cfg_parser->opt->confine_to_zone = (yyvsp[0].bln); } { cfg_parser->opt->confine_to_zone = (yyvsp[0].bln); }
#line 2142 "configparser.c" #line 2197 "configparser.c"
break; break;
case 68: case 68:
#line 422 "configparser.y" #line 422 "configparser.y"
{ cfg_parser->opt->refuse_any = (yyvsp[0].bln); } { cfg_parser->opt->refuse_any = (yyvsp[0].bln); }
#line 2148 "configparser.c" #line 2203 "configparser.c"
break; break;
case 69: case 69:
#line 424 "configparser.y" #line 424 "configparser.y"
{ cfg_parser->opt->tls_service_key = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); } { cfg_parser->opt->tls_service_key = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); }
#line 2154 "configparser.c" #line 2209 "configparser.c"
break; break;
case 70: case 70:
#line 426 "configparser.y" #line 426 "configparser.y"
{ cfg_parser->opt->tls_service_ocsp = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); } { cfg_parser->opt->tls_service_ocsp = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); }
#line 2160 "configparser.c" #line 2215 "configparser.c"
break; break;
case 71: case 71:
#line 428 "configparser.y" #line 428 "configparser.y"
{ cfg_parser->opt->tls_service_pem = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); } { cfg_parser->opt->tls_service_pem = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); }
#line 2166 "configparser.c" #line 2221 "configparser.c"
break; break;
case 72: case 72:
#line 430 "configparser.y" #line 430 "configparser.y"
{ {
/* port number, stored as string */ /* port number, stored as string */
char buf[16]; char buf[16];
(void)snprintf(buf, sizeof(buf), "%lld", (yyvsp[0].llng)); (void)snprintf(buf, sizeof(buf), "%lld", (yyvsp[0].llng));
cfg_parser->opt->tls_port = region_strdup(cfg_parser->opt->region, buf); cfg_parser->opt->tls_port = region_strdup(cfg_parser->opt->region, buf);
} }
#line 2177 "configparser.c" #line 2232 "configparser.c"
break; break;
case 73: case 73:
#line 437 "configparser.y" #line 437 "configparser.y"
{ {
cfg_parser->opt->cpu_affinity = (yyvsp[0].cpu); cfg_parser->opt->cpu_affinity = (yyvsp[0].cpu);
} }
#line 2185 "configparser.c" #line 2240 "configparser.c"
break; break;
case 74: case 74:
#line 441 "configparser.y" #line 441 "configparser.y"
{ {
if((yyvsp[0].llng) < 0) { if((yyvsp[0].llng) < 0) {
yyerror("expected a non-negative number"); yyerror("expected a non-negative number");
YYABORT; YYABORT;
} else { } else {
struct cpu_map_option *opt, *tail; struct cpu_map_option *opt, *tail;
skipping to change at line 2188 skipping to change at line 2236
tail = cfg_parser->opt->service_cpu_affinity; tail = cfg_parser->opt->service_cpu_affinity;
if(tail) { if(tail) {
while(tail->next) { tail = tail->next; } while(tail->next) { tail = tail->next; }
tail->next = opt; tail->next = opt;
} else { } else {
cfg_parser->opt->service_cpu_affinity = opt; cfg_parser->opt->service_cpu_affinity = opt;
} }
} }
} }
} }
#line 2217 "configparser.c" #line 2272 "configparser.c"
break; break;
case 77: case 77:
#line 475 "configparser.y" #line 475 "configparser.y"
{ {
char *tok, *ptr, *str; char *tok, *ptr, *str;
struct range_option *servers = NULL; struct range_option *servers = NULL;
long long first, last; long long first, last;
/* user may specify "0 1", "0" "1", 0 1 or a combination thereof */ /* user may specify "0 1", "0" "1", 0 1 or a combination thereof */
skipping to change at line 2219 skipping to change at line 2267
opt->next = NULL; opt->next = NULL;
opt->first = (int)first; opt->first = (int)first;
opt->last = (int)last; opt->last = (int)last;
if(servers) { if(servers) {
servers = servers->next = opt; servers = servers->next = opt;
} else { } else {
servers = cfg_parser->ip->servers = opt; servers = cfg_parser->ip->servers = opt;
} }
} }
} }
#line 2248 "configparser.c" #line 2303 "configparser.c"
break; break;
case 78: case 78:
#line 502 "configparser.y" #line 502 "configparser.y"
{ cfg_parser->ip->dev = (yyvsp[0].bln); } { cfg_parser->ip->dev = (yyvsp[0].bln); }
#line 2254 "configparser.c" #line 2309 "configparser.c"
break; break;
case 79: case 79:
#line 504 "configparser.y" #line 504 "configparser.y"
{ cfg_parser->ip->fib = (yyvsp[0].llng); } { cfg_parser->ip->fib = (yyvsp[0].llng); }
#line 2260 "configparser.c" #line 2315 "configparser.c"
break; break;
case 80: case 80:
#line 508 "configparser.y" #line 508 "configparser.y"
{ (yyval.cpu) = NULL; } { (yyval.cpu) = NULL; }
#line 2266 "configparser.c" #line 2321 "configparser.c"
break; break;
case 81: case 81:
#line 510 "configparser.y" #line 510 "configparser.y"
{ {
char *tok, *ptr, *str; char *tok, *ptr, *str;
struct cpu_option *tail; struct cpu_option *tail;
long long cpu; long long cpu;
str = (yyvsp[0].str); str = (yyvsp[0].str);
skipping to change at line 2272 skipping to change at line 2320
assert(cpu >=0); assert(cpu >=0);
opt->cpu = (int)cpu; opt->cpu = (int)cpu;
if(tail) { if(tail) {
tail->next = opt; tail->next = opt;
tail = opt; tail = opt;
} else { } else {
(yyval.cpu) = tail = opt; (yyval.cpu) = tail = opt;
} }
} }
} }
#line 2301 "configparser.c" #line 2356 "configparser.c"
break; break;
case 82: case 82:
#line 544 "configparser.y" #line 544 "configparser.y"
{ (yyval.llng) = -1; } { (yyval.llng) = -1; }
#line 2307 "configparser.c" #line 2362 "configparser.c"
break; break;
case 83: case 83:
#line 546 "configparser.y" #line 546 "configparser.y"
{ {
if((yyvsp[0].llng) <= 0) { if((yyvsp[0].llng) <= 0) {
yyerror("invalid server identifier"); yyerror("invalid server identifier");
YYABORT; YYABORT;
} }
(yyval.llng) = (yyvsp[0].llng); (yyval.llng) = (yyvsp[0].llng);
} }
#line 2319 "configparser.c" #line 2374 "configparser.c"
break; break;
case 87: case 87:
#line 563 "configparser.y" #line 563 "configparser.y"
{ cfg_parser->opt->dnstap_enable = (yyvsp[0].bln); } { cfg_parser->opt->dnstap_enable = (yyvsp[0].bln); }
#line 2325 "configparser.c" #line 2380 "configparser.c"
break; break;
case 88: case 88:
#line 565 "configparser.y" #line 565 "configparser.y"
{ cfg_parser->opt->dnstap_socket_path = region_strdup(cfg_parser->opt->regio n, (yyvsp[0].str)); } { cfg_parser->opt->dnstap_socket_path = region_strdup(cfg_parser->opt->regio n, (yyvsp[0].str)); }
#line 2331 "configparser.c" #line 2386 "configparser.c"
break; break;
case 89: case 89:
#line 567 "configparser.y" #line 567 "configparser.y"
{ cfg_parser->opt->dnstap_send_identity = (yyvsp[0].bln); } { cfg_parser->opt->dnstap_send_identity = (yyvsp[0].bln); }
#line 2337 "configparser.c" #line 2392 "configparser.c"
break; break;
case 90: case 90:
#line 569 "configparser.y" #line 569 "configparser.y"
{ cfg_parser->opt->dnstap_send_version = (yyvsp[0].bln); } { cfg_parser->opt->dnstap_send_version = (yyvsp[0].bln); }
#line 2343 "configparser.c" #line 2398 "configparser.c"
break; break;
case 91: case 91:
#line 571 "configparser.y" #line 571 "configparser.y"
{ cfg_parser->opt->dnstap_identity = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); } { cfg_parser->opt->dnstap_identity = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); }
#line 2349 "configparser.c" #line 2404 "configparser.c"
break; break;
case 92: case 92:
#line 573 "configparser.y" #line 573 "configparser.y"
{ cfg_parser->opt->dnstap_version = region_strdup(cfg_parser->opt->region, ( yyvsp[0].str)); } { cfg_parser->opt->dnstap_version = region_strdup(cfg_parser->opt->region, ( yyvsp[0].str)); }
#line 2355 "configparser.c" #line 2410 "configparser.c"
break; break;
case 93: case 93:
#line 575 "configparser.y" #line 575 "configparser.y"
{ cfg_parser->opt->dnstap_log_auth_query_messages = (yyvsp[0].bln); } { cfg_parser->opt->dnstap_log_auth_query_messages = (yyvsp[0].bln); }
#line 2361 "configparser.c" #line 2416 "configparser.c"
break; break;
case 94: case 94:
#line 577 "configparser.y" #line 577 "configparser.y"
{ cfg_parser->opt->dnstap_log_auth_response_messages = (yyvsp[0].bln); } { cfg_parser->opt->dnstap_log_auth_response_messages = (yyvsp[0].bln); }
#line 2367 "configparser.c" #line 2422 "configparser.c"
break; break;
case 98: case 98:
#line 588 "configparser.y" #line 588 "configparser.y"
{ cfg_parser->opt->control_enable = (yyvsp[0].bln); } { cfg_parser->opt->control_enable = (yyvsp[0].bln); }
#line 2373 "configparser.c" #line 2428 "configparser.c"
break; break;
case 99: case 99:
#line 590 "configparser.y" #line 590 "configparser.y"
{ {
struct ip_address_option *ip = cfg_parser->opt->control_interface; struct ip_address_option *ip = cfg_parser->opt->control_interface;
if(ip == NULL) { if(ip == NULL) {
cfg_parser->opt->control_interface = (yyvsp[0].ip); cfg_parser->opt->control_interface = (yyvsp[0].ip);
} else { } else {
while(ip->next != NULL) { ip = ip->next; } while(ip->next != NULL) { ip = ip->next; }
ip->next = (yyvsp[0].ip); ip->next = (yyvsp[0].ip);
} }
} }
#line 2387 "configparser.c" #line 2442 "configparser.c"
break; break;
case 100: case 100:
#line 600 "configparser.y" #line 600 "configparser.y"
{ {
if((yyvsp[0].llng) == 0) { if((yyvsp[0].llng) == 0) {
yyerror("control port number expected"); yyerror("control port number expected");
} else { } else {
cfg_parser->opt->control_port = (int)(yyvsp[0].llng); cfg_parser->opt->control_port = (int)(yyvsp[0].llng);
} }
} }
#line 2399 "configparser.c" #line 2454 "configparser.c"
break; break;
case 101: case 101:
#line 608 "configparser.y" #line 608 "configparser.y"
{ cfg_parser->opt->server_key_file = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); } { cfg_parser->opt->server_key_file = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); }
#line 2405 "configparser.c" #line 2460 "configparser.c"
break; break;
case 102: case 102:
#line 610 "configparser.y" #line 610 "configparser.y"
{ cfg_parser->opt->server_cert_file = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); } { cfg_parser->opt->server_cert_file = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); }
#line 2411 "configparser.c" #line 2466 "configparser.c"
break; break;
case 103: case 103:
#line 612 "configparser.y" #line 612 "configparser.y"
{ cfg_parser->opt->control_key_file = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); } { cfg_parser->opt->control_key_file = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); }
#line 2417 "configparser.c" #line 2472 "configparser.c"
break; break;
case 104: case 104:
#line 614 "configparser.y" #line 614 "configparser.y"
{ cfg_parser->opt->control_cert_file = region_strdup(cfg_parser->opt->region , (yyvsp[0].str)); } { cfg_parser->opt->control_cert_file = region_strdup(cfg_parser->opt->region , (yyvsp[0].str)); }
#line 2423 "configparser.c" #line 2478 "configparser.c"
break; break;
case 105: case 105:
#line 619 "configparser.y" #line 619 "configparser.y"
{ {
key_options_type *key = key_options_create(cfg_parser->opt->region); key_options_type *key = key_options_create(cfg_parser->opt->region);
key->algorithm = region_strdup(cfg_parser->opt->region, "sha256"); key->algorithm = region_strdup(cfg_parser->opt->region, "sha256");
assert(cfg_parser->key == NULL); assert(cfg_parser->key == NULL);
cfg_parser->key = key; cfg_parser->key = key;
} }
#line 2434 "configparser.c" #line 2489 "configparser.c"
break; break;
case 106: case 106:
#line 626 "configparser.y" #line 626 "configparser.y"
{ {
struct key_options *key = cfg_parser->key; struct key_options *key = cfg_parser->key;
if(key->name == NULL) { if(key->name == NULL) {
yyerror("tsig key has no name"); yyerror("tsig key has no name");
} else if(key->algorithm == NULL) { } else if(key->algorithm == NULL) {
yyerror("tsig key %s has no algorithm", key->name); yyerror("tsig key %s has no algorithm", key->name);
} else if(key->secret == NULL) { } else if(key->secret == NULL) {
yyerror("tsig key %s has no secret blob", key->name); yyerror("tsig key %s has no secret blob", key->name);
} else if(key_options_find(cfg_parser->opt, key->name)) { } else if(key_options_find(cfg_parser->opt, key->name)) {
yyerror("duplicate tsig key %s", key->name); yyerror("duplicate tsig key %s", key->name);
} else { } else {
key_options_insert(cfg_parser->opt, key); key_options_insert(cfg_parser->opt, key);
cfg_parser->key = NULL; cfg_parser->key = NULL;
} }
} }
#line 2454 "configparser.c" #line 2509 "configparser.c"
break; break;
case 109: case 109:
#line 647 "configparser.y" #line 647 "configparser.y"
{ {
dname_type *dname; dname_type *dname;
dname = (dname_type *)dname_parse(cfg_parser->opt->region, (yyvsp[0].str)) ; dname = (dname_type *)dname_parse(cfg_parser->opt->region, (yyvsp[0].str)) ;
cfg_parser->key->name = region_strdup(cfg_parser->opt->region, (yyvsp[0].s tr)); cfg_parser->key->name = region_strdup(cfg_parser->opt->region, (yyvsp[0].s tr));
if(dname == NULL) { if(dname == NULL) {
yyerror("bad tsig key name %s", (yyvsp[0].str)); yyerror("bad tsig key name %s", (yyvsp[0].str));
} else { } else {
region_recycle(cfg_parser->opt->region, dname, dname_total_size(dname)); region_recycle(cfg_parser->opt->region, dname, dname_total_size(dname));
} }
} }
#line 2470 "configparser.c" #line 2525 "configparser.c"
break; break;
case 110: case 110:
#line 659 "configparser.y" #line 659 "configparser.y"
{ {
if(tsig_get_algorithm_by_name((yyvsp[0].str)) == NULL) { if(tsig_get_algorithm_by_name((yyvsp[0].str)) == NULL) {
yyerror("bad tsig key algorithm %s", (yyvsp[0].str)); yyerror("bad tsig key algorithm %s", (yyvsp[0].str));
} else { } else {
cfg_parser->key->algorithm = region_strdup(cfg_parser->opt->region, (yyv sp[0].str)); cfg_parser->key->algorithm = region_strdup(cfg_parser->opt->region, (yyv sp[0].str));
} }
} }
#line 2482 "configparser.c" #line 2537 "configparser.c"
break; break;
case 111: case 111:
#line 667 "configparser.y" #line 667 "configparser.y"
{ {
uint8_t data[16384]; uint8_t data[16384];
int size; int size;
cfg_parser->key->secret = region_strdup(cfg_parser->opt->region, (yyvsp[0] .str)); cfg_parser->key->secret = region_strdup(cfg_parser->opt->region, (yyvsp[0] .str));
size = b64_pton((yyvsp[0].str), data, sizeof(data)); size = b64_pton((yyvsp[0].str), data, sizeof(data));
if(size == -1) { if(size == -1) {
yyerror("cannot base64 decode tsig secret %s", yyerror("cannot base64 decode tsig secret %s",
cfg_parser->key->name? cfg_parser->key->name?
cfg_parser->key->name:""); cfg_parser->key->name:"");
} else if(size != 0) { } else if(size != 0) {
memset(data, 0xdd, size); /* wipe secret */ memset(data, 0xdd, size); /* wipe secret */
} }
} }
#line 2501 "configparser.c" #line 2556 "configparser.c"
break; break;
case 112: case 112:
#line 685 "configparser.y" #line 685 "configparser.y"
{ {
assert(cfg_parser->pattern == NULL); assert(cfg_parser->pattern == NULL);
assert(cfg_parser->zone == NULL); assert(cfg_parser->zone == NULL);
cfg_parser->zone = zone_options_create(cfg_parser->opt->region); cfg_parser->zone = zone_options_create(cfg_parser->opt->region);
cfg_parser->zone->part_of_config = 1; cfg_parser->zone->part_of_config = 1;
cfg_parser->zone->pattern = cfg_parser->pattern = cfg_parser->zone->pattern = cfg_parser->pattern =
pattern_options_create(cfg_parser->opt->region); pattern_options_create(cfg_parser->opt->region);
cfg_parser->zone->pattern->implicit = 1; cfg_parser->zone->pattern->implicit = 1;
} }
#line 2515 "configparser.c" #line 2570 "configparser.c"
break; break;
case 113: case 113:
#line 695 "configparser.y" #line 695 "configparser.y"
{ {
assert(cfg_parser->zone != NULL); assert(cfg_parser->zone != NULL);
if(cfg_parser->zone->name == NULL) { if(cfg_parser->zone->name == NULL) {
yyerror("zone has no name"); yyerror("zone has no name");
} else if(!nsd_options_insert_zone(cfg_parser->opt, cfg_parser->zone)) { } else if(!nsd_options_insert_zone(cfg_parser->opt, cfg_parser->zone)) {
yyerror("duplicate zone %s", cfg_parser->zone->name); yyerror("duplicate zone %s", cfg_parser->zone->name);
} else if(!nsd_options_insert_pattern(cfg_parser->opt, cfg_parser->zone->p attern)) { } else if(!nsd_options_insert_pattern(cfg_parser->opt, cfg_parser->zone->p attern)) {
yyerror("duplicate pattern %s", cfg_parser->zone->pattern->pname); yyerror("duplicate pattern %s", cfg_parser->zone->pattern->pname);
} }
cfg_parser->pattern = NULL; cfg_parser->pattern = NULL;
cfg_parser->zone = NULL; cfg_parser->zone = NULL;
} }
#line 2532 "configparser.c" #line 2587 "configparser.c"
break; break;
case 116: case 116:
#line 713 "configparser.y" #line 713 "configparser.y"
{ {
const char *marker = PATTERN_IMPLICIT_MARKER; const char *marker = PATTERN_IMPLICIT_MARKER;
char *pname = region_alloc(cfg_parser->opt->region, strlen((yyvsp[0].str)) + strlen(marker) + 1); char *pname = region_alloc(cfg_parser->opt->region, strlen((yyvsp[0].str)) + strlen(marker) + 1);
memmove(pname, marker, strlen(marker)); memmove(pname, marker, strlen(marker));
memmove(pname + strlen(marker), (yyvsp[0].str), strlen((yyvsp[0].str)) + 1 ); memmove(pname + strlen(marker), (yyvsp[0].str), strlen((yyvsp[0].str)) + 1 );
cfg_parser->zone->pattern->pname = pname; cfg_parser->zone->pattern->pname = pname;
cfg_parser->zone->name = region_strdup(cfg_parser->opt->region, (yyvsp[0]. str)); cfg_parser->zone->name = region_strdup(cfg_parser->opt->region, (yyvsp[0]. str));
if(pattern_options_find(cfg_parser->opt, pname)) { if(pattern_options_find(cfg_parser->opt, pname)) {
yyerror("zone %s cannot be created because implicit pattern %s " yyerror("zone %s cannot be created because implicit pattern %s "
"already exists", (yyvsp[0].str), pname); "already exists", (yyvsp[0].str), pname);
} }
} }
#line 2549 "configparser.c" #line 2604 "configparser.c"
break; break;
case 118: case 118:
#line 729 "configparser.y" #line 729 "configparser.y"
{ {
assert(cfg_parser->pattern == NULL); assert(cfg_parser->pattern == NULL);
cfg_parser->pattern = pattern_options_create(cfg_parser->opt->region); cfg_parser->pattern = pattern_options_create(cfg_parser->opt->region);
} }
#line 2558 "configparser.c" #line 2613 "configparser.c"
break; break;
case 119: case 119:
#line 734 "configparser.y" #line 734 "configparser.y"
{ {
pattern_options_type *pattern = cfg_parser->pattern; pattern_options_type *pattern = cfg_parser->pattern;
if(pattern->pname == NULL) { if(pattern->pname == NULL) {
yyerror("pattern has no name"); yyerror("pattern has no name");
} else if(!nsd_options_insert_pattern(cfg_parser->opt, pattern)) { } else if(!nsd_options_insert_pattern(cfg_parser->opt, pattern)) {
yyerror("duplicate pattern %s", pattern->pname); yyerror("duplicate pattern %s", pattern->pname);
} }
cfg_parser->pattern = NULL; cfg_parser->pattern = NULL;
} }
#line 2572 "configparser.c" #line 2627 "configparser.c"
break; break;
case 122: case 122:
#line 749 "configparser.y" #line 749 "configparser.y"
{ {
if(strchr((yyvsp[0].str), ' ')) { if(strchr((yyvsp[0].str), ' ')) {
yyerror("space is not allowed in pattern name: '%s'", (yyvsp[0].str)); yyerror("space is not allowed in pattern name: '%s'", (yyvsp[0].str));
} }
cfg_parser->pattern->pname = region_strdup(cfg_parser->opt->region, (yyvsp [0].str)); cfg_parser->pattern->pname = region_strdup(cfg_parser->opt->region, (yyvsp [0].str));
} }
#line 2583 "configparser.c" #line 2638 "configparser.c"
break; break;
case 124: case 124:
#line 759 "configparser.y" #line 759 "configparser.y"
{ {
#ifdef RATELIMIT #ifdef RATELIMIT
cfg_parser->pattern->rrl_whitelist |= rrlstr2type((yyvsp[0].str)); cfg_parser->pattern->rrl_whitelist |= rrlstr2type((yyvsp[0].str));
#endif #endif
} }
#line 2593 "configparser.c" #line 2648 "configparser.c"
break; break;
case 125: case 125:
#line 765 "configparser.y" #line 765 "configparser.y"
{ cfg_parser->pattern->zonefile = region_strdup(cfg_parser->opt->region, (yy vsp[0].str)); } { cfg_parser->pattern->zonefile = region_strdup(cfg_parser->opt->region, (yy vsp[0].str)); }
#line 2599 "configparser.c" #line 2654 "configparser.c"
break; break;
case 126: case 126:
#line 767 "configparser.y" #line 767 "configparser.y"
{ cfg_parser->pattern->zonestats = region_strdup(cfg_parser->opt->region, (y yvsp[0].str)); } { cfg_parser->pattern->zonestats = region_strdup(cfg_parser->opt->region, (y yvsp[0].str)); }
#line 2605 "configparser.c" #line 2660 "configparser.c"
break; break;
case 127: case 127:
#line 769 "configparser.y" #line 769 "configparser.y"
{ {
if((yyvsp[0].llng) > 0) { if((yyvsp[0].llng) > 0) {
cfg_parser->pattern->size_limit_xfr = (int)(yyvsp[0].llng); cfg_parser->pattern->size_limit_xfr = (int)(yyvsp[0].llng);
} else { } else {
yyerror("expected a number greater than zero"); yyerror("expected a number greater than zero");
} }
} }
#line 2617 "configparser.c" #line 2672 "configparser.c"
break; break;
case 128: case 128:
#line 777 "configparser.y" #line 777 "configparser.y"
{ cfg_parser->pattern->multi_master_check = (int)(yyvsp[0].bln); } { cfg_parser->pattern->multi_master_check = (int)(yyvsp[0].bln); }
#line 2623 "configparser.c" #line 2678 "configparser.c"
break; break;
case 129: case 129:
#line 779 "configparser.y" #line 779 "configparser.y"
{ config_apply_pattern(cfg_parser->pattern, (yyvsp[0].str)); } { config_apply_pattern(cfg_parser->pattern, (yyvsp[0].str)); }
#line 2629 "configparser.c" #line 2684 "configparser.c"
break; break;
case 130: case 130:
#line 781 "configparser.y" #line 781 "configparser.y"
{ {
acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str)); acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str));
if(acl->blocked) if(acl->blocked)
yyerror("blocked address used for request-xfr"); yyerror("blocked address used for request-xfr");
if(acl->rangetype != acl_range_single) if(acl->rangetype != acl_range_single)
yyerror("address range used for request-xfr"); yyerror("address range used for request-xfr");
append_acl(&cfg_parser->pattern->request_xfr, acl); append_acl(&cfg_parser->pattern->request_xfr, acl);
} }
#line 2642 "configparser.c" #line 2697 "configparser.c"
break; break;
case 131: case 131:
#line 790 "configparser.y" #line 790 "configparser.y"
{ {
acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str)); acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str));
acl->use_axfr_only = 1; acl->use_axfr_only = 1;
if(acl->blocked) if(acl->blocked)
yyerror("blocked address used for request-xfr"); yyerror("blocked address used for request-xfr");
if(acl->rangetype != acl_range_single) if(acl->rangetype != acl_range_single)
yyerror("address range used for request-xfr"); yyerror("address range used for request-xfr");
append_acl(&cfg_parser->pattern->request_xfr, acl); append_acl(&cfg_parser->pattern->request_xfr, acl);
} }
#line 2656 "configparser.c" #line 2711 "configparser.c"
break; break;
case 132: case 132:
#line 800 "configparser.y" #line 800 "configparser.y"
{ {
acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str)); acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str));
acl->allow_udp = 1; acl->allow_udp = 1;
if(acl->blocked) if(acl->blocked)
yyerror("blocked address used for request-xfr"); yyerror("blocked address used for request-xfr");
if(acl->rangetype != acl_range_single) if(acl->rangetype != acl_range_single)
yyerror("address range used for request-xfr"); yyerror("address range used for request-xfr");
append_acl(&cfg_parser->pattern->request_xfr, acl); append_acl(&cfg_parser->pattern->request_xfr, acl);
} }
#line 2670 "configparser.c" #line 2725 "configparser.c"
break; break;
case 133: case 133:
#line 810 "configparser.y" #line 810 "configparser.y"
{ {
acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str)); acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str));
append_acl(&cfg_parser->pattern->allow_notify, acl); append_acl(&cfg_parser->pattern->allow_notify, acl);
} }
#line 2679 "configparser.c" #line 2734 "configparser.c"
break; break;
case 134: case 134:
#line 815 "configparser.y" #line 815 "configparser.y"
{ {
acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str)); acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str));
if(acl->blocked) if(acl->blocked)
yyerror("blocked address used for notify"); yyerror("blocked address used for notify");
if(acl->rangetype != acl_range_single) if(acl->rangetype != acl_range_single)
yyerror("address range used for notify"); yyerror("address range used for notify");
append_acl(&cfg_parser->pattern->notify, acl); append_acl(&cfg_parser->pattern->notify, acl);
} }
#line 2692 "configparser.c" #line 2747 "configparser.c"
break; break;
case 135: case 135:
#line 824 "configparser.y" #line 824 "configparser.y"
{ {
acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str)); acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1] .str), (yyvsp[0].str));
append_acl(&cfg_parser->pattern->provide_xfr, acl); append_acl(&cfg_parser->pattern->provide_xfr, acl);
} }
#line 2701 "configparser.c" #line 2756 "configparser.c"
break; break;
case 136: case 136:
#line 829 "configparser.y" #line 829 "configparser.y"
{ {
acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[0]. acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[-1]
str), "NOKEY"); .str), (yyvsp[0].str));
append_acl(&cfg_parser->pattern->outgoing_interface, acl); append_acl(&cfg_parser->pattern->allow_query, acl);
} }
#line 2710 "configparser.c" #line 2765 "configparser.c"
break; break;
case 137: case 137:
#line 834 "configparser.y" #line 834 "configparser.y"
{ {
cfg_parser->pattern->allow_axfr_fallback = (yyvsp[0].bln); acl_options_type *acl = parse_acl_info(cfg_parser->opt->region, (yyvsp[0].
cfg_parser->pattern->allow_axfr_fallback_is_default = 0; str), "NOKEY");
append_acl(&cfg_parser->pattern->outgoing_interface, acl);
} }
#line 2719 "configparser.c" #line 2774 "configparser.c"
break; break;
case 138: case 138:
#line 839 "configparser.y" #line 839 "configparser.y"
{ {
cfg_parser->pattern->notify_retry = (yyvsp[0].llng); cfg_parser->pattern->allow_axfr_fallback = (yyvsp[0].bln);
cfg_parser->pattern->notify_retry_is_default = 0; cfg_parser->pattern->allow_axfr_fallback_is_default = 0;
} }
#line 2728 "configparser.c" #line 2783 "configparser.c"
break; break;
case 139: case 139:
#line 844 "configparser.y" #line 844 "configparser.y"
{ {
cfg_parser->pattern->max_refresh_time = (yyvsp[0].llng); cfg_parser->pattern->notify_retry = (yyvsp[0].llng);
cfg_parser->pattern->max_refresh_time_is_default = 0; cfg_parser->pattern->notify_retry_is_default = 0;
} }
#line 2737 "configparser.c" #line 2792 "configparser.c"
break; break;
case 140: case 140:
#line 849 "configparser.y" #line 849 "configparser.y"
{ {
cfg_parser->pattern->min_refresh_time = (yyvsp[0].llng); cfg_parser->pattern->max_refresh_time = (yyvsp[0].llng);
cfg_parser->pattern->min_refresh_time_is_default = 0; cfg_parser->pattern->max_refresh_time_is_default = 0;
} }
#line 2746 "configparser.c" #line 2801 "configparser.c"
break; break;
case 141: case 141:
#line 854 "configparser.y" #line 854 "configparser.y"
{ {
cfg_parser->pattern->max_retry_time = (yyvsp[0].llng); cfg_parser->pattern->min_refresh_time = (yyvsp[0].llng);
cfg_parser->pattern->max_retry_time_is_default = 0; cfg_parser->pattern->min_refresh_time_is_default = 0;
} }
#line 2755 "configparser.c" #line 2810 "configparser.c"
break; break;
case 142: case 142:
#line 859 "configparser.y" #line 859 "configparser.y"
{ {
cfg_parser->pattern->min_retry_time = (yyvsp[0].llng); cfg_parser->pattern->max_retry_time = (yyvsp[0].llng);
cfg_parser->pattern->min_retry_time_is_default = 0; cfg_parser->pattern->max_retry_time_is_default = 0;
} }
#line 2764 "configparser.c" #line 2819 "configparser.c"
break; break;
case 143: case 143:
#line 864 "configparser.y" #line 864 "configparser.y"
{ {
cfg_parser->pattern->min_retry_time = (yyvsp[0].llng);
cfg_parser->pattern->min_retry_time_is_default = 0;
}
#line 2828 "configparser.c"
break;
case 144:
#line 869 "configparser.y"
{
long long num; long long num;
uint8_t expr; uint8_t expr;
if (!parse_expire_expr((yyvsp[0].str), &num, &expr)) { if (!parse_expire_expr((yyvsp[0].str), &num, &expr)) {
yyerror("expected an expire time in seconds or \"refresh+retry+1\""); yyerror("expected an expire time in seconds or \"refresh+retry+1\"");
YYABORT; /* trigger a parser error */ YYABORT; /* trigger a parser error */
} }
cfg_parser->pattern->min_expire_time = num; cfg_parser->pattern->min_expire_time = num;
cfg_parser->pattern->min_expire_time_expr = expr; cfg_parser->pattern->min_expire_time_expr = expr;
} }
#line 2780 "configparser.c" #line 2844 "configparser.c"
break; break;
case 144: case 145:
#line 878 "configparser.y" #line 883 "configparser.y"
{ {
struct ip_address_option *ip = region_alloc_zero( struct ip_address_option *ip = region_alloc_zero(
cfg_parser->opt->region, sizeof(*ip)); cfg_parser->opt->region, sizeof(*ip));
ip->address = region_strdup(cfg_parser->opt->region, (yyvsp[0].str)); ip->address = region_strdup(cfg_parser->opt->region, (yyvsp[0].str));
ip->fib = -1; ip->fib = -1;
(yyval.ip) = ip; (yyval.ip) = ip;
} }
#line 2792 "configparser.c" #line 2856 "configparser.c"
break; break;
case 145: case 146:
#line 888 "configparser.y" #line 893 "configparser.y"
{ {
if(!parse_number((yyvsp[0].str), &(yyval.llng))) { if(!parse_number((yyvsp[0].str), &(yyval.llng))) {
yyerror("expected a number"); yyerror("expected a number");
YYABORT; /* trigger a parser error */ YYABORT; /* trigger a parser error */
} }
} }
#line 2803 "configparser.c" #line 2867 "configparser.c"
break; break;
case 146: case 147:
#line 897 "configparser.y" #line 902 "configparser.y"
{ {
if(!parse_boolean((yyvsp[0].str), &(yyval.bln))) { if(!parse_boolean((yyvsp[0].str), &(yyval.bln))) {
yyerror("expected yes or no"); yyerror("expected yes or no");
YYABORT; /* trigger a parser error */ YYABORT; /* trigger a parser error */
} }
} }
#line 2814 "configparser.c" #line 2878 "configparser.c"
break; break;
#line 2818 "configparser.c" #line 2882 "configparser.c"
default: break; default: break;
} }
/* User semantic actions sometimes alter yychar, and that requires /* User semantic actions sometimes alter yychar, and that requires
that yytoken be updated with the new translation. We take the that yytoken be updated with the new translation. We take the
approach of translating immediately before every use of yytoken. approach of translating immediately before every use of yytoken.
One alternative is translating here after every semantic action, One alternative is translating here after every semantic action,
but that translation would be missed if the semantic action invokes but that translation would be missed if the semantic action invokes
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
incorrect destructor might then be invoked immediately. In the incorrect destructor might then be invoked immediately. In the
case of YYERROR or YYBACKUP, subsequent parser actions might lead case of YYERROR or YYBACKUP, subsequent parser actions might lead
to an incorrect destructor call or verbose syntax error message to an incorrect destructor call or verbose syntax error message
before the lookahead is translated. */ before the lookahead is translated. */
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyl oc);
YYPOPSTACK (yylen); YYPOPSTACK (yylen);
yylen = 0; yylen = 0;
YY_STACK_PRINT (yyss, yyssp);
*++yyvsp = yyval; *++yyvsp = yyval;
/* Now 'shift' the result of the reduction. Determine what state /* Now 'shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule that goes to, based on the state we popped back to and the rule
number reduced by. */ number reduced by. */
{ {
const int yylhs = yyr1[yyn] - YYNTOKENS; const int yylhs = yyr1[yyn] - YYNTOKENS;
const int yyi = yypgoto[yylhs] + *yyssp; const int yyi = yypgoto[yylhs] + *yyssp;
yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
skipping to change at line 2830 skipping to change at line 2886
} }
goto yynewstate; goto yynewstate;
/*--------------------------------------. /*--------------------------------------.
| yyerrlab -- here on detecting error. | | yyerrlab -- here on detecting error. |
`--------------------------------------*/ `--------------------------------------*/
yyerrlab: yyerrlab:
/* Make sure we have latest lookahead translation. See comments at /* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */ user semantic actions for why this is necessary. */
yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
/* If not already recovering from an error, report this error. */ /* If not already recovering from an error, report this error. */
if (!yyerrstatus) if (!yyerrstatus)
{ {
++yynerrs; ++yynerrs;
#if ! YYERROR_VERBOSE
yyerror (YY_("syntax error")); yyerror (YY_("syntax error"));
#else
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
yyssp, yytoken)
{
char const *yymsgp = YY_("syntax error");
int yysyntax_error_status;
yysyntax_error_status = YYSYNTAX_ERROR;
if (yysyntax_error_status == 0)
yymsgp = yymsg;
else if (yysyntax_error_status == 1)
{
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
if (!yymsg)
{
yymsg = yymsgbuf;
yymsg_alloc = sizeof yymsgbuf;
yysyntax_error_status = 2;
}
else
{
yysyntax_error_status = YYSYNTAX_ERROR;
yymsgp = yymsg;
}
}
yyerror (yymsgp);
if (yysyntax_error_status == 2)
goto yyexhaustedlab;
}
# undef YYSYNTAX_ERROR
#endif
} }
if (yyerrstatus == 3) if (yyerrstatus == 3)
{ {
/* If just tried and failed to reuse lookahead token after an /* If just tried and failed to reuse lookahead token after an
error, discard it. */ error, discard it. */
if (yychar <= YYEOF) if (yychar <= YYEOF)
{ {
/* Return failure if at end of input. */ /* Return failure if at end of input. */
skipping to change at line 2918 skipping to change at line 2940
YY_STACK_PRINT (yyss, yyssp); YY_STACK_PRINT (yyss, yyssp);
yystate = *yyssp; yystate = *yyssp;
goto yyerrlab1; goto yyerrlab1;
/*-------------------------------------------------------------. /*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. | | yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/ `-------------------------------------------------------------*/
yyerrlab1: yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */ yyerrstatus = 3; /* Each real token shifted decrements this. */
/* Pop stack until we find a state that shifts the error token. */
for (;;) for (;;)
{ {
yyn = yypact[yystate]; yyn = yypact[yystate];
if (!yypact_value_is_default (yyn)) if (!yypact_value_is_default (yyn))
{ {
yyn += YYTERROR; yyn += YYSYMBOL_YYerror;
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
{ {
yyn = yytable[yyn]; yyn = yytable[yyn];
if (0 < yyn) if (0 < yyn)
break; break;
} }
} }
/* Pop the current state because it cannot handle the error token. */ /* Pop the current state because it cannot handle the error token. */
if (yyssp == yyss) if (yyssp == yyss)
YYABORT; YYABORT;
yydestruct ("Error: popping", yydestruct ("Error: popping",
yystos[yystate], yyvsp); YY_ACCESSING_SYMBOL (yystate), yyvsp);
YYPOPSTACK (1); YYPOPSTACK (1);
yystate = *yyssp; yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp); YY_STACK_PRINT (yyss, yyssp);
} }
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval; *++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END YY_IGNORE_MAYBE_UNINITIALIZED_END
/* Shift the error token. */ /* Shift the error token. */
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
yystate = yyn; yystate = yyn;
goto yynewstate; goto yynewstate;
/*-------------------------------------. /*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. | | yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/ `-------------------------------------*/
yyacceptlab: yyacceptlab:
yyresult = 0; yyresult = 0;
goto yyreturn; goto yyreturn;
/*-----------------------------------. /*-----------------------------------.
| yyabortlab -- YYABORT comes here. | | yyabortlab -- YYABORT comes here. |
`-----------------------------------*/ `-----------------------------------*/
yyabortlab: yyabortlab:
yyresult = 1; yyresult = 1;
goto yyreturn; goto yyreturn;
#if !defined yyoverflow || YYERROR_VERBOSE #if !defined yyoverflow
/*-------------------------------------------------. /*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. | | yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/ `-------------------------------------------------*/
yyexhaustedlab: yyexhaustedlab:
yyerror (YY_("memory exhausted")); yyerror (YY_("memory exhausted"));
yyresult = 2; yyresult = 2;
/* Fall through. */ /* Fall through. */
#endif #endif
/*-----------------------------------------------------. /*-----------------------------------------------------.
skipping to change at line 2996 skipping to change at line 3019
yydestruct ("Cleanup: discarding lookahead", yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval); yytoken, &yylval);
} }
/* Do not reclaim the symbols of the rule whose action triggered /* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */ this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen); YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp); YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss) while (yyssp != yyss)
{ {
yydestruct ("Cleanup: popping", yydestruct ("Cleanup: popping",
yystos[*yyssp], yyvsp); YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
YYPOPSTACK (1); YYPOPSTACK (1);
} }
#ifndef yyoverflow #ifndef yyoverflow
if (yyss != yyssa) if (yyss != yyssa)
YYSTACK_FREE (yyss); YYSTACK_FREE (yyss);
#endif #endif
#if YYERROR_VERBOSE
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
return yyresult; return yyresult;
} }
#line 904 "configparser.y"
#line 909 "configparser.y"
static void static void
append_acl(struct acl_options **list, struct acl_options *acl) append_acl(struct acl_options **list, struct acl_options *acl)
{ {
assert(list != NULL); assert(list != NULL);
if(*list == NULL) { if(*list == NULL) {
*list = acl; *list = acl;
} else { } else {
struct acl_options *tail = *list; struct acl_options *tail = *list;
 End of changes. 290 change blocks. 
830 lines changed or deleted 855 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)