2
/* A Bison parser, made by GNU Bison 2.4.1. */
4
/* Skeleton interface for Bison's Yacc-like parsers in C
6
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7
Free Software Foundation, Inc.
9
This program is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation, either version 3 of the License, or
12
(at your option) any later version.
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License
20
along with this program. If not, see <http://www.gnu.org/licenses/>. */
22
/* As a special exception, you may create a larger work that contains
23
part or all of the Bison parser skeleton and distribute that work
24
under terms of your choice, so long as that work isn't itself a
25
parser generator using the skeleton or a modified version thereof
26
as a parser skeleton. Alternatively, if you modify or redistribute
27
the parser skeleton itself, you may (at your option) remove this
28
special exception, which will cause the skeleton and the resulting
29
Bison output files to be licensed under the GNU General Public
30
License without this special exception.
32
This special exception was added by the Free Software Foundation in
33
version 2.2 of Bison. */
39
/* Put the tokens into the symbol table, so that GDB and other debuggers
42
KW_UNIX_STREAM = 20000,
43
KW_UNIX_DGRAM = 20002,
50
KW_SO_BROADCAST = 20009,
54
KW_SO_KEEPALIVE = 20013,
55
KW_SPOOF_SOURCE = 20014,
56
KW_KEEP_ALIVE = 20015,
57
KW_MAX_CONNECTIONS = 20016,
63
KW_PEER_VERIFY = 20022,
68
KW_TRUSTED_KEYS = 20027,
69
KW_TRUSTED_DN = 20028,
71
LL_CONTEXT_DESTINATION = 2,
72
LL_CONTEXT_SOURCE = 3,
73
LL_CONTEXT_PARSER = 4,
74
LL_CONTEXT_REWRITE = 5,
75
LL_CONTEXT_FILTER = 6,
77
LL_CONTEXT_BLOCK_DEF = 8,
78
LL_CONTEXT_BLOCK_REF = 9,
79
LL_CONTEXT_BLOCK_CONTENT = 10,
80
LL_CONTEXT_PRAGMA = 11,
81
LL_CONTEXT_FORMAT = 12,
82
LL_CONTEXT_TEMPLATE_FUNC = 13,
86
KW_DESTINATION = 10003,
103
KW_SESSION_STATEMENTS = 10040,
104
KW_DELIMITERS = 10050,
106
KW_QUOTE_PAIRS = 10052,
109
KW_MARK_FREQ = 10071,
110
KW_STATS_FREQ = 10072,
111
KW_STATS_LEVEL = 10073,
112
KW_FLUSH_LINES = 10074,
114
KW_FLUSH_TIMEOUT = 10076,
115
KW_LOG_MSG_SIZE = 10077,
116
KW_FILE_TEMPLATE = 10078,
117
KW_PROTO_TEMPLATE = 10079,
118
KW_CHAIN_HOSTNAMES = 10090,
119
KW_NORMALIZE_HOSTNAMES = 10091,
120
KW_KEEP_HOSTNAME = 10092,
121
KW_CHECK_HOSTNAME = 10093,
122
KW_BAD_HOSTNAME = 10094,
123
KW_KEEP_TIMESTAMP = 10100,
126
KW_DNS_CACHE = 10120,
127
KW_DNS_CACHE_SIZE = 10121,
128
KW_DNS_CACHE_EXPIRE = 10130,
129
KW_DNS_CACHE_EXPIRE_FAILED = 10131,
130
KW_DNS_CACHE_HOSTS = 10132,
131
KW_PERSIST_ONLY = 10140,
132
KW_TZ_CONVERT = 10150,
133
KW_TS_FORMAT = 10151,
134
KW_FRAC_DIGITS = 10152,
135
KW_LOG_FIFO_SIZE = 10160,
136
KW_LOG_FETCH_LIMIT = 10162,
137
KW_LOG_IW_SIZE = 10163,
138
KW_LOG_PREFIX = 10164,
139
KW_PROGRAM_OVERRIDE = 10165,
140
KW_HOST_OVERRIDE = 10166,
144
KW_TIME_ZONE = 10201,
145
KW_RECV_TIME_ZONE = 10202,
146
KW_SEND_TIME_ZONE = 10203,
147
KW_LOCAL_TIME_ZONE = 10204,
149
KW_TIME_REOPEN = 10210,
150
KW_TIME_REAP = 10211,
151
KW_TIME_SLEEP = 10212,
152
KW_TMPL_ESCAPE = 10220,
154
KW_CREATE_DIRS = 10240,
158
KW_DIR_OWNER = 10260,
159
KW_DIR_GROUP = 10261,
162
KW_TEMPLATE_ESCAPE = 10271,
163
KW_DEFAULT_FACILITY = 10300,
164
KW_DEFAULT_LEVEL = 10301,
166
KW_USE_TIME_RECVD = 10340,
183
LL_IDENTIFIER = 10421,
195
#define KW_UNIX_STREAM 20000
196
#define KW_UNIX_DGRAM 20002
199
#define KW_TCP6 20005
200
#define KW_UDP6 20006
201
#define KW_TRANSPORT 20007
202
#define KW_IP_TTL 20008
203
#define KW_SO_BROADCAST 20009
204
#define KW_IP_TOS 20010
205
#define KW_SO_SNDBUF 20011
206
#define KW_SO_RCVBUF 20012
207
#define KW_SO_KEEPALIVE 20013
208
#define KW_SPOOF_SOURCE 20014
209
#define KW_KEEP_ALIVE 20015
210
#define KW_MAX_CONNECTIONS 20016
211
#define KW_LOCALIP 20017
213
#define KW_LOCALPORT 20019
214
#define KW_DESTPORT 20020
216
#define KW_PEER_VERIFY 20022
217
#define KW_KEY_FILE 20023
218
#define KW_CERT_FILE 20024
219
#define KW_CA_DIR 20025
220
#define KW_CRL_DIR 20026
221
#define KW_TRUSTED_KEYS 20027
222
#define KW_TRUSTED_DN 20028
223
#define LL_CONTEXT_ROOT 1
224
#define LL_CONTEXT_DESTINATION 2
225
#define LL_CONTEXT_SOURCE 3
226
#define LL_CONTEXT_PARSER 4
227
#define LL_CONTEXT_REWRITE 5
228
#define LL_CONTEXT_FILTER 6
229
#define LL_CONTEXT_LOG 7
230
#define LL_CONTEXT_BLOCK_DEF 8
231
#define LL_CONTEXT_BLOCK_REF 9
232
#define LL_CONTEXT_BLOCK_CONTENT 10
233
#define LL_CONTEXT_PRAGMA 11
234
#define LL_CONTEXT_FORMAT 12
235
#define LL_CONTEXT_TEMPLATE_FUNC 13
236
#define KW_SOURCE 10000
237
#define KW_FILTER 10001
238
#define KW_PARSER 10002
239
#define KW_DESTINATION 10003
241
#define KW_OPTIONS 10005
242
#define KW_INCLUDE 10006
243
#define KW_BLOCK 10007
244
#define KW_INTERNAL 10010
245
#define KW_FILE 10011
247
#define KW_TYPE 10031
248
#define KW_COLUMNS 10032
249
#define KW_INDEXES 10033
250
#define KW_VALUES 10034
251
#define KW_PASSWORD 10035
252
#define KW_DATABASE 10036
253
#define KW_USERNAME 10037
254
#define KW_TABLE 10038
255
#define KW_ENCODING 10039
256
#define KW_SESSION_STATEMENTS 10040
257
#define KW_DELIMITERS 10050
258
#define KW_QUOTES 10051
259
#define KW_QUOTE_PAIRS 10052
260
#define KW_NULL 10053
261
#define KW_SYSLOG 10060
262
#define KW_MARK_FREQ 10071
263
#define KW_STATS_FREQ 10072
264
#define KW_STATS_LEVEL 10073
265
#define KW_FLUSH_LINES 10074
266
#define KW_SUPPRESS 10075
267
#define KW_FLUSH_TIMEOUT 10076
268
#define KW_LOG_MSG_SIZE 10077
269
#define KW_FILE_TEMPLATE 10078
270
#define KW_PROTO_TEMPLATE 10079
271
#define KW_CHAIN_HOSTNAMES 10090
272
#define KW_NORMALIZE_HOSTNAMES 10091
273
#define KW_KEEP_HOSTNAME 10092
274
#define KW_CHECK_HOSTNAME 10093
275
#define KW_BAD_HOSTNAME 10094
276
#define KW_KEEP_TIMESTAMP 10100
277
#define KW_USE_DNS 10110
278
#define KW_USE_FQDN 10111
279
#define KW_DNS_CACHE 10120
280
#define KW_DNS_CACHE_SIZE 10121
281
#define KW_DNS_CACHE_EXPIRE 10130
282
#define KW_DNS_CACHE_EXPIRE_FAILED 10131
283
#define KW_DNS_CACHE_HOSTS 10132
284
#define KW_PERSIST_ONLY 10140
285
#define KW_TZ_CONVERT 10150
286
#define KW_TS_FORMAT 10151
287
#define KW_FRAC_DIGITS 10152
288
#define KW_LOG_FIFO_SIZE 10160
289
#define KW_LOG_FETCH_LIMIT 10162
290
#define KW_LOG_IW_SIZE 10163
291
#define KW_LOG_PREFIX 10164
292
#define KW_PROGRAM_OVERRIDE 10165
293
#define KW_HOST_OVERRIDE 10166
294
#define KW_THROTTLE 10170
295
#define KW_FLAGS 10190
296
#define KW_PAD_SIZE 10200
297
#define KW_TIME_ZONE 10201
298
#define KW_RECV_TIME_ZONE 10202
299
#define KW_SEND_TIME_ZONE 10203
300
#define KW_LOCAL_TIME_ZONE 10204
301
#define KW_FORMAT 10205
302
#define KW_TIME_REOPEN 10210
303
#define KW_TIME_REAP 10211
304
#define KW_TIME_SLEEP 10212
305
#define KW_TMPL_ESCAPE 10220
306
#define KW_OPTIONAL 10230
307
#define KW_CREATE_DIRS 10240
308
#define KW_OWNER 10250
309
#define KW_GROUP 10251
310
#define KW_PERM 10252
311
#define KW_DIR_OWNER 10260
312
#define KW_DIR_GROUP 10261
313
#define KW_DIR_PERM 10262
314
#define KW_TEMPLATE 10270
315
#define KW_TEMPLATE_ESCAPE 10271
316
#define KW_DEFAULT_FACILITY 10300
317
#define KW_DEFAULT_LEVEL 10301
318
#define KW_PORT 10323
319
#define KW_USE_TIME_RECVD 10340
320
#define KW_FACILITY 10350
321
#define KW_LEVEL 10351
322
#define KW_HOST 10352
323
#define KW_MATCH 10353
324
#define KW_MESSAGE 10354
325
#define KW_NETMASK 10355
326
#define KW_TAGS 10356
327
#define KW_VALUE 10361
328
#define KW_REWRITE 10370
330
#define KW_SUBST 10372
333
#define KW_IFDEF 10410
334
#define KW_ENDIF 10411
335
#define LL_DOTDOT 10420
336
#define LL_IDENTIFIER 10421
337
#define LL_NUMBER 10422
338
#define LL_FLOAT 10423
339
#define LL_STRING 10424
340
#define LL_TOKEN 10425
341
#define LL_BLOCK 10426
342
#define LL_PRAGMA 10427
344
#define LL_ERROR 10429
349
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
351
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
352
# define YYSTYPE_IS_DECLARED 1
357
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
358
typedef struct YYLTYPE
365
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
366
# define YYLTYPE_IS_DECLARED 1
367
# define YYLTYPE_IS_TRIVIAL 1