xref: /freebsd/contrib/unbound/util/configparser.h (revision ce3adf4362fcca6a43e500b2531f0038adbfbd21)
1 /* A Bison parser, made by GNU Bison 2.6.1.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5       Copyright (C) 1984, 1989-1990, 2000-2012 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_UTIL_CONFIGPARSER_H
34 # define YY_UTIL_CONFIGPARSER_H
35 /* Enabling traces.  */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
38 #endif
39 #if YYDEBUG
40 extern int yydebug;
41 #endif
42 
43 /* Tokens.  */
44 #ifndef YYTOKENTYPE
45 # define YYTOKENTYPE
46    /* Put the tokens into the symbol table, so that GDB and other debuggers
47       know about them.  */
48    enum yytokentype {
49      SPACE = 258,
50      LETTER = 259,
51      NEWLINE = 260,
52      COMMENT = 261,
53      COLON = 262,
54      ANY = 263,
55      ZONESTR = 264,
56      STRING_ARG = 265,
57      VAR_SERVER = 266,
58      VAR_VERBOSITY = 267,
59      VAR_NUM_THREADS = 268,
60      VAR_PORT = 269,
61      VAR_OUTGOING_RANGE = 270,
62      VAR_INTERFACE = 271,
63      VAR_DO_IP4 = 272,
64      VAR_DO_IP6 = 273,
65      VAR_DO_UDP = 274,
66      VAR_DO_TCP = 275,
67      VAR_CHROOT = 276,
68      VAR_USERNAME = 277,
69      VAR_DIRECTORY = 278,
70      VAR_LOGFILE = 279,
71      VAR_PIDFILE = 280,
72      VAR_MSG_CACHE_SIZE = 281,
73      VAR_MSG_CACHE_SLABS = 282,
74      VAR_NUM_QUERIES_PER_THREAD = 283,
75      VAR_RRSET_CACHE_SIZE = 284,
76      VAR_RRSET_CACHE_SLABS = 285,
77      VAR_OUTGOING_NUM_TCP = 286,
78      VAR_INFRA_HOST_TTL = 287,
79      VAR_INFRA_LAME_TTL = 288,
80      VAR_INFRA_CACHE_SLABS = 289,
81      VAR_INFRA_CACHE_NUMHOSTS = 290,
82      VAR_INFRA_CACHE_LAME_SIZE = 291,
83      VAR_NAME = 292,
84      VAR_STUB_ZONE = 293,
85      VAR_STUB_HOST = 294,
86      VAR_STUB_ADDR = 295,
87      VAR_TARGET_FETCH_POLICY = 296,
88      VAR_HARDEN_SHORT_BUFSIZE = 297,
89      VAR_HARDEN_LARGE_QUERIES = 298,
90      VAR_FORWARD_ZONE = 299,
91      VAR_FORWARD_HOST = 300,
92      VAR_FORWARD_ADDR = 301,
93      VAR_DO_NOT_QUERY_ADDRESS = 302,
94      VAR_HIDE_IDENTITY = 303,
95      VAR_HIDE_VERSION = 304,
96      VAR_IDENTITY = 305,
97      VAR_VERSION = 306,
98      VAR_HARDEN_GLUE = 307,
99      VAR_MODULE_CONF = 308,
100      VAR_TRUST_ANCHOR_FILE = 309,
101      VAR_TRUST_ANCHOR = 310,
102      VAR_VAL_OVERRIDE_DATE = 311,
103      VAR_BOGUS_TTL = 312,
104      VAR_VAL_CLEAN_ADDITIONAL = 313,
105      VAR_VAL_PERMISSIVE_MODE = 314,
106      VAR_INCOMING_NUM_TCP = 315,
107      VAR_MSG_BUFFER_SIZE = 316,
108      VAR_KEY_CACHE_SIZE = 317,
109      VAR_KEY_CACHE_SLABS = 318,
110      VAR_TRUSTED_KEYS_FILE = 319,
111      VAR_VAL_NSEC3_KEYSIZE_ITERATIONS = 320,
112      VAR_USE_SYSLOG = 321,
113      VAR_OUTGOING_INTERFACE = 322,
114      VAR_ROOT_HINTS = 323,
115      VAR_DO_NOT_QUERY_LOCALHOST = 324,
116      VAR_CACHE_MAX_TTL = 325,
117      VAR_HARDEN_DNSSEC_STRIPPED = 326,
118      VAR_ACCESS_CONTROL = 327,
119      VAR_LOCAL_ZONE = 328,
120      VAR_LOCAL_DATA = 329,
121      VAR_INTERFACE_AUTOMATIC = 330,
122      VAR_STATISTICS_INTERVAL = 331,
123      VAR_DO_DAEMONIZE = 332,
124      VAR_USE_CAPS_FOR_ID = 333,
125      VAR_STATISTICS_CUMULATIVE = 334,
126      VAR_OUTGOING_PORT_PERMIT = 335,
127      VAR_OUTGOING_PORT_AVOID = 336,
128      VAR_DLV_ANCHOR_FILE = 337,
129      VAR_DLV_ANCHOR = 338,
130      VAR_NEG_CACHE_SIZE = 339,
131      VAR_HARDEN_REFERRAL_PATH = 340,
132      VAR_PRIVATE_ADDRESS = 341,
133      VAR_PRIVATE_DOMAIN = 342,
134      VAR_REMOTE_CONTROL = 343,
135      VAR_CONTROL_ENABLE = 344,
136      VAR_CONTROL_INTERFACE = 345,
137      VAR_CONTROL_PORT = 346,
138      VAR_SERVER_KEY_FILE = 347,
139      VAR_SERVER_CERT_FILE = 348,
140      VAR_CONTROL_KEY_FILE = 349,
141      VAR_CONTROL_CERT_FILE = 350,
142      VAR_EXTENDED_STATISTICS = 351,
143      VAR_LOCAL_DATA_PTR = 352,
144      VAR_JOSTLE_TIMEOUT = 353,
145      VAR_STUB_PRIME = 354,
146      VAR_UNWANTED_REPLY_THRESHOLD = 355,
147      VAR_LOG_TIME_ASCII = 356,
148      VAR_DOMAIN_INSECURE = 357,
149      VAR_PYTHON = 358,
150      VAR_PYTHON_SCRIPT = 359,
151      VAR_VAL_SIG_SKEW_MIN = 360,
152      VAR_VAL_SIG_SKEW_MAX = 361,
153      VAR_CACHE_MIN_TTL = 362,
154      VAR_VAL_LOG_LEVEL = 363,
155      VAR_AUTO_TRUST_ANCHOR_FILE = 364,
156      VAR_KEEP_MISSING = 365,
157      VAR_ADD_HOLDDOWN = 366,
158      VAR_DEL_HOLDDOWN = 367,
159      VAR_SO_RCVBUF = 368,
160      VAR_EDNS_BUFFER_SIZE = 369,
161      VAR_PREFETCH = 370,
162      VAR_PREFETCH_KEY = 371,
163      VAR_SO_SNDBUF = 372,
164      VAR_HARDEN_BELOW_NXDOMAIN = 373,
165      VAR_IGNORE_CD_FLAG = 374,
166      VAR_LOG_QUERIES = 375,
167      VAR_TCP_UPSTREAM = 376,
168      VAR_SSL_UPSTREAM = 377,
169      VAR_SSL_SERVICE_KEY = 378,
170      VAR_SSL_SERVICE_PEM = 379,
171      VAR_SSL_PORT = 380,
172      VAR_FORWARD_FIRST = 381,
173      VAR_STUB_FIRST = 382,
174      VAR_MINIMAL_RESPONSES = 383,
175      VAR_RRSET_ROUNDROBIN = 384
176    };
177 #endif
178 /* Tokens.  */
179 #define SPACE 258
180 #define LETTER 259
181 #define NEWLINE 260
182 #define COMMENT 261
183 #define COLON 262
184 #define ANY 263
185 #define ZONESTR 264
186 #define STRING_ARG 265
187 #define VAR_SERVER 266
188 #define VAR_VERBOSITY 267
189 #define VAR_NUM_THREADS 268
190 #define VAR_PORT 269
191 #define VAR_OUTGOING_RANGE 270
192 #define VAR_INTERFACE 271
193 #define VAR_DO_IP4 272
194 #define VAR_DO_IP6 273
195 #define VAR_DO_UDP 274
196 #define VAR_DO_TCP 275
197 #define VAR_CHROOT 276
198 #define VAR_USERNAME 277
199 #define VAR_DIRECTORY 278
200 #define VAR_LOGFILE 279
201 #define VAR_PIDFILE 280
202 #define VAR_MSG_CACHE_SIZE 281
203 #define VAR_MSG_CACHE_SLABS 282
204 #define VAR_NUM_QUERIES_PER_THREAD 283
205 #define VAR_RRSET_CACHE_SIZE 284
206 #define VAR_RRSET_CACHE_SLABS 285
207 #define VAR_OUTGOING_NUM_TCP 286
208 #define VAR_INFRA_HOST_TTL 287
209 #define VAR_INFRA_LAME_TTL 288
210 #define VAR_INFRA_CACHE_SLABS 289
211 #define VAR_INFRA_CACHE_NUMHOSTS 290
212 #define VAR_INFRA_CACHE_LAME_SIZE 291
213 #define VAR_NAME 292
214 #define VAR_STUB_ZONE 293
215 #define VAR_STUB_HOST 294
216 #define VAR_STUB_ADDR 295
217 #define VAR_TARGET_FETCH_POLICY 296
218 #define VAR_HARDEN_SHORT_BUFSIZE 297
219 #define VAR_HARDEN_LARGE_QUERIES 298
220 #define VAR_FORWARD_ZONE 299
221 #define VAR_FORWARD_HOST 300
222 #define VAR_FORWARD_ADDR 301
223 #define VAR_DO_NOT_QUERY_ADDRESS 302
224 #define VAR_HIDE_IDENTITY 303
225 #define VAR_HIDE_VERSION 304
226 #define VAR_IDENTITY 305
227 #define VAR_VERSION 306
228 #define VAR_HARDEN_GLUE 307
229 #define VAR_MODULE_CONF 308
230 #define VAR_TRUST_ANCHOR_FILE 309
231 #define VAR_TRUST_ANCHOR 310
232 #define VAR_VAL_OVERRIDE_DATE 311
233 #define VAR_BOGUS_TTL 312
234 #define VAR_VAL_CLEAN_ADDITIONAL 313
235 #define VAR_VAL_PERMISSIVE_MODE 314
236 #define VAR_INCOMING_NUM_TCP 315
237 #define VAR_MSG_BUFFER_SIZE 316
238 #define VAR_KEY_CACHE_SIZE 317
239 #define VAR_KEY_CACHE_SLABS 318
240 #define VAR_TRUSTED_KEYS_FILE 319
241 #define VAR_VAL_NSEC3_KEYSIZE_ITERATIONS 320
242 #define VAR_USE_SYSLOG 321
243 #define VAR_OUTGOING_INTERFACE 322
244 #define VAR_ROOT_HINTS 323
245 #define VAR_DO_NOT_QUERY_LOCALHOST 324
246 #define VAR_CACHE_MAX_TTL 325
247 #define VAR_HARDEN_DNSSEC_STRIPPED 326
248 #define VAR_ACCESS_CONTROL 327
249 #define VAR_LOCAL_ZONE 328
250 #define VAR_LOCAL_DATA 329
251 #define VAR_INTERFACE_AUTOMATIC 330
252 #define VAR_STATISTICS_INTERVAL 331
253 #define VAR_DO_DAEMONIZE 332
254 #define VAR_USE_CAPS_FOR_ID 333
255 #define VAR_STATISTICS_CUMULATIVE 334
256 #define VAR_OUTGOING_PORT_PERMIT 335
257 #define VAR_OUTGOING_PORT_AVOID 336
258 #define VAR_DLV_ANCHOR_FILE 337
259 #define VAR_DLV_ANCHOR 338
260 #define VAR_NEG_CACHE_SIZE 339
261 #define VAR_HARDEN_REFERRAL_PATH 340
262 #define VAR_PRIVATE_ADDRESS 341
263 #define VAR_PRIVATE_DOMAIN 342
264 #define VAR_REMOTE_CONTROL 343
265 #define VAR_CONTROL_ENABLE 344
266 #define VAR_CONTROL_INTERFACE 345
267 #define VAR_CONTROL_PORT 346
268 #define VAR_SERVER_KEY_FILE 347
269 #define VAR_SERVER_CERT_FILE 348
270 #define VAR_CONTROL_KEY_FILE 349
271 #define VAR_CONTROL_CERT_FILE 350
272 #define VAR_EXTENDED_STATISTICS 351
273 #define VAR_LOCAL_DATA_PTR 352
274 #define VAR_JOSTLE_TIMEOUT 353
275 #define VAR_STUB_PRIME 354
276 #define VAR_UNWANTED_REPLY_THRESHOLD 355
277 #define VAR_LOG_TIME_ASCII 356
278 #define VAR_DOMAIN_INSECURE 357
279 #define VAR_PYTHON 358
280 #define VAR_PYTHON_SCRIPT 359
281 #define VAR_VAL_SIG_SKEW_MIN 360
282 #define VAR_VAL_SIG_SKEW_MAX 361
283 #define VAR_CACHE_MIN_TTL 362
284 #define VAR_VAL_LOG_LEVEL 363
285 #define VAR_AUTO_TRUST_ANCHOR_FILE 364
286 #define VAR_KEEP_MISSING 365
287 #define VAR_ADD_HOLDDOWN 366
288 #define VAR_DEL_HOLDDOWN 367
289 #define VAR_SO_RCVBUF 368
290 #define VAR_EDNS_BUFFER_SIZE 369
291 #define VAR_PREFETCH 370
292 #define VAR_PREFETCH_KEY 371
293 #define VAR_SO_SNDBUF 372
294 #define VAR_HARDEN_BELOW_NXDOMAIN 373
295 #define VAR_IGNORE_CD_FLAG 374
296 #define VAR_LOG_QUERIES 375
297 #define VAR_TCP_UPSTREAM 376
298 #define VAR_SSL_UPSTREAM 377
299 #define VAR_SSL_SERVICE_KEY 378
300 #define VAR_SSL_SERVICE_PEM 379
301 #define VAR_SSL_PORT 380
302 #define VAR_FORWARD_FIRST 381
303 #define VAR_STUB_FIRST 382
304 #define VAR_MINIMAL_RESPONSES 383
305 #define VAR_RRSET_ROUNDROBIN 384
306 
307 
308 
309 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
310 typedef union YYSTYPE
311 {
312 /* Line 2049 of yacc.c  */
313 #line 64 "util/configparser.y"
314 
315 	char*	str;
316 
317 
318 /* Line 2049 of yacc.c  */
319 #line 320 "util/configparser.h"
320 } YYSTYPE;
321 # define YYSTYPE_IS_TRIVIAL 1
322 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
323 # define YYSTYPE_IS_DECLARED 1
324 #endif
325 
326 extern YYSTYPE yylval;
327 
328 #ifdef YYPARSE_PARAM
329 #if defined __STDC__ || defined __cplusplus
330 int yyparse (void *YYPARSE_PARAM);
331 #else
332 int yyparse ();
333 #endif
334 #else /* ! YYPARSE_PARAM */
335 #if defined __STDC__ || defined __cplusplus
336 int yyparse (void);
337 #else
338 int yyparse ();
339 #endif
340 #endif /* ! YYPARSE_PARAM */
341 
342 #endif /* !YY_UTIL_CONFIGPARSER_H  */
343