-
Notifications
You must be signed in to change notification settings - Fork 101
/
parse.h
238 lines (217 loc) · 5.16 KB
/
parse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
/* A Bison parser, made by GNU Bison 2.5. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
CREATE = 258,
ADD = 259,
BCAST = 260,
PORT = 261,
SRCPORT = 262,
DSTPORT = 263,
BIND = 264,
CLONE = 265,
DOT = 266,
FILTERED = 267,
OPEN = 268,
CLOSED = 269,
DEFAULT = 270,
SET = 271,
ACTION = 272,
PERSONALITY = 273,
RANDOM = 274,
ANNOTATE = 275,
NO = 276,
FINSCAN = 277,
FRAGMENT = 278,
DROP = 279,
OLD = 280,
NEW = 281,
COLON = 282,
PROXY = 283,
UPTIME = 284,
DROPRATE = 285,
IN = 286,
SYN = 287,
UID = 288,
GID = 289,
ROUTE = 290,
ENTRY = 291,
LINK = 292,
NET = 293,
UNREACH = 294,
SLASH = 295,
LATENCY = 296,
MS = 297,
LOSS = 298,
BANDWIDTH = 299,
SUBSYSTEM = 300,
OPTION = 301,
TO = 302,
SHARED = 303,
NETWORK = 304,
SPOOF = 305,
FROM = 306,
TEMPLATE = 307,
BROADCAST = 308,
TUNNEL = 309,
TARPIT = 310,
DYNAMIC = 311,
USE = 312,
IF = 313,
OTHERWISE = 314,
EQUAL = 315,
SOURCE = 316,
OS = 317,
IP = 318,
BETWEEN = 319,
DELETE = 320,
LIST = 321,
ETHERNET = 322,
DHCP = 323,
ON = 324,
MAXFDS = 325,
RESTART = 326,
DEBUG = 327,
DASH = 328,
TIME = 329,
INTERNAL = 330,
STRING = 331,
CMDSTRING = 332,
IPSTRING = 333,
NUMBER = 334,
PROTO = 335,
FLOAT = 336
};
#endif
/* Tokens. */
#define CREATE 258
#define ADD 259
#define BCAST 260
#define PORT 261
#define SRCPORT 262
#define DSTPORT 263
#define BIND 264
#define CLONE 265
#define DOT 266
#define FILTERED 267
#define OPEN 268
#define CLOSED 269
#define DEFAULT 270
#define SET 271
#define ACTION 272
#define PERSONALITY 273
#define RANDOM 274
#define ANNOTATE 275
#define NO 276
#define FINSCAN 277
#define FRAGMENT 278
#define DROP 279
#define OLD 280
#define NEW 281
#define COLON 282
#define PROXY 283
#define UPTIME 284
#define DROPRATE 285
#define IN 286
#define SYN 287
#define UID 288
#define GID 289
#define ROUTE 290
#define ENTRY 291
#define LINK 292
#define NET 293
#define UNREACH 294
#define SLASH 295
#define LATENCY 296
#define MS 297
#define LOSS 298
#define BANDWIDTH 299
#define SUBSYSTEM 300
#define OPTION 301
#define TO 302
#define SHARED 303
#define NETWORK 304
#define SPOOF 305
#define FROM 306
#define TEMPLATE 307
#define BROADCAST 308
#define TUNNEL 309
#define TARPIT 310
#define DYNAMIC 311
#define USE 312
#define IF 313
#define OTHERWISE 314
#define EQUAL 315
#define SOURCE 316
#define OS 317
#define IP 318
#define BETWEEN 319
#define DELETE 320
#define LIST 321
#define ETHERNET 322
#define DHCP 323
#define ON 324
#define MAXFDS 325
#define RESTART 326
#define DEBUG 327
#define DASH 328
#define TIME 329
#define INTERNAL 330
#define STRING 331
#define CMDSTRING 332
#define IPSTRING 333
#define NUMBER 334
#define PROTO 335
#define FLOAT 336
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 2068 of yacc.c */
#line 139 "parse.y"
char *string;
int number;
struct link_drop drop;
struct addr addr;
struct action action;
struct template *tmpl;
struct personality *pers;
struct addrinfo *ai;
enum fragpolicy fragp;
float floatp;
struct condition condition;
struct tm time;
struct condition_time timecondition;
/* Line 2068 of yacc.c */
#line 230 "parse.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE yylval;