~ubuntu-branches/ubuntu/oneiric/syslog-ng/oneiric

« back to all changes in this revision

Viewing changes to modules/afsocket/afsocket-grammar.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2011-05-16 22:02:46 UTC
  • mfrom: (26.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110516220246-nknmeu831n49bx1z
Tags: 3.2.4-1
* New upstream release, fixing infinite loop via PCRE and global. No CVE
  number yet, Vigil@nce id is 10648.
* Remove all patches, they were applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* A Bison parser, made by GNU Bison 2.4.1.  */
 
3
 
 
4
/* Skeleton interface for Bison's Yacc-like parsers in C
 
5
   
 
6
      Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
7
   Free Software Foundation, Inc.
 
8
   
 
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.
 
13
   
 
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.
 
18
   
 
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/>.  */
 
21
 
 
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.
 
31
   
 
32
   This special exception was added by the Free Software Foundation in
 
33
   version 2.2 of Bison.  */
 
34
 
 
35
 
 
36
/* Tokens.  */
 
37
#ifndef YYTOKENTYPE
 
38
# define YYTOKENTYPE
 
39
   /* Put the tokens into the symbol table, so that GDB and other debuggers
 
40
      know about them.  */
 
41
   enum yytokentype {
 
42
     KW_UNIX_STREAM = 20000,
 
43
     KW_UNIX_DGRAM = 20002,
 
44
     KW_TCP = 20003,
 
45
     KW_UDP = 20004,
 
46
     KW_TCP6 = 20005,
 
47
     KW_UDP6 = 20006,
 
48
     KW_TRANSPORT = 20007,
 
49
     KW_IP_TTL = 20008,
 
50
     KW_SO_BROADCAST = 20009,
 
51
     KW_IP_TOS = 20010,
 
52
     KW_SO_SNDBUF = 20011,
 
53
     KW_SO_RCVBUF = 20012,
 
54
     KW_SO_KEEPALIVE = 20013,
 
55
     KW_SPOOF_SOURCE = 20014,
 
56
     KW_KEEP_ALIVE = 20015,
 
57
     KW_MAX_CONNECTIONS = 20016,
 
58
     KW_LOCALIP = 20017,
 
59
     KW_IP = 20018,
 
60
     KW_LOCALPORT = 20019,
 
61
     KW_DESTPORT = 20020,
 
62
     KW_TLS = 20021,
 
63
     KW_PEER_VERIFY = 20022,
 
64
     KW_KEY_FILE = 20023,
 
65
     KW_CERT_FILE = 20024,
 
66
     KW_CA_DIR = 20025,
 
67
     KW_CRL_DIR = 20026,
 
68
     KW_TRUSTED_KEYS = 20027,
 
69
     KW_TRUSTED_DN = 20028,
 
70
     LL_CONTEXT_ROOT = 1,
 
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,
 
76
     LL_CONTEXT_LOG = 7,
 
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,
 
83
     KW_SOURCE = 10000,
 
84
     KW_FILTER = 10001,
 
85
     KW_PARSER = 10002,
 
86
     KW_DESTINATION = 10003,
 
87
     KW_LOG = 10004,
 
88
     KW_OPTIONS = 10005,
 
89
     KW_INCLUDE = 10006,
 
90
     KW_BLOCK = 10007,
 
91
     KW_INTERNAL = 10010,
 
92
     KW_FILE = 10011,
 
93
     KW_SQL = 10030,
 
94
     KW_TYPE = 10031,
 
95
     KW_COLUMNS = 10032,
 
96
     KW_INDEXES = 10033,
 
97
     KW_VALUES = 10034,
 
98
     KW_PASSWORD = 10035,
 
99
     KW_DATABASE = 10036,
 
100
     KW_USERNAME = 10037,
 
101
     KW_TABLE = 10038,
 
102
     KW_ENCODING = 10039,
 
103
     KW_SESSION_STATEMENTS = 10040,
 
104
     KW_DELIMITERS = 10050,
 
105
     KW_QUOTES = 10051,
 
106
     KW_QUOTE_PAIRS = 10052,
 
107
     KW_NULL = 10053,
 
108
     KW_SYSLOG = 10060,
 
109
     KW_MARK_FREQ = 10071,
 
110
     KW_STATS_FREQ = 10072,
 
111
     KW_STATS_LEVEL = 10073,
 
112
     KW_FLUSH_LINES = 10074,
 
113
     KW_SUPPRESS = 10075,
 
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,
 
124
     KW_USE_DNS = 10110,
 
125
     KW_USE_FQDN = 10111,
 
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,
 
141
     KW_THROTTLE = 10170,
 
142
     KW_FLAGS = 10190,
 
143
     KW_PAD_SIZE = 10200,
 
144
     KW_TIME_ZONE = 10201,
 
145
     KW_RECV_TIME_ZONE = 10202,
 
146
     KW_SEND_TIME_ZONE = 10203,
 
147
     KW_LOCAL_TIME_ZONE = 10204,
 
148
     KW_FORMAT = 10205,
 
149
     KW_TIME_REOPEN = 10210,
 
150
     KW_TIME_REAP = 10211,
 
151
     KW_TIME_SLEEP = 10212,
 
152
     KW_TMPL_ESCAPE = 10220,
 
153
     KW_OPTIONAL = 10230,
 
154
     KW_CREATE_DIRS = 10240,
 
155
     KW_OWNER = 10250,
 
156
     KW_GROUP = 10251,
 
157
     KW_PERM = 10252,
 
158
     KW_DIR_OWNER = 10260,
 
159
     KW_DIR_GROUP = 10261,
 
160
     KW_DIR_PERM = 10262,
 
161
     KW_TEMPLATE = 10270,
 
162
     KW_TEMPLATE_ESCAPE = 10271,
 
163
     KW_DEFAULT_FACILITY = 10300,
 
164
     KW_DEFAULT_LEVEL = 10301,
 
165
     KW_PORT = 10323,
 
166
     KW_USE_TIME_RECVD = 10340,
 
167
     KW_FACILITY = 10350,
 
168
     KW_LEVEL = 10351,
 
169
     KW_HOST = 10352,
 
170
     KW_MATCH = 10353,
 
171
     KW_MESSAGE = 10354,
 
172
     KW_NETMASK = 10355,
 
173
     KW_TAGS = 10356,
 
174
     KW_VALUE = 10361,
 
175
     KW_REWRITE = 10370,
 
176
     KW_SET = 10371,
 
177
     KW_SUBST = 10372,
 
178
     KW_YES = 10380,
 
179
     KW_NO = 10381,
 
180
     KW_IFDEF = 10410,
 
181
     KW_ENDIF = 10411,
 
182
     LL_DOTDOT = 10420,
 
183
     LL_IDENTIFIER = 10421,
 
184
     LL_NUMBER = 10422,
 
185
     LL_FLOAT = 10423,
 
186
     LL_STRING = 10424,
 
187
     LL_TOKEN = 10425,
 
188
     LL_BLOCK = 10426,
 
189
     LL_PRAGMA = 10427,
 
190
     LL_EOL = 10428,
 
191
     LL_ERROR = 10429
 
192
   };
 
193
#endif
 
194
/* Tokens.  */
 
195
#define KW_UNIX_STREAM 20000
 
196
#define KW_UNIX_DGRAM 20002
 
197
#define KW_TCP 20003
 
198
#define KW_UDP 20004
 
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
 
212
#define KW_IP 20018
 
213
#define KW_LOCALPORT 20019
 
214
#define KW_DESTPORT 20020
 
215
#define KW_TLS 20021
 
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
 
240
#define KW_LOG 10004
 
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
 
246
#define KW_SQL 10030
 
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
 
329
#define KW_SET 10371
 
330
#define KW_SUBST 10372
 
331
#define KW_YES 10380
 
332
#define KW_NO 10381
 
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
 
343
#define LL_EOL 10428
 
344
#define LL_ERROR 10429
 
345
 
 
346
 
 
347
 
 
348
 
 
349
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
 
350
 
 
351
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
 
352
# define YYSTYPE_IS_DECLARED 1
 
353
#endif
 
354
 
 
355
 
 
356
 
 
357
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
 
358
typedef struct YYLTYPE
 
359
{
 
360
  int first_line;
 
361
  int first_column;
 
362
  int last_line;
 
363
  int last_column;
 
364
} YYLTYPE;
 
365
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
 
366
# define YYLTYPE_IS_DECLARED 1
 
367
# define YYLTYPE_IS_TRIVIAL 1
 
368
#endif
 
369
 
 
370
 
 
371