⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grammar.c

📁 Windows XP下的抓包程序实现
💻 C
📖 第 1 页 / 共 5 页
字号:
	struct block *rblk;} YYSTYPE;/* Line 196 of yacc.c.  */#line 398 "y.tab.c"# define yystype YYSTYPE /* obsolescent; will be withdrawn */# define YYSTYPE_IS_DECLARED 1# define YYSTYPE_IS_TRIVIAL 1#endif/* Copy the second part of user declarations.  *//* Line 219 of yacc.c.  */#line 410 "y.tab.c"#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)# define YYSIZE_T __SIZE_TYPE__#endif#if ! defined (YYSIZE_T) && defined (size_t)# define YYSIZE_T size_t#endif#if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))# include <stddef.h> /* INFRINGES ON USER NAME SPACE */# define YYSIZE_T size_t#endif#if ! defined (YYSIZE_T)# define YYSIZE_T unsigned int#endif#ifndef YY_# if YYENABLE_NLS#  if ENABLE_NLS#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */#   define YY_(msgid) dgettext ("bison-runtime", msgid)#  endif# endif# ifndef YY_#  define YY_(msgid) msgid# endif#endif#if ! defined (yyoverflow) || YYERROR_VERBOSE/* The parser invokes alloca or malloc; define the necessary symbols.  */# ifdef YYSTACK_USE_ALLOCA#  if YYSTACK_USE_ALLOCA#   ifdef __GNUC__#    define YYSTACK_ALLOC __builtin_alloca#   else#    define YYSTACK_ALLOC alloca#    if defined (__STDC__) || defined (__cplusplus)#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */#     define YYINCLUDED_STDLIB_H#    endif#   endif#  endif# endif# ifdef YYSTACK_ALLOC   /* Pacify GCC's `empty if-body' warning. */#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)#  ifndef YYSTACK_ALLOC_MAXIMUM    /* The OS might guarantee only one guard page at the bottom of the stack,       and a page size can be as small as 4096 bytes.  So we cannot safely       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number       to allow for a few compiler-allocated temporary stack slots.  */#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */#  endif# else#  define YYSTACK_ALLOC YYMALLOC#  define YYSTACK_FREE YYFREE#  ifndef YYSTACK_ALLOC_MAXIMUM#   define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)#  endif#  ifdef __cplusplusextern "C" {#  endif#  ifndef YYMALLOC#   define YYMALLOC malloc#   if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \	&& (defined (__STDC__) || defined (__cplusplus)))void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */#   endif#  endif#  ifndef YYFREE#   define YYFREE free#   if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \	&& (defined (__STDC__) || defined (__cplusplus)))void free (void *); /* INFRINGES ON USER NAME SPACE */#   endif#  endif#  ifdef __cplusplus}#  endif# endif#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */#if (! defined (yyoverflow) \     && (! defined (__cplusplus) \	 || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))/* A type that is properly aligned for any stack member.  */union yyalloc{  short int yyss;  YYSTYPE yyvs;  };/* The size of the maximum gap between one aligned stack and the next.  */# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)/* The size of an array large to enough to hold all stacks, each with   N elements.  */# define YYSTACK_BYTES(N) \     ((N) * (sizeof (short int) + sizeof (YYSTYPE))			\      + YYSTACK_GAP_MAXIMUM)/* Copy COUNT objects from FROM to TO.  The source and destination do   not overlap.  */# ifndef YYCOPY#  if defined (__GNUC__) && 1 < __GNUC__#   define YYCOPY(To, From, Count) \      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))#  else#   define YYCOPY(To, From, Count)		\      do					\	{					\	  YYSIZE_T yyi;				\	  for (yyi = 0; yyi < (Count); yyi++)	\	    (To)[yyi] = (From)[yyi];		\	}					\      while (0)#  endif# endif/* Relocate STACK from its old location to the new one.  The   local variables YYSIZE and YYSTACKSIZE give the old and new number of   elements in the stack, and YYPTR gives the new location of the   stack.  Advance YYPTR to a properly aligned location for the next   stack.  */# define YYSTACK_RELOCATE(Stack)					\    do									\      {									\	YYSIZE_T yynewbytes;						\	YYCOPY (&yyptr->Stack, Stack, yysize);				\	Stack = &yyptr->Stack;						\	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \	yyptr += yynewbytes / sizeof (*yyptr);				\      }									\    while (0)#endif#if defined (__STDC__) || defined (__cplusplus)   typedef signed char yysigned_char;#else   typedef short int yysigned_char;#endif/* YYFINAL -- State number of the termination state. */#define YYFINAL  3/* YYLAST -- Last index in YYTABLE.  */#define YYLAST   591/* YYNTOKENS -- Number of terminals. */#define YYNTOKENS  116/* YYNNTS -- Number of nonterminals. */#define YYNNTS  40/* YYNRULES -- Number of rules. */#define YYNRULES  182/* YYNRULES -- Number of states. */#define YYNSTATES  250/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */#define YYUNDEFTOK  2#define YYMAXUTOK   355#define YYTRANSLATE(YYX)						\  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */static const unsigned char yytranslate[] ={       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,   100,     2,     2,     2,     2,   102,     2,     109,   108,   105,   103,     2,   104,     2,   106,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,   115,     2,     112,   111,   110,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,   113,     2,   114,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,   101,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     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,   107};#if YYDEBUG/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in   YYRHS.  */static const unsigned short int yyprhs[] ={       0,     0,     3,     6,     8,     9,    11,    15,    19,    23,      27,    29,    31,    33,    35,    39,    41,    45,    49,    51,      55,    57,    59,    61,    64,    66,    68,    70,    74,    78,      80,    82,    84,    87,    91,    94,    97,   100,   103,   106,     109,   113,   115,   119,   123,   125,   127,   129,   132,   135,     137,   138,   140,   142,   146,   150,   154,   158,   160,   162,     164,   166,   168,   170,   172,   174,   176,   178,   180,   182,     184,   186,   188,   190,   192,   194,   196,   198,   200,   202,     204,   206,   208,   210,   212,   214,   216,   218,   220,   222,     224,   226,   228,   230,   232,   234,   236,   238,   240,   242,     244,   247,   250,   253,   256,   261,   263,   265,   268,   270,     273,   275,   277,   279,   281,   284,   287,   290,   293,   296,     299,   301,   303,   305,   307,   309,   311,   313,   315,   317,     319,   321,   326,   333,   337,   341,   345,   349,   353,   357,     361,   365,   368,   372,   374,   376,   378,   380,   382,   384,     386,   390,   392,   394,   396,   398,   400,   402,   404,   406,     408,   410,   412,   414,   416,   418,   420,   423,   426,   430,     432,   434,   438,   440,   442,   444,   446,   448,   451,   454,     458,   460,   462};/* YYRHS -- A `-1'-separated list of the rules' RHS. */static const short int yyrhs[] ={     117,     0,    -1,   118,   119,    -1,   118,    -1,    -1,   128,      -1,   119,   120,   128,    -1,   119,   120,   122,    -1,   119,     121,   128,    -1,   119,   121,   122,    -1,    98,    -1,    99,      -1,   123,    -1,   145,    -1,   125,   126,   108,    -1,    49,      -1,    51,   106,    36,    -1,    51,     8,    51,    -1,    51,      -1,    52,   106,    36,    -1,    52,    -1,    50,    -1,    53,      -1,   124,   122,    -1,   100,    -1,   109,    -1,   123,    -1,     127,   120,   122,    -1,   127,   121,   122,    -1,   145,    -1,     126,    -1,   130,    -1,   124,   128,    -1,   131,   132,   133,      -1,   131,   132,    -1,   131,   133,    -1,   131,    13,    -1,     131,    14,    -1,   131,   134,    -1,   129,   122,    -1,   125,     119,   108,    -1,   135,    -1,   142,   140,   142,    -1,   142,     141,   142,    -1,   136,    -1,   146,    -1,   147,    -1,   148,     149,    -1,   152,   153,    -1,   135,    -1,    -1,     4,    -1,       3,    -1,     4,    99,     3,    -1,     3,    99,     4,    -1,       4,    98,     3,    -1,     3,    98,     4,    -1,     5,    -1,       7,    -1,     9,    -1,    10,    -1,     6,    -1,    45,    -1,      18,    -1,    16,    -1,    17,    -1,    19,    -1,    20,    -1,      21,    -1,    22,    -1,    23,    -1,    24,    -1,    25,    -1,      26,    -1,    27,    -1,    28,    -1,    29,    -1,    30,    -1,      31,    -1,    33,    -1,    32,    -1,    57,    -1,    58,    -1,      59,    -1,    60,    -1,    65,    -1,    66,    -1,    68,    -1,      69,    -1,    70,    -1,    71,    -1,    72,    -1,    73,    -1,      75,    -1,    74,    -1,    67,    -1,    76,    -1,    77,    -1,      78,    -1,    93,    -1,   131,    34,    -1,   131,    35,    -1,      11,    36,    -1,    12,    36,    -1,    15,    36,   144,    36,      -1,    37,    -1,    38,    -1,    61,   145,    -1,    61,    -1,      62,   145,    -1,    62,    -1,    63,    -1,    64,    -1,   137,      -1,    39,    49,    -1,    40,    49,    -1,    41,    36,    -1,      42,    36,    -1,    43,   138,    -1,    44,   139,    -1,    36,      -1,    49,    -1,    49,    -1,   110,    -1,    46,    -1,   111,      -1,    47,    -1,   112,    -1,    48,    -1,   145,    -1,   143,      -1,   135,   113,   142,   114,    -1,   135,   113,   142,   115,      36,   114,    -1,   142,   103,   142,    -1,   142,   104,   142,      -1,   142,   105,   142,    -1,   142,   106,   142,    -1,   142,     102,   142,    -1,   142,   101,   142,    -1,   142,    54,   142,      -1,   142,    55,   142,    -1,   104,   142,    -1,   125,   143,     108,    -1,    56,    -1,   102,    -1,   101,    -1,   112,    -1,     110,    -1,   111,    -1,    36,    -1,   125,   145,   108,    -1,      79,    -1,    80,    -1,    81,    -1,    82,    -1,    85,    -1,      86,    -1,    83,    -1,    84,    -1,    87,    -1,    88,    -1,      89,    -1,    90,    -1,    91,    -1,    92,    -1,   150,    -1,     140,    36,    -1,   141,    36,    -1,   125,   151,   108,    -1,      36,    -1,   150,    -1,   151,   121,   150,    -1,    94,    -1,      95,    -1,    96,    -1,    97,    -1,   154,    -1,   140,    36,      -1,   141,    36,    -1,   125,   155,   108,    -1,    36,    -1,     154,    -1,   155,   121,   154,    -1};/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */static const unsigned short int yyrline[] ={       0,   160,   160,   164,   166,   168,   169,   170,   171,   172,     174,   176,   178,   179,   181,   183,   184,   186,   188,   193,     202,   211,   220,   229,   231,   233,   235,   236,   237,   239,     241,   243,   244,   246,   247,   248,   249,   250,   251,   253,     254,   255,   256,   258,   260,   261,   262,   263,   264,   267,     268,   271,   272,   273,   274,   275,   276,   279,   280,   281,     282,   285,   287,   288,   289,   290,   291,   292,   293,   294,     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,     326,   327,   328,   329,   330,   331,   332,   333,   334,   335,     336,   337,   338,   339,   342,   343,   344,   345,   346,   347,     350,   351,   364,   375,   376,   377,   379,   380,   381,   383,     384,   386,   387,   388,   389,   390,   391,   392,   393,   394,     395,   396,   397,   398,   400,   401,   402,   403,   404,   406,     407,   409,   410,   411,   412,   413,   414,   415,   416,   418,     419,   420,   421,   424,   425,   427,   428,   429,   430,   432,     439,   440,   443,   444,   445,   446,   448,   449,   450,   451,     453,   462,   463};#endif#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.   First, the terminals, then, starting at YYNTOKENS, nonterminals. */static const char *const yytname[] ={  "$end", "error", "$undefined", "DST", "SRC", "HOST", "GATEWAY", "NET",  "NETMASK", "PORT", "PORTRANGE", "LESS", "GREATER", "PROTO", "PROTOCHAIN",  "CBYTE", "ARP", "RARP", "IP", "SCTP", "TCP", "UDP", "ICMP", "IGMP",  "IGRP", "PIM", "VRRP", "ATALK", "AARP", "DECNET", "LAT", "SCA", "MOPRC",  "MOPDL", "TK_BROADCAST", "TK_MULTICAST", "NUM", "INBOUND", "OUTBOUND",  "PF_IFNAME", "PF_RSET", "PF_RNR", "PF_SRNR", "PF_REASON", "PF_ACTION",  "LINK", "GEQ", "LEQ", "NEQ", "ID", "EID", "HID", "HID6", "AID", "LSH",  "RSH", "LEN", "IPV6", "ICMPV6", "AH", "ESP", "VLAN", "MPLS", "PPPOED",  "PPPOES", "ISO", "ESIS", "CLNP", "ISIS", "L1", "L2", "IIH", "LSP", "SNP",  "CSNP", "PSNP", "STP", "IPX", "NETBEUI", "LANE", "LLC", "METAC", "BCC",  "SC", "ILMIC", "OAMF4EC", "OAMF4SC", "OAM", "OAMF4", "CONNECTMSG",  "METACONNECT", "VPI", "VCI", "RADIO", "SIO", "OPC", "DPC", "SLS", "AND",  "OR", "'!'", "'|'", "'&'", "'+'", "'-'", "'*'", "'/'", "UMINUS", "')'",  "'('", "'>'", "'='", "'<'", "'['", "']'", "':'", "$accept", "prog",  "null", "expr", "and", "or", "id", "nid", "not", "paren", "pid", "qid",  "term", "head", "rterm", "pqual", "dqual", "aqual", "ndaqual", "pname",  "other", "pfvar", "reason", "action", "relop", "irelop", "arth", "narth",  "byteop", "pnum", "atmtype", "atmmultitype", "atmfield", "atmvalue",  "atmfieldvalue", "atmlistvalue", "mtp3field", "mtp3value",  "mtp3fieldvalue", "mtp3listvalue", 0};#endif# ifdef YYPRINT/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to   token YYLEX-NUM.  */static const unsigned short int yytoknum[] ={       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,     325,   326,   327,   328,   329,   330,   331,   332,   333,   334,     335,   336,   337,   338,   339,   340,   341,   342,   343,   344,     345,   346,   347,   348,   349,   350,   351,   352,   353,   354,      33,   124,    38,    43,    45,    42,    47,   355,    41,    40,      62,    61,    60,    91,    93,    58};# endif/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */static const unsigned char yyr1[] ={       0,   116,   117,   117,   118,   119,   119,   119,   119,   119,     120,   121,   122,   122,   122,   123,   123,   123,   123,   123,     123,   123,   123,   123,   124,   125,   126,   126,   126,   127,     127,   128,   128,   129,   129,   129,   129,   129,   129,   130,     130,   130,   130,   130,   130,   130,   130,   130,   130,   131,     131,   132,   132,   132,   132,   132,   132,   133,   133,   133,     133,   134,   135,   135,   135,   135,   135,   135,   135,   135,     135,   135,   135,   135,   135,   135,   135,   135,   135,   135,     135,   135,   135,   135,   135,   135,   135,   135,   135,   135,     135,   135,   135,   135,   135,   135,   135,   135,   135,   135,     136,   136,   136,   136,   136,   136,   136,   136,   136,   136,     136,   136,   136,   136,   137,   137,   137,   137,   137,   137,     138,   138,   139,   140,   140,   140,   141,   141,   141,   142,     142,   143,   143,   143,   143,   143,   143,   143,   143,   143,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -