xref: /netbsd-src/external/bsd/nsd/dist/configparser.h (revision cef8759bd76c1b621f8eab8faa6f208faabc2e15)
1 /* A Bison parser, made by GNU Bison 3.0.5.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5    Copyright (C) 1984, 1989-1990, 2000-2015, 2018 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     STRING = 258,
49     VAR_SERVER = 259,
50     VAR_SERVER_COUNT = 260,
51     VAR_IP_ADDRESS = 261,
52     VAR_IP_TRANSPARENT = 262,
53     VAR_IP_FREEBIND = 263,
54     VAR_REUSEPORT = 264,
55     VAR_SEND_BUFFER_SIZE = 265,
56     VAR_RECEIVE_BUFFER_SIZE = 266,
57     VAR_DEBUG_MODE = 267,
58     VAR_IP4_ONLY = 268,
59     VAR_IP6_ONLY = 269,
60     VAR_DO_IP4 = 270,
61     VAR_DO_IP6 = 271,
62     VAR_PORT = 272,
63     VAR_USE_SYSTEMD = 273,
64     VAR_VERBOSITY = 274,
65     VAR_USERNAME = 275,
66     VAR_CHROOT = 276,
67     VAR_ZONESDIR = 277,
68     VAR_ZONELISTFILE = 278,
69     VAR_DATABASE = 279,
70     VAR_LOGFILE = 280,
71     VAR_PIDFILE = 281,
72     VAR_DIFFFILE = 282,
73     VAR_XFRDFILE = 283,
74     VAR_XFRDIR = 284,
75     VAR_HIDE_VERSION = 285,
76     VAR_HIDE_IDENTITY = 286,
77     VAR_VERSION = 287,
78     VAR_IDENTITY = 288,
79     VAR_NSID = 289,
80     VAR_TCP_COUNT = 290,
81     VAR_TCP_REJECT_OVERFLOW = 291,
82     VAR_TCP_QUERY_COUNT = 292,
83     VAR_TCP_TIMEOUT = 293,
84     VAR_TCP_MSS = 294,
85     VAR_OUTGOING_TCP_MSS = 295,
86     VAR_IPV4_EDNS_SIZE = 296,
87     VAR_IPV6_EDNS_SIZE = 297,
88     VAR_STATISTICS = 298,
89     VAR_XFRD_RELOAD_TIMEOUT = 299,
90     VAR_LOG_TIME_ASCII = 300,
91     VAR_ROUND_ROBIN = 301,
92     VAR_MINIMAL_RESPONSES = 302,
93     VAR_CONFINE_TO_ZONE = 303,
94     VAR_REFUSE_ANY = 304,
95     VAR_ZONEFILES_CHECK = 305,
96     VAR_ZONEFILES_WRITE = 306,
97     VAR_RRL_SIZE = 307,
98     VAR_RRL_RATELIMIT = 308,
99     VAR_RRL_SLIP = 309,
100     VAR_RRL_IPV4_PREFIX_LENGTH = 310,
101     VAR_RRL_IPV6_PREFIX_LENGTH = 311,
102     VAR_RRL_WHITELIST_RATELIMIT = 312,
103     VAR_TLS_SERVICE_KEY = 313,
104     VAR_TLS_SERVICE_PEM = 314,
105     VAR_TLS_SERVICE_OCSP = 315,
106     VAR_TLS_PORT = 316,
107     VAR_DNSTAP = 317,
108     VAR_DNSTAP_ENABLE = 318,
109     VAR_DNSTAP_SOCKET_PATH = 319,
110     VAR_DNSTAP_SEND_IDENTITY = 320,
111     VAR_DNSTAP_SEND_VERSION = 321,
112     VAR_DNSTAP_IDENTITY = 322,
113     VAR_DNSTAP_VERSION = 323,
114     VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES = 324,
115     VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES = 325,
116     VAR_REMOTE_CONTROL = 326,
117     VAR_CONTROL_ENABLE = 327,
118     VAR_CONTROL_INTERFACE = 328,
119     VAR_CONTROL_PORT = 329,
120     VAR_SERVER_KEY_FILE = 330,
121     VAR_SERVER_CERT_FILE = 331,
122     VAR_CONTROL_KEY_FILE = 332,
123     VAR_CONTROL_CERT_FILE = 333,
124     VAR_KEY = 334,
125     VAR_ALGORITHM = 335,
126     VAR_SECRET = 336,
127     VAR_PATTERN = 337,
128     VAR_NAME = 338,
129     VAR_ZONEFILE = 339,
130     VAR_NOTIFY = 340,
131     VAR_PROVIDE_XFR = 341,
132     VAR_AXFR = 342,
133     VAR_UDP = 343,
134     VAR_NOTIFY_RETRY = 344,
135     VAR_ALLOW_NOTIFY = 345,
136     VAR_REQUEST_XFR = 346,
137     VAR_ALLOW_AXFR_FALLBACK = 347,
138     VAR_OUTGOING_INTERFACE = 348,
139     VAR_MAX_REFRESH_TIME = 349,
140     VAR_MIN_REFRESH_TIME = 350,
141     VAR_MAX_RETRY_TIME = 351,
142     VAR_MIN_RETRY_TIME = 352,
143     VAR_MULTI_MASTER_CHECK = 353,
144     VAR_SIZE_LIMIT_XFR = 354,
145     VAR_ZONESTATS = 355,
146     VAR_INCLUDE_PATTERN = 356,
147     VAR_ZONE = 357,
148     VAR_RRL_WHITELIST = 358
149   };
150 #endif
151 /* Tokens.  */
152 #define STRING 258
153 #define VAR_SERVER 259
154 #define VAR_SERVER_COUNT 260
155 #define VAR_IP_ADDRESS 261
156 #define VAR_IP_TRANSPARENT 262
157 #define VAR_IP_FREEBIND 263
158 #define VAR_REUSEPORT 264
159 #define VAR_SEND_BUFFER_SIZE 265
160 #define VAR_RECEIVE_BUFFER_SIZE 266
161 #define VAR_DEBUG_MODE 267
162 #define VAR_IP4_ONLY 268
163 #define VAR_IP6_ONLY 269
164 #define VAR_DO_IP4 270
165 #define VAR_DO_IP6 271
166 #define VAR_PORT 272
167 #define VAR_USE_SYSTEMD 273
168 #define VAR_VERBOSITY 274
169 #define VAR_USERNAME 275
170 #define VAR_CHROOT 276
171 #define VAR_ZONESDIR 277
172 #define VAR_ZONELISTFILE 278
173 #define VAR_DATABASE 279
174 #define VAR_LOGFILE 280
175 #define VAR_PIDFILE 281
176 #define VAR_DIFFFILE 282
177 #define VAR_XFRDFILE 283
178 #define VAR_XFRDIR 284
179 #define VAR_HIDE_VERSION 285
180 #define VAR_HIDE_IDENTITY 286
181 #define VAR_VERSION 287
182 #define VAR_IDENTITY 288
183 #define VAR_NSID 289
184 #define VAR_TCP_COUNT 290
185 #define VAR_TCP_REJECT_OVERFLOW 291
186 #define VAR_TCP_QUERY_COUNT 292
187 #define VAR_TCP_TIMEOUT 293
188 #define VAR_TCP_MSS 294
189 #define VAR_OUTGOING_TCP_MSS 295
190 #define VAR_IPV4_EDNS_SIZE 296
191 #define VAR_IPV6_EDNS_SIZE 297
192 #define VAR_STATISTICS 298
193 #define VAR_XFRD_RELOAD_TIMEOUT 299
194 #define VAR_LOG_TIME_ASCII 300
195 #define VAR_ROUND_ROBIN 301
196 #define VAR_MINIMAL_RESPONSES 302
197 #define VAR_CONFINE_TO_ZONE 303
198 #define VAR_REFUSE_ANY 304
199 #define VAR_ZONEFILES_CHECK 305
200 #define VAR_ZONEFILES_WRITE 306
201 #define VAR_RRL_SIZE 307
202 #define VAR_RRL_RATELIMIT 308
203 #define VAR_RRL_SLIP 309
204 #define VAR_RRL_IPV4_PREFIX_LENGTH 310
205 #define VAR_RRL_IPV6_PREFIX_LENGTH 311
206 #define VAR_RRL_WHITELIST_RATELIMIT 312
207 #define VAR_TLS_SERVICE_KEY 313
208 #define VAR_TLS_SERVICE_PEM 314
209 #define VAR_TLS_SERVICE_OCSP 315
210 #define VAR_TLS_PORT 316
211 #define VAR_DNSTAP 317
212 #define VAR_DNSTAP_ENABLE 318
213 #define VAR_DNSTAP_SOCKET_PATH 319
214 #define VAR_DNSTAP_SEND_IDENTITY 320
215 #define VAR_DNSTAP_SEND_VERSION 321
216 #define VAR_DNSTAP_IDENTITY 322
217 #define VAR_DNSTAP_VERSION 323
218 #define VAR_DNSTAP_LOG_AUTH_QUERY_MESSAGES 324
219 #define VAR_DNSTAP_LOG_AUTH_RESPONSE_MESSAGES 325
220 #define VAR_REMOTE_CONTROL 326
221 #define VAR_CONTROL_ENABLE 327
222 #define VAR_CONTROL_INTERFACE 328
223 #define VAR_CONTROL_PORT 329
224 #define VAR_SERVER_KEY_FILE 330
225 #define VAR_SERVER_CERT_FILE 331
226 #define VAR_CONTROL_KEY_FILE 332
227 #define VAR_CONTROL_CERT_FILE 333
228 #define VAR_KEY 334
229 #define VAR_ALGORITHM 335
230 #define VAR_SECRET 336
231 #define VAR_PATTERN 337
232 #define VAR_NAME 338
233 #define VAR_ZONEFILE 339
234 #define VAR_NOTIFY 340
235 #define VAR_PROVIDE_XFR 341
236 #define VAR_AXFR 342
237 #define VAR_UDP 343
238 #define VAR_NOTIFY_RETRY 344
239 #define VAR_ALLOW_NOTIFY 345
240 #define VAR_REQUEST_XFR 346
241 #define VAR_ALLOW_AXFR_FALLBACK 347
242 #define VAR_OUTGOING_INTERFACE 348
243 #define VAR_MAX_REFRESH_TIME 349
244 #define VAR_MIN_REFRESH_TIME 350
245 #define VAR_MAX_RETRY_TIME 351
246 #define VAR_MIN_RETRY_TIME 352
247 #define VAR_MULTI_MASTER_CHECK 353
248 #define VAR_SIZE_LIMIT_XFR 354
249 #define VAR_ZONESTATS 355
250 #define VAR_INCLUDE_PATTERN 356
251 #define VAR_ZONE 357
252 #define VAR_RRL_WHITELIST 358
253 
254 /* Value type.  */
255 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
256 
257 union YYSTYPE
258 {
259 #line 37 "configparser.y" /* yacc.c:1910  */
260 
261   char *str;
262   long long llng;
263   int bln;
264   struct ip_address_option *ip;
265 
266 #line 267 "configparser.h" /* yacc.c:1910  */
267 };
268 
269 typedef union YYSTYPE YYSTYPE;
270 # define YYSTYPE_IS_TRIVIAL 1
271 # define YYSTYPE_IS_DECLARED 1
272 #endif
273 
274 
275 extern YYSTYPE yylval;
276 
277 int yyparse (void);
278 
279 #endif /* !YY_YY_CONFIGPARSER_H_INCLUDED  */
280