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