libnl  3.2.14
ematch_syntax.h
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  ERROR = 258,
41  LOGIC = 259,
42  NOT = 260,
43  OPERAND = 261,
44  NUMBER = 262,
45  ALIGN = 263,
46  LAYER = 264,
47  KW_OPEN = 265,
48  KW_CLOSE = 266,
49  KW_PLUS = 267,
50  KW_MASK = 268,
51  KW_SHIFT = 269,
52  KW_AT = 270,
53  EMATCH_CMP = 271,
54  EMATCH_NBYTE = 272,
55  EMATCH_TEXT = 273,
56  EMATCH_META = 274,
57  KW_EQ = 275,
58  KW_GT = 276,
59  KW_LT = 277,
60  KW_FROM = 278,
61  KW_TO = 279,
62  META_RANDOM = 280,
63  META_LOADAVG_0 = 281,
64  META_LOADAVG_1 = 282,
65  META_LOADAVG_2 = 283,
66  META_DEV = 284,
67  META_PRIO = 285,
68  META_PROTO = 286,
69  META_PKTTYPE = 287,
70  META_PKTLEN = 288,
71  META_DATALEN = 289,
72  META_MACLEN = 290,
73  META_MARK = 291,
74  META_TCINDEX = 292,
75  META_RTCLASSID = 293,
76  META_RTIIF = 294,
77  META_SK_FAMILY = 295,
78  META_SK_STATE = 296,
79  META_SK_REUSE = 297,
80  META_SK_REFCNT = 298,
81  META_SK_RCVBUF = 299,
82  META_SK_SNDBUF = 300,
83  META_SK_SHUTDOWN = 301,
84  META_SK_PROTO = 302,
85  META_SK_TYPE = 303,
86  META_SK_RMEM_ALLOC = 304,
87  META_SK_WMEM_ALLOC = 305,
88  META_SK_WMEM_QUEUED = 306,
89  META_SK_RCV_QLEN = 307,
90  META_SK_SND_QLEN = 308,
91  META_SK_ERR_QLEN = 309,
92  META_SK_FORWARD_ALLOCS = 310,
93  META_SK_ALLOCS = 311,
94  META_SK_ROUTE_CAPS = 312,
95  META_SK_HASH = 313,
96  META_SK_LINGERTIME = 314,
97  META_SK_ACK_BACKLOG = 315,
98  META_SK_MAX_ACK_BACKLOG = 316,
99  META_SK_PRIO = 317,
100  META_SK_RCVLOWAT = 318,
101  META_SK_RCVTIMEO = 319,
102  META_SK_SNDTIMEO = 320,
103  META_SK_SENDMSG_OFF = 321,
104  META_SK_WRITE_PENDING = 322,
105  META_VLAN = 323,
106  META_RXHASH = 324,
107  META_DEVNAME = 325,
108  META_SK_BOUND_IF = 326,
109  STR = 327,
110  QUOTED = 328
111  };
112 #endif
113 /* Tokens. */
114 #define ERROR 258
115 #define LOGIC 259
116 #define NOT 260
117 #define OPERAND 261
118 #define NUMBER 262
119 #define ALIGN 263
120 #define LAYER 264
121 #define KW_OPEN 265
122 #define KW_CLOSE 266
123 #define KW_PLUS 267
124 #define KW_MASK 268
125 #define KW_SHIFT 269
126 #define KW_AT 270
127 #define EMATCH_CMP 271
128 #define EMATCH_NBYTE 272
129 #define EMATCH_TEXT 273
130 #define EMATCH_META 274
131 #define KW_EQ 275
132 #define KW_GT 276
133 #define KW_LT 277
134 #define KW_FROM 278
135 #define KW_TO 279
136 #define META_RANDOM 280
137 #define META_LOADAVG_0 281
138 #define META_LOADAVG_1 282
139 #define META_LOADAVG_2 283
140 #define META_DEV 284
141 #define META_PRIO 285
142 #define META_PROTO 286
143 #define META_PKTTYPE 287
144 #define META_PKTLEN 288
145 #define META_DATALEN 289
146 #define META_MACLEN 290
147 #define META_MARK 291
148 #define META_TCINDEX 292
149 #define META_RTCLASSID 293
150 #define META_RTIIF 294
151 #define META_SK_FAMILY 295
152 #define META_SK_STATE 296
153 #define META_SK_REUSE 297
154 #define META_SK_REFCNT 298
155 #define META_SK_RCVBUF 299
156 #define META_SK_SNDBUF 300
157 #define META_SK_SHUTDOWN 301
158 #define META_SK_PROTO 302
159 #define META_SK_TYPE 303
160 #define META_SK_RMEM_ALLOC 304
161 #define META_SK_WMEM_ALLOC 305
162 #define META_SK_WMEM_QUEUED 306
163 #define META_SK_RCV_QLEN 307
164 #define META_SK_SND_QLEN 308
165 #define META_SK_ERR_QLEN 309
166 #define META_SK_FORWARD_ALLOCS 310
167 #define META_SK_ALLOCS 311
168 #define META_SK_ROUTE_CAPS 312
169 #define META_SK_HASH 313
170 #define META_SK_LINGERTIME 314
171 #define META_SK_ACK_BACKLOG 315
172 #define META_SK_MAX_ACK_BACKLOG 316
173 #define META_SK_PRIO 317
174 #define META_SK_RCVLOWAT 318
175 #define META_SK_RCVTIMEO 319
176 #define META_SK_SNDTIMEO 320
177 #define META_SK_SENDMSG_OFF 321
178 #define META_SK_WRITE_PENDING 322
179 #define META_VLAN 323
180 #define META_RXHASH 324
181 #define META_DEVNAME 325
182 #define META_SK_BOUND_IF 326
183 #define STR 327
184 #define QUOTED 328
185 
186 
187 
188 
189 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
190 typedef union YYSTYPE
191 {
192 
193 /* Line 2068 of yacc.c */
194 #line 39 "route/cls/ematch_syntax.y"
195 
196  struct tcf_em_cmp cmp;
197  struct ematch_quoted q;
198  struct rtnl_ematch * e;
199  struct rtnl_pktloc * loc;
200  struct rtnl_meta_value *mv;
201  uint32_t i;
202  uint64_t i64;
203  char * s;
204 
205 
206 
207 /* Line 2068 of yacc.c */
208 #line 209 "route/cls/ematch_syntax.h"
209 } YYSTYPE;
210 # define YYSTYPE_IS_TRIVIAL 1
211 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
212 # define YYSTYPE_IS_DECLARED 1
213 #endif
214 
215 
216 
217