• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* A Bison parser, made by GNU Bison 2.5.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5       Copyright (C) 1984, 1989-1990, 2000-2011 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 
34 /* Tokens.  */
35 #ifndef YYTOKENTYPE
36 # define YYTOKENTYPE
37    /* Put the tokens into the symbol table, so that GDB and other debuggers
38       know about them.  */
39    enum yytokentype {
40      DST = 258,
41      SRC = 259,
42      HOST = 260,
43      GATEWAY = 261,
44      NET = 262,
45      NETMASK = 263,
46      PORT = 264,
47      PORTRANGE = 265,
48      LESS = 266,
49      GREATER = 267,
50      PROTO = 268,
51      PROTOCHAIN = 269,
52      CBYTE = 270,
53      ARP = 271,
54      RARP = 272,
55      IP = 273,
56      SCTP = 274,
57      TCP = 275,
58      UDP = 276,
59      ICMP = 277,
60      IGMP = 278,
61      IGRP = 279,
62      PIM = 280,
63      VRRP = 281,
64      CARP = 282,
65      ATALK = 283,
66      AARP = 284,
67      DECNET = 285,
68      LAT = 286,
69      SCA = 287,
70      MOPRC = 288,
71      MOPDL = 289,
72      TK_BROADCAST = 290,
73      TK_MULTICAST = 291,
74      NUM = 292,
75      INBOUND = 293,
76      OUTBOUND = 294,
77      PF_IFNAME = 295,
78      PF_RSET = 296,
79      PF_RNR = 297,
80      PF_SRNR = 298,
81      PF_REASON = 299,
82      PF_ACTION = 300,
83      TYPE = 301,
84      SUBTYPE = 302,
85      DIR = 303,
86      ADDR1 = 304,
87      ADDR2 = 305,
88      ADDR3 = 306,
89      ADDR4 = 307,
90      RA = 308,
91      TA = 309,
92      LINK = 310,
93      GEQ = 311,
94      LEQ = 312,
95      NEQ = 313,
96      ID = 314,
97      EID = 315,
98      HID = 316,
99      HID6 = 317,
100      AID = 318,
101      LSH = 319,
102      RSH = 320,
103      LEN = 321,
104      IPV6 = 322,
105      ICMPV6 = 323,
106      AH = 324,
107      ESP = 325,
108      VLAN = 326,
109      MPLS = 327,
110      PPPOED = 328,
111      PPPOES = 329,
112      ISO = 330,
113      ESIS = 331,
114      CLNP = 332,
115      ISIS = 333,
116      L1 = 334,
117      L2 = 335,
118      IIH = 336,
119      LSP = 337,
120      SNP = 338,
121      CSNP = 339,
122      PSNP = 340,
123      STP = 341,
124      IPX = 342,
125      NETBEUI = 343,
126      LANE = 344,
127      LLC = 345,
128      METAC = 346,
129      BCC = 347,
130      SC = 348,
131      ILMIC = 349,
132      OAMF4EC = 350,
133      OAMF4SC = 351,
134      OAM = 352,
135      OAMF4 = 353,
136      CONNECTMSG = 354,
137      METACONNECT = 355,
138      VPI = 356,
139      VCI = 357,
140      RADIO = 358,
141      FISU = 359,
142      LSSU = 360,
143      MSU = 361,
144      HFISU = 362,
145      HLSSU = 363,
146      HMSU = 364,
147      SIO = 365,
148      OPC = 366,
149      DPC = 367,
150      SLS = 368,
151      HSIO = 369,
152      HOPC = 370,
153      HDPC = 371,
154      HSLS = 372,
155      AND = 373,
156      OR = 374,
157      UMINUS = 375
158    };
159 #endif
160 /* Tokens.  */
161 #define DST 258
162 #define SRC 259
163 #define HOST 260
164 #define GATEWAY 261
165 #define NET 262
166 #define NETMASK 263
167 #define PORT 264
168 #define PORTRANGE 265
169 #define LESS 266
170 #define GREATER 267
171 #define PROTO 268
172 #define PROTOCHAIN 269
173 #define CBYTE 270
174 #define ARP 271
175 #define RARP 272
176 #define IP 273
177 #define SCTP 274
178 #define TCP 275
179 #define UDP 276
180 #define ICMP 277
181 #define IGMP 278
182 #define IGRP 279
183 #define PIM 280
184 #define VRRP 281
185 #define CARP 282
186 #define ATALK 283
187 #define AARP 284
188 #define DECNET 285
189 #define LAT 286
190 #define SCA 287
191 #define MOPRC 288
192 #define MOPDL 289
193 #define TK_BROADCAST 290
194 #define TK_MULTICAST 291
195 #define NUM 292
196 #define INBOUND 293
197 #define OUTBOUND 294
198 #define PF_IFNAME 295
199 #define PF_RSET 296
200 #define PF_RNR 297
201 #define PF_SRNR 298
202 #define PF_REASON 299
203 #define PF_ACTION 300
204 #define TYPE 301
205 #define SUBTYPE 302
206 #define DIR 303
207 #define ADDR1 304
208 #define ADDR2 305
209 #define ADDR3 306
210 #define ADDR4 307
211 #define RA 308
212 #define TA 309
213 #define LINK 310
214 #define GEQ 311
215 #define LEQ 312
216 #define NEQ 313
217 #define ID 314
218 #define EID 315
219 #define HID 316
220 #define HID6 317
221 #define AID 318
222 #define LSH 319
223 #define RSH 320
224 #define LEN 321
225 #define IPV6 322
226 #define ICMPV6 323
227 #define AH 324
228 #define ESP 325
229 #define VLAN 326
230 #define MPLS 327
231 #define PPPOED 328
232 #define PPPOES 329
233 #define ISO 330
234 #define ESIS 331
235 #define CLNP 332
236 #define ISIS 333
237 #define L1 334
238 #define L2 335
239 #define IIH 336
240 #define LSP 337
241 #define SNP 338
242 #define CSNP 339
243 #define PSNP 340
244 #define STP 341
245 #define IPX 342
246 #define NETBEUI 343
247 #define LANE 344
248 #define LLC 345
249 #define METAC 346
250 #define BCC 347
251 #define SC 348
252 #define ILMIC 349
253 #define OAMF4EC 350
254 #define OAMF4SC 351
255 #define OAM 352
256 #define OAMF4 353
257 #define CONNECTMSG 354
258 #define METACONNECT 355
259 #define VPI 356
260 #define VCI 357
261 #define RADIO 358
262 #define FISU 359
263 #define LSSU 360
264 #define MSU 361
265 #define HFISU 362
266 #define HLSSU 363
267 #define HMSU 364
268 #define SIO 365
269 #define OPC 366
270 #define DPC 367
271 #define SLS 368
272 #define HSIO 369
273 #define HOPC 370
274 #define HDPC 371
275 #define HSLS 372
276 #define AND 373
277 #define OR 374
278 #define UMINUS 375
279 
280 
281 
282 
283 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
284 typedef union YYSTYPE
285 {
286 
287 /* Line 2068 of yacc.c  */
288 #line 242 "grammar.y"
289 
290 	int i;
291 	bpf_u_int32 h;
292 	u_char *e;
293 	char *s;
294 	struct stmt *stmt;
295 	struct arth *a;
296 	struct {
297 		struct qual q;
298 		int atmfieldtype;
299 		int mtp3fieldtype;
300 		struct block *b;
301 	} blk;
302 	struct block *rblk;
303 
304 
305 
306 /* Line 2068 of yacc.c  */
307 #line 308 "y.tab.h"
308 } YYSTYPE;
309 # define YYSTYPE_IS_TRIVIAL 1
310 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
311 # define YYSTYPE_IS_DECLARED 1
312 #endif
313 
314 extern YYSTYPE pcap_lval;
315 
316 
317