]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - util/configparser.h
import unbound 1.4.21
[FreeBSD/FreeBSD.git] / util / configparser.h
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      VAR_MAX_UDP_SIZE = 385
177    };
178 #endif
179 /* Tokens.  */
180 #define SPACE 258
181 #define LETTER 259
182 #define NEWLINE 260
183 #define COMMENT 261
184 #define COLON 262
185 #define ANY 263
186 #define ZONESTR 264
187 #define STRING_ARG 265
188 #define VAR_SERVER 266
189 #define VAR_VERBOSITY 267
190 #define VAR_NUM_THREADS 268
191 #define VAR_PORT 269
192 #define VAR_OUTGOING_RANGE 270
193 #define VAR_INTERFACE 271
194 #define VAR_DO_IP4 272
195 #define VAR_DO_IP6 273
196 #define VAR_DO_UDP 274
197 #define VAR_DO_TCP 275
198 #define VAR_CHROOT 276
199 #define VAR_USERNAME 277
200 #define VAR_DIRECTORY 278
201 #define VAR_LOGFILE 279
202 #define VAR_PIDFILE 280
203 #define VAR_MSG_CACHE_SIZE 281
204 #define VAR_MSG_CACHE_SLABS 282
205 #define VAR_NUM_QUERIES_PER_THREAD 283
206 #define VAR_RRSET_CACHE_SIZE 284
207 #define VAR_RRSET_CACHE_SLABS 285
208 #define VAR_OUTGOING_NUM_TCP 286
209 #define VAR_INFRA_HOST_TTL 287
210 #define VAR_INFRA_LAME_TTL 288
211 #define VAR_INFRA_CACHE_SLABS 289
212 #define VAR_INFRA_CACHE_NUMHOSTS 290
213 #define VAR_INFRA_CACHE_LAME_SIZE 291
214 #define VAR_NAME 292
215 #define VAR_STUB_ZONE 293
216 #define VAR_STUB_HOST 294
217 #define VAR_STUB_ADDR 295
218 #define VAR_TARGET_FETCH_POLICY 296
219 #define VAR_HARDEN_SHORT_BUFSIZE 297
220 #define VAR_HARDEN_LARGE_QUERIES 298
221 #define VAR_FORWARD_ZONE 299
222 #define VAR_FORWARD_HOST 300
223 #define VAR_FORWARD_ADDR 301
224 #define VAR_DO_NOT_QUERY_ADDRESS 302
225 #define VAR_HIDE_IDENTITY 303
226 #define VAR_HIDE_VERSION 304
227 #define VAR_IDENTITY 305
228 #define VAR_VERSION 306
229 #define VAR_HARDEN_GLUE 307
230 #define VAR_MODULE_CONF 308
231 #define VAR_TRUST_ANCHOR_FILE 309
232 #define VAR_TRUST_ANCHOR 310
233 #define VAR_VAL_OVERRIDE_DATE 311
234 #define VAR_BOGUS_TTL 312
235 #define VAR_VAL_CLEAN_ADDITIONAL 313
236 #define VAR_VAL_PERMISSIVE_MODE 314
237 #define VAR_INCOMING_NUM_TCP 315
238 #define VAR_MSG_BUFFER_SIZE 316
239 #define VAR_KEY_CACHE_SIZE 317
240 #define VAR_KEY_CACHE_SLABS 318
241 #define VAR_TRUSTED_KEYS_FILE 319
242 #define VAR_VAL_NSEC3_KEYSIZE_ITERATIONS 320
243 #define VAR_USE_SYSLOG 321
244 #define VAR_OUTGOING_INTERFACE 322
245 #define VAR_ROOT_HINTS 323
246 #define VAR_DO_NOT_QUERY_LOCALHOST 324
247 #define VAR_CACHE_MAX_TTL 325
248 #define VAR_HARDEN_DNSSEC_STRIPPED 326
249 #define VAR_ACCESS_CONTROL 327
250 #define VAR_LOCAL_ZONE 328
251 #define VAR_LOCAL_DATA 329
252 #define VAR_INTERFACE_AUTOMATIC 330
253 #define VAR_STATISTICS_INTERVAL 331
254 #define VAR_DO_DAEMONIZE 332
255 #define VAR_USE_CAPS_FOR_ID 333
256 #define VAR_STATISTICS_CUMULATIVE 334
257 #define VAR_OUTGOING_PORT_PERMIT 335
258 #define VAR_OUTGOING_PORT_AVOID 336
259 #define VAR_DLV_ANCHOR_FILE 337
260 #define VAR_DLV_ANCHOR 338
261 #define VAR_NEG_CACHE_SIZE 339
262 #define VAR_HARDEN_REFERRAL_PATH 340
263 #define VAR_PRIVATE_ADDRESS 341
264 #define VAR_PRIVATE_DOMAIN 342
265 #define VAR_REMOTE_CONTROL 343
266 #define VAR_CONTROL_ENABLE 344
267 #define VAR_CONTROL_INTERFACE 345
268 #define VAR_CONTROL_PORT 346
269 #define VAR_SERVER_KEY_FILE 347
270 #define VAR_SERVER_CERT_FILE 348
271 #define VAR_CONTROL_KEY_FILE 349
272 #define VAR_CONTROL_CERT_FILE 350
273 #define VAR_EXTENDED_STATISTICS 351
274 #define VAR_LOCAL_DATA_PTR 352
275 #define VAR_JOSTLE_TIMEOUT 353
276 #define VAR_STUB_PRIME 354
277 #define VAR_UNWANTED_REPLY_THRESHOLD 355
278 #define VAR_LOG_TIME_ASCII 356
279 #define VAR_DOMAIN_INSECURE 357
280 #define VAR_PYTHON 358
281 #define VAR_PYTHON_SCRIPT 359
282 #define VAR_VAL_SIG_SKEW_MIN 360
283 #define VAR_VAL_SIG_SKEW_MAX 361
284 #define VAR_CACHE_MIN_TTL 362
285 #define VAR_VAL_LOG_LEVEL 363
286 #define VAR_AUTO_TRUST_ANCHOR_FILE 364
287 #define VAR_KEEP_MISSING 365
288 #define VAR_ADD_HOLDDOWN 366
289 #define VAR_DEL_HOLDDOWN 367
290 #define VAR_SO_RCVBUF 368
291 #define VAR_EDNS_BUFFER_SIZE 369
292 #define VAR_PREFETCH 370
293 #define VAR_PREFETCH_KEY 371
294 #define VAR_SO_SNDBUF 372
295 #define VAR_HARDEN_BELOW_NXDOMAIN 373
296 #define VAR_IGNORE_CD_FLAG 374
297 #define VAR_LOG_QUERIES 375
298 #define VAR_TCP_UPSTREAM 376
299 #define VAR_SSL_UPSTREAM 377
300 #define VAR_SSL_SERVICE_KEY 378
301 #define VAR_SSL_SERVICE_PEM 379
302 #define VAR_SSL_PORT 380
303 #define VAR_FORWARD_FIRST 381
304 #define VAR_STUB_FIRST 382
305 #define VAR_MINIMAL_RESPONSES 383
306 #define VAR_RRSET_ROUNDROBIN 384
307 #define VAR_MAX_UDP_SIZE 385
308
309
310
311 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
312 typedef union YYSTYPE
313 {
314 /* Line 2049 of yacc.c  */
315 #line 64 "util/configparser.y"
316
317         char*   str;
318
319
320 /* Line 2049 of yacc.c  */
321 #line 322 "util/configparser.h"
322 } YYSTYPE;
323 # define YYSTYPE_IS_TRIVIAL 1
324 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
325 # define YYSTYPE_IS_DECLARED 1
326 #endif
327
328 extern YYSTYPE yylval;
329
330 #ifdef YYPARSE_PARAM
331 #if defined __STDC__ || defined __cplusplus
332 int yyparse (void *YYPARSE_PARAM);
333 #else
334 int yyparse ();
335 #endif
336 #else /* ! YYPARSE_PARAM */
337 #if defined __STDC__ || defined __cplusplus
338 int yyparse (void);
339 #else
340 int yyparse ();
341 #endif
342 #endif /* ! YYPARSE_PARAM */
343
344 #endif /* !YY_UTIL_CONFIGPARSER_H  */