1/* A Bison parser, made by GNU Bison 2.1. */ 2 3/* Skeleton parser for Yacc-like parsing with Bison, 4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 Boston, MA 02110-1301, USA. */ 20 21/* As a special exception, when this file is copied by Bison into a 22 Bison output file, you may use that output file without restriction. 23 This special exception was added by the Free Software Foundation 24 in version 1.24 of Bison. */ 25 26/* Tokens. */ 27#ifndef YYTOKENTYPE 28# define YYTOKENTYPE 29 /* Put the tokens into the symbol table, so that GDB and other debuggers 30 know about them. */ 31 enum yytokentype { 32 DST = 258, 33 SRC = 259, 34 HOST = 260, 35 GATEWAY = 261, 36 NET = 262, 37 NETMASK = 263, 38 PORT = 264, 39 PORTRANGE = 265, 40 LESS = 266, 41 GREATER = 267, 42 PROTO = 268, 43 PROTOCHAIN = 269, 44 CBYTE = 270, 45 ARP = 271, 46 RARP = 272, 47 IP = 273, 48 SCTP = 274, 49 TCP = 275, 50 UDP = 276, 51 ICMP = 277, 52 IGMP = 278, 53 IGRP = 279, 54 PIM = 280, 55 VRRP = 281, 56 ATALK = 282, 57 AARP = 283, 58 DECNET = 284, 59 LAT = 285, 60 SCA = 286, 61 MOPRC = 287, 62 MOPDL = 288, 63 TK_BROADCAST = 289, 64 TK_MULTICAST = 290, 65 NUM = 291, 66 INBOUND = 292, 67 OUTBOUND = 293, 68 PF_IFNAME = 294, 69 PF_RSET = 295, 70 PF_RNR = 296, 71 PF_SRNR = 297, 72 PF_REASON = 298, 73 PF_ACTION = 299, 74 LINK = 300, 75 GEQ = 301, 76 LEQ = 302, 77 NEQ = 303, 78 ID = 304, 79 EID = 305, 80 HID = 306, 81 HID6 = 307, 82 AID = 308, 83 LSH = 309, 84 RSH = 310, 85 LEN = 311, 86 IPV6 = 312, 87 ICMPV6 = 313, 88 AH = 314, 89 ESP = 315, 90 VLAN = 316, 91 MPLS = 317, 92 PPPOED = 318, 93 PPPOES = 319, 94 ISO = 320, 95 ESIS = 321, 96 CLNP = 322, 97 ISIS = 323, 98 L1 = 324, 99 L2 = 325, 100 IIH = 326, 101 LSP = 327, 102 SNP = 328, 103 CSNP = 329, 104 PSNP = 330, 105 STP = 331, 106 IPX = 332, 107 NETBEUI = 333, 108 LANE = 334, 109 LLC = 335, 110 METAC = 336, 111 BCC = 337, 112 SC = 338, 113 ILMIC = 339, 114 OAMF4EC = 340, 115 OAMF4SC = 341, 116 OAM = 342, 117 OAMF4 = 343, 118 CONNECTMSG = 344, 119 METACONNECT = 345, 120 VPI = 346, 121 VCI = 347, 122 RADIO = 348, 123 FISU = 349, 124 LSSU = 350, 125 MSU = 351, 126 SIO = 352, 127 OPC = 353, 128 DPC = 354, 129 SLS = 355, 130 AND = 356, 131 OR = 357, 132 UMINUS = 358 133 }; 134#endif 135/* Tokens. */ 136#define DST 258 137#define SRC 259 138#define HOST 260 139#define GATEWAY 261 140#define NET 262 141#define NETMASK 263 142#define PORT 264 143#define PORTRANGE 265 144#define LESS 266 145#define GREATER 267 146#define PROTO 268 147#define PROTOCHAIN 269 148#define CBYTE 270 149#define ARP 271 150#define RARP 272 151#define IP 273 152#define SCTP 274 153#define TCP 275 154#define UDP 276 155#define ICMP 277 156#define IGMP 278 157#define IGRP 279 158#define PIM 280 159#define VRRP 281 160#define ATALK 282 161#define AARP 283 162#define DECNET 284 163#define LAT 285 164#define SCA 286 165#define MOPRC 287 166#define MOPDL 288 167#define TK_BROADCAST 289 168#define TK_MULTICAST 290 169#define NUM 291 170#define INBOUND 292 171#define OUTBOUND 293 172#define PF_IFNAME 294 173#define PF_RSET 295 174#define PF_RNR 296 175#define PF_SRNR 297 176#define PF_REASON 298 177#define PF_ACTION 299 178#define LINK 300 179#define GEQ 301 180#define LEQ 302 181#define NEQ 303 182#define ID 304 183#define EID 305 184#define HID 306 185#define HID6 307 186#define AID 308 187#define LSH 309 188#define RSH 310 189#define LEN 311 190#define IPV6 312 191#define ICMPV6 313 192#define AH 314 193#define ESP 315 194#define VLAN 316 195#define MPLS 317 196#define PPPOED 318 197#define PPPOES 319 198#define ISO 320 199#define ESIS 321 200#define CLNP 322 201#define ISIS 323 202#define L1 324 203#define L2 325 204#define IIH 326 205#define LSP 327 206#define SNP 328 207#define CSNP 329 208#define PSNP 330 209#define STP 331 210#define IPX 332 211#define NETBEUI 333 212#define LANE 334 213#define LLC 335 214#define METAC 336 215#define BCC 337 216#define SC 338 217#define ILMIC 339 218#define OAMF4EC 340 219#define OAMF4SC 341 220#define OAM 342 221#define OAMF4 343 222#define CONNECTMSG 344 223#define METACONNECT 345 224#define VPI 346 225#define VCI 347 226#define RADIO 348 227#define FISU 349 228#define LSSU 350 229#define MSU 351 230#define SIO 352 231#define OPC 353 232#define DPC 354 233#define SLS 355 234#define AND 356 235#define OR 357 236#define UMINUS 358 237 238 239 240 241#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) 242#line 138 "grammar.y" 243typedef union YYSTYPE { 244 int i; 245 bpf_u_int32 h; 246 u_char *e; 247 char *s; 248 struct stmt *stmt; 249 struct arth *a; 250 struct { 251 struct qual q; 252 int atmfieldtype; 253 int mtp3fieldtype; 254 struct block *b; 255 } blk; 256 struct block *rblk; 257} YYSTYPE; 258/* Line 1447 of yacc.c. */ 259#line 260 "y.tab.h" 260# define yystype YYSTYPE /* obsolescent; will be withdrawn */ 261# define YYSTYPE_IS_DECLARED 1 262# define YYSTYPE_IS_TRIVIAL 1 263#endif 264 265extern YYSTYPE pcap_lval; 266 267 268 269