aboutsummaryrefslogtreecommitdiff
path: root/grammar.h
diff options
context:
space:
mode:
Diffstat (limited to 'grammar.h')
-rw-r--r--grammar.h386
1 files changed, 137 insertions, 249 deletions
diff --git a/grammar.h b/grammar.h
index b4cfd190..97f546a5 100644
--- a/grammar.h
+++ b/grammar.h
@@ -1,8 +1,8 @@
-/* A Bison parser, made by GNU Bison 3.5.1. */
+/* A Bison parser, made by GNU Bison 3.8.2. */
/* Bison interface for Yacc-like parsers in C
- Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
@@ -16,7 +16,7 @@
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/>. */
+ along with this program. If not, see <https://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
@@ -31,8 +31,9 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
-/* Undocumented macros, especially those whose name start with YY_,
- are private implementation details. Do not rely on them. */
+/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
+ especially those whose name start with YY_ or yy_. They are
+ private implementation details that can be changed or removed. */
#ifndef YY_PCAP_GRAMMAR_H_INCLUDED
# define YY_PCAP_GRAMMAR_H_INCLUDED
@@ -44,260 +45,145 @@
extern int pcap_debug;
#endif
-/* Token type. */
+/* Token kinds. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
- DST = 258,
- SRC = 259,
- HOST = 260,
- GATEWAY = 261,
- NET = 262,
- NETMASK = 263,
- PORT = 264,
- PORTRANGE = 265,
- LESS = 266,
- GREATER = 267,
- PROTO = 268,
- PROTOCHAIN = 269,
- CBYTE = 270,
- ARP = 271,
- RARP = 272,
- IP = 273,
- SCTP = 274,
- TCP = 275,
- UDP = 276,
- ICMP = 277,
- IGMP = 278,
- IGRP = 279,
- PIM = 280,
- VRRP = 281,
- CARP = 282,
- ATALK = 283,
- AARP = 284,
- DECNET = 285,
- LAT = 286,
- SCA = 287,
- MOPRC = 288,
- MOPDL = 289,
- TK_BROADCAST = 290,
- TK_MULTICAST = 291,
- NUM = 292,
- INBOUND = 293,
- OUTBOUND = 294,
- PF_IFNAME = 295,
- PF_RSET = 296,
- PF_RNR = 297,
- PF_SRNR = 298,
- PF_REASON = 299,
- PF_ACTION = 300,
- TYPE = 301,
- SUBTYPE = 302,
- DIR = 303,
- ADDR1 = 304,
- ADDR2 = 305,
- ADDR3 = 306,
- ADDR4 = 307,
- RA = 308,
- TA = 309,
- LINK = 310,
- GEQ = 311,
- LEQ = 312,
- NEQ = 313,
- ID = 314,
- EID = 315,
- HID = 316,
- HID6 = 317,
- AID = 318,
- LSH = 319,
- RSH = 320,
- LEN = 321,
- IPV6 = 322,
- ICMPV6 = 323,
- AH = 324,
- ESP = 325,
- VLAN = 326,
- MPLS = 327,
- PPPOED = 328,
- PPPOES = 329,
- GENEVE = 330,
- ISO = 331,
- ESIS = 332,
- CLNP = 333,
- ISIS = 334,
- L1 = 335,
- L2 = 336,
- IIH = 337,
- LSP = 338,
- SNP = 339,
- CSNP = 340,
- PSNP = 341,
- STP = 342,
- IPX = 343,
- NETBEUI = 344,
- LANE = 345,
- LLC = 346,
- METAC = 347,
- BCC = 348,
- SC = 349,
- ILMIC = 350,
- OAMF4EC = 351,
- OAMF4SC = 352,
- OAM = 353,
- OAMF4 = 354,
- CONNECTMSG = 355,
- METACONNECT = 356,
- VPI = 357,
- VCI = 358,
- RADIO = 359,
- FISU = 360,
- LSSU = 361,
- MSU = 362,
- HFISU = 363,
- HLSSU = 364,
- HMSU = 365,
- SIO = 366,
- OPC = 367,
- DPC = 368,
- SLS = 369,
- HSIO = 370,
- HOPC = 371,
- HDPC = 372,
- HSLS = 373,
- LEX_ERROR = 374,
- OR = 375,
- AND = 376,
- UMINUS = 377
+ YYEMPTY = -2,
+ YYEOF = 0, /* "end of file" */
+ YYerror = 256, /* error */
+ YYUNDEF = 257, /* "invalid token" */
+ DST = 258, /* DST */
+ SRC = 259, /* SRC */
+ HOST = 260, /* HOST */
+ GATEWAY = 261, /* GATEWAY */
+ NET = 262, /* NET */
+ NETMASK = 263, /* NETMASK */
+ PORT = 264, /* PORT */
+ PORTRANGE = 265, /* PORTRANGE */
+ LESS = 266, /* LESS */
+ GREATER = 267, /* GREATER */
+ PROTO = 268, /* PROTO */
+ PROTOCHAIN = 269, /* PROTOCHAIN */
+ CBYTE = 270, /* CBYTE */
+ ARP = 271, /* ARP */
+ RARP = 272, /* RARP */
+ IP = 273, /* IP */
+ SCTP = 274, /* SCTP */
+ TCP = 275, /* TCP */
+ UDP = 276, /* UDP */
+ ICMP = 277, /* ICMP */
+ IGMP = 278, /* IGMP */
+ IGRP = 279, /* IGRP */
+ PIM = 280, /* PIM */
+ VRRP = 281, /* VRRP */
+ CARP = 282, /* CARP */
+ ATALK = 283, /* ATALK */
+ AARP = 284, /* AARP */
+ DECNET = 285, /* DECNET */
+ LAT = 286, /* LAT */
+ SCA = 287, /* SCA */
+ MOPRC = 288, /* MOPRC */
+ MOPDL = 289, /* MOPDL */
+ TK_BROADCAST = 290, /* TK_BROADCAST */
+ TK_MULTICAST = 291, /* TK_MULTICAST */
+ NUM = 292, /* NUM */
+ INBOUND = 293, /* INBOUND */
+ OUTBOUND = 294, /* OUTBOUND */
+ IFINDEX = 295, /* IFINDEX */
+ PF_IFNAME = 296, /* PF_IFNAME */
+ PF_RSET = 297, /* PF_RSET */
+ PF_RNR = 298, /* PF_RNR */
+ PF_SRNR = 299, /* PF_SRNR */
+ PF_REASON = 300, /* PF_REASON */
+ PF_ACTION = 301, /* PF_ACTION */
+ TYPE = 302, /* TYPE */
+ SUBTYPE = 303, /* SUBTYPE */
+ DIR = 304, /* DIR */
+ ADDR1 = 305, /* ADDR1 */
+ ADDR2 = 306, /* ADDR2 */
+ ADDR3 = 307, /* ADDR3 */
+ ADDR4 = 308, /* ADDR4 */
+ RA = 309, /* RA */
+ TA = 310, /* TA */
+ LINK = 311, /* LINK */
+ GEQ = 312, /* GEQ */
+ LEQ = 313, /* LEQ */
+ NEQ = 314, /* NEQ */
+ ID = 315, /* ID */
+ EID = 316, /* EID */
+ HID = 317, /* HID */
+ HID6 = 318, /* HID6 */
+ AID = 319, /* AID */
+ LSH = 320, /* LSH */
+ RSH = 321, /* RSH */
+ LEN = 322, /* LEN */
+ IPV6 = 323, /* IPV6 */
+ ICMPV6 = 324, /* ICMPV6 */
+ AH = 325, /* AH */
+ ESP = 326, /* ESP */
+ VLAN = 327, /* VLAN */
+ MPLS = 328, /* MPLS */
+ PPPOED = 329, /* PPPOED */
+ PPPOES = 330, /* PPPOES */
+ GENEVE = 331, /* GENEVE */
+ ISO = 332, /* ISO */
+ ESIS = 333, /* ESIS */
+ CLNP = 334, /* CLNP */
+ ISIS = 335, /* ISIS */
+ L1 = 336, /* L1 */
+ L2 = 337, /* L2 */
+ IIH = 338, /* IIH */
+ LSP = 339, /* LSP */
+ SNP = 340, /* SNP */
+ CSNP = 341, /* CSNP */
+ PSNP = 342, /* PSNP */
+ STP = 343, /* STP */
+ IPX = 344, /* IPX */
+ NETBEUI = 345, /* NETBEUI */
+ LANE = 346, /* LANE */
+ LLC = 347, /* LLC */
+ METAC = 348, /* METAC */
+ BCC = 349, /* BCC */
+ SC = 350, /* SC */
+ ILMIC = 351, /* ILMIC */
+ OAMF4EC = 352, /* OAMF4EC */
+ OAMF4SC = 353, /* OAMF4SC */
+ OAM = 354, /* OAM */
+ OAMF4 = 355, /* OAMF4 */
+ CONNECTMSG = 356, /* CONNECTMSG */
+ METACONNECT = 357, /* METACONNECT */
+ VPI = 358, /* VPI */
+ VCI = 359, /* VCI */
+ RADIO = 360, /* RADIO */
+ FISU = 361, /* FISU */
+ LSSU = 362, /* LSSU */
+ MSU = 363, /* MSU */
+ HFISU = 364, /* HFISU */
+ HLSSU = 365, /* HLSSU */
+ HMSU = 366, /* HMSU */
+ SIO = 367, /* SIO */
+ OPC = 368, /* OPC */
+ DPC = 369, /* DPC */
+ SLS = 370, /* SLS */
+ HSIO = 371, /* HSIO */
+ HOPC = 372, /* HOPC */
+ HDPC = 373, /* HDPC */
+ HSLS = 374, /* HSLS */
+ LEX_ERROR = 375, /* LEX_ERROR */
+ OR = 376, /* OR */
+ AND = 377, /* AND */
+ UMINUS = 378 /* UMINUS */
};
+ typedef enum yytokentype yytoken_kind_t;
#endif
-/* Tokens. */
-#define DST 258
-#define SRC 259
-#define HOST 260
-#define GATEWAY 261
-#define NET 262
-#define NETMASK 263
-#define PORT 264
-#define PORTRANGE 265
-#define LESS 266
-#define GREATER 267
-#define PROTO 268
-#define PROTOCHAIN 269
-#define CBYTE 270
-#define ARP 271
-#define RARP 272
-#define IP 273
-#define SCTP 274
-#define TCP 275
-#define UDP 276
-#define ICMP 277
-#define IGMP 278
-#define IGRP 279
-#define PIM 280
-#define VRRP 281
-#define CARP 282
-#define ATALK 283
-#define AARP 284
-#define DECNET 285
-#define LAT 286
-#define SCA 287
-#define MOPRC 288
-#define MOPDL 289
-#define TK_BROADCAST 290
-#define TK_MULTICAST 291
-#define NUM 292
-#define INBOUND 293
-#define OUTBOUND 294
-#define PF_IFNAME 295
-#define PF_RSET 296
-#define PF_RNR 297
-#define PF_SRNR 298
-#define PF_REASON 299
-#define PF_ACTION 300
-#define TYPE 301
-#define SUBTYPE 302
-#define DIR 303
-#define ADDR1 304
-#define ADDR2 305
-#define ADDR3 306
-#define ADDR4 307
-#define RA 308
-#define TA 309
-#define LINK 310
-#define GEQ 311
-#define LEQ 312
-#define NEQ 313
-#define ID 314
-#define EID 315
-#define HID 316
-#define HID6 317
-#define AID 318
-#define LSH 319
-#define RSH 320
-#define LEN 321
-#define IPV6 322
-#define ICMPV6 323
-#define AH 324
-#define ESP 325
-#define VLAN 326
-#define MPLS 327
-#define PPPOED 328
-#define PPPOES 329
-#define GENEVE 330
-#define ISO 331
-#define ESIS 332
-#define CLNP 333
-#define ISIS 334
-#define L1 335
-#define L2 336
-#define IIH 337
-#define LSP 338
-#define SNP 339
-#define CSNP 340
-#define PSNP 341
-#define STP 342
-#define IPX 343
-#define NETBEUI 344
-#define LANE 345
-#define LLC 346
-#define METAC 347
-#define BCC 348
-#define SC 349
-#define ILMIC 350
-#define OAMF4EC 351
-#define OAMF4SC 352
-#define OAM 353
-#define OAMF4 354
-#define CONNECTMSG 355
-#define METACONNECT 356
-#define VPI 357
-#define VCI 358
-#define RADIO 359
-#define FISU 360
-#define LSSU 361
-#define MSU 362
-#define HFISU 363
-#define HLSSU 364
-#define HMSU 365
-#define SIO 366
-#define OPC 367
-#define DPC 368
-#define SLS 369
-#define HSIO 370
-#define HOPC 371
-#define HDPC 372
-#define HSLS 373
-#define LEX_ERROR 374
-#define OR 375
-#define AND 376
-#define UMINUS 377
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
-#line 291 "grammar.y"
+#line 349 "grammar.y"
int i;
bpf_u_int32 h;
@@ -312,7 +198,7 @@ union YYSTYPE
} blk;
struct block *rblk;
-#line 316 "grammar.h"
+#line 202 "grammar.h"
};
typedef union YYSTYPE YYSTYPE;
@@ -322,6 +208,8 @@ typedef union YYSTYPE YYSTYPE;
+
int pcap_parse (void *yyscanner, compiler_state_t *cstate);
+
#endif /* !YY_PCAP_GRAMMAR_H_INCLUDED */