summaryrefslogtreecommitdiffstats
path: root/src.gen/ematch_syntax.h
blob: e74aab1820873bbfdd5e7c5b7c73b6f65acf2c93 (plain)
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
/* A Bison parser, made by GNU Bison 3.0.2.  */

/* Bison interface for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2013 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.  */

#ifndef YY_EMATCH_ROUTE_CLS_EMATCH_SYNTAX_H_INCLUDED
# define YY_EMATCH_ROUTE_CLS_EMATCH_SYNTAX_H_INCLUDED
/* Debug traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int ematch_debug;
#endif

/* Token type.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
  enum yytokentype
  {
    ERROR = 258,
    LOGIC = 259,
    NOT = 260,
    OPERAND = 261,
    NUMBER = 262,
    ALIGN = 263,
    LAYER = 264,
    KW_OPEN = 265,
    KW_CLOSE = 266,
    KW_PLUS = 267,
    KW_MASK = 268,
    KW_SHIFT = 269,
    KW_AT = 270,
    EMATCH_CMP = 271,
    EMATCH_NBYTE = 272,
    EMATCH_TEXT = 273,
    EMATCH_META = 274,
    KW_EQ = 275,
    KW_GT = 276,
    KW_LT = 277,
    KW_FROM = 278,
    KW_TO = 279,
    META_RANDOM = 280,
    META_LOADAVG_0 = 281,
    META_LOADAVG_1 = 282,
    META_LOADAVG_2 = 283,
    META_DEV = 284,
    META_PRIO = 285,
    META_PROTO = 286,
    META_PKTTYPE = 287,
    META_PKTLEN = 288,
    META_DATALEN = 289,
    META_MACLEN = 290,
    META_MARK = 291,
    META_TCINDEX = 292,
    META_RTCLASSID = 293,
    META_RTIIF = 294,
    META_SK_FAMILY = 295,
    META_SK_STATE = 296,
    META_SK_REUSE = 297,
    META_SK_REFCNT = 298,
    META_SK_RCVBUF = 299,
    META_SK_SNDBUF = 300,
    META_SK_SHUTDOWN = 301,
    META_SK_PROTO = 302,
    META_SK_TYPE = 303,
    META_SK_RMEM_ALLOC = 304,
    META_SK_WMEM_ALLOC = 305,
    META_SK_WMEM_QUEUED = 306,
    META_SK_RCV_QLEN = 307,
    META_SK_SND_QLEN = 308,
    META_SK_ERR_QLEN = 309,
    META_SK_FORWARD_ALLOCS = 310,
    META_SK_ALLOCS = 311,
    META_SK_ROUTE_CAPS = 312,
    META_SK_HASH = 313,
    META_SK_LINGERTIME = 314,
    META_SK_ACK_BACKLOG = 315,
    META_SK_MAX_ACK_BACKLOG = 316,
    META_SK_PRIO = 317,
    META_SK_RCVLOWAT = 318,
    META_SK_RCVTIMEO = 319,
    META_SK_SNDTIMEO = 320,
    META_SK_SENDMSG_OFF = 321,
    META_SK_WRITE_PENDING = 322,
    META_VLAN = 323,
    META_RXHASH = 324,
    META_DEVNAME = 325,
    META_SK_BOUND_IF = 326,
    STR = 327,
    QUOTED = 328
  };
#endif
/* Tokens.  */
#define ERROR 258
#define LOGIC 259
#define NOT 260
#define OPERAND 261
#define NUMBER 262
#define ALIGN 263
#define LAYER 264
#define KW_OPEN 265
#define KW_CLOSE 266
#define KW_PLUS 267
#define KW_MASK 268
#define KW_SHIFT 269
#define KW_AT 270
#define EMATCH_CMP 271
#define EMATCH_NBYTE 272
#define EMATCH_TEXT 273
#define EMATCH_META 274
#define KW_EQ 275
#define KW_GT 276
#define KW_LT 277
#define KW_FROM 278
#define KW_TO 279
#define META_RANDOM 280
#define META_LOADAVG_0 281
#define META_LOADAVG_1 282
#define META_LOADAVG_2 283
#define META_DEV 284
#define META_PRIO 285
#define META_PROTO 286
#define META_PKTTYPE 287
#define META_PKTLEN 288
#define META_DATALEN 289
#define META_MACLEN 290
#define META_MARK 291
#define META_TCINDEX 292
#define META_RTCLASSID 293
#define META_RTIIF 294
#define META_SK_FAMILY 295
#define META_SK_STATE 296
#define META_SK_REUSE 297
#define META_SK_REFCNT 298
#define META_SK_RCVBUF 299
#define META_SK_SNDBUF 300
#define META_SK_SHUTDOWN 301
#define META_SK_PROTO 302
#define META_SK_TYPE 303
#define META_SK_RMEM_ALLOC 304
#define META_SK_WMEM_ALLOC 305
#define META_SK_WMEM_QUEUED 306
#define META_SK_RCV_QLEN 307
#define META_SK_SND_QLEN 308
#define META_SK_ERR_QLEN 309
#define META_SK_FORWARD_ALLOCS 310
#define META_SK_ALLOCS 311
#define META_SK_ROUTE_CAPS 312
#define META_SK_HASH 313
#define META_SK_LINGERTIME 314
#define META_SK_ACK_BACKLOG 315
#define META_SK_MAX_ACK_BACKLOG 316
#define META_SK_PRIO 317
#define META_SK_RCVLOWAT 318
#define META_SK_RCVTIMEO 319
#define META_SK_SNDTIMEO 320
#define META_SK_SENDMSG_OFF 321
#define META_SK_WRITE_PENDING 322
#define META_VLAN 323
#define META_RXHASH 324
#define META_DEVNAME 325
#define META_SK_BOUND_IF 326
#define STR 327
#define QUOTED 328

/* Value type.  */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE YYSTYPE;
union YYSTYPE
{
#line 39 "route/cls/ematch_syntax.y" /* yacc.c:1909  */

	struct tcf_em_cmp	cmp;
	struct ematch_quoted	q;
	struct rtnl_ematch *	e;
	struct rtnl_pktloc *	loc;
	struct rtnl_meta_value *mv;
	uint32_t		i;
	uint64_t		i64;
	char *			s;

#line 211 "route/cls/ematch_syntax.h" /* yacc.c:1909  */
};
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif



int ematch_parse (void *scanner, char **errp, struct nl_list_head *root);

#endif /* !YY_EMATCH_ROUTE_CLS_EMATCH_SYNTAX_H_INCLUDED  */