version 1.1.1.1, 2012/02/21 22:39:10
|
version 1.1.1.2, 2014/06/15 16:37:11
|
Line 1
|
Line 1
|
|
/* A Bison parser, made by GNU Bison 2.6.2. */ |
|
|
/* A Bison parser, made by GNU Bison 2.4.1. */ | /* Bison implementation for Yacc-like parsers in C |
| |
/* Skeleton implementation for Bison's Yacc-like parsers in C | |
|
|
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 | Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. |
Free Software Foundation, Inc. | |
|
|
This program is free software: you can redistribute it and/or modify |
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 |
it under the terms of the GNU General Public License as published by |
Line 46
|
Line 44
|
#define YYBISON 1 |
#define YYBISON 1 |
|
|
/* Bison version. */ |
/* Bison version. */ |
#define YYBISON_VERSION "2.4.1" | #define YYBISON_VERSION "2.6.2" |
|
|
/* Skeleton name. */ |
/* Skeleton name. */ |
#define YYSKELETON_NAME "yacc.c" |
#define YYSKELETON_NAME "yacc.c" |
Line 60
|
Line 58
|
/* Pull parsers. */ |
/* Pull parsers. */ |
#define YYPULL 1 |
#define YYPULL 1 |
|
|
/* Using locations. */ |
|
#define YYLSP_NEEDED 0 |
|
|
|
|
|
|
|
/* Copy the first part of user declarations. */ |
/* Copy the first part of user declarations. */ |
| /* Line 336 of yacc.c */ |
/* Line 189 of yacc.c */ | |
#line 34 "parse.y" |
#line 34 "parse.y" |
|
|
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
Line 144 static int setkeymsg_addr __P((unsigned int, unsigned
|
Line 139 static int setkeymsg_addr __P((unsigned int, unsigned
|
static int setkeymsg_add __P((unsigned int, unsigned int, |
static int setkeymsg_add __P((unsigned int, unsigned int, |
struct addrinfo *, struct addrinfo *)); |
struct addrinfo *, struct addrinfo *)); |
|
|
|
/* Line 336 of yacc.c */ |
|
#line 144 "parse.c" |
|
|
/* Line 189 of yacc.c */ | # ifndef YY_NULL |
#line 150 "parse.c" | # if defined __cplusplus && 201103L <= __cplusplus |
| # define YY_NULL nullptr |
| # else |
| # define YY_NULL 0 |
| # endif |
| # endif |
|
|
/* Enabling traces. */ |
|
#ifndef YYDEBUG |
|
# define YYDEBUG 0 |
|
#endif |
|
|
|
/* Enabling verbose error messages. */ |
/* Enabling verbose error messages. */ |
#ifdef YYERROR_VERBOSE |
#ifdef YYERROR_VERBOSE |
# undef YYERROR_VERBOSE |
# undef YYERROR_VERBOSE |
Line 161 static int setkeymsg_add __P((unsigned int, unsigned i
|
Line 158 static int setkeymsg_add __P((unsigned int, unsigned i
|
# define YYERROR_VERBOSE 0 |
# define YYERROR_VERBOSE 0 |
#endif |
#endif |
|
|
/* Enabling the token table. */ | /* In a future release of Bison, this section will be replaced |
#ifndef YYTOKEN_TABLE | by #include "y.tab.h". */ |
# define YYTOKEN_TABLE 0 | #ifndef YY_Y_TAB_H |
| # define YY_Y_TAB_H |
| /* Enabling traces. */ |
| #ifndef YYDEBUG |
| # define YYDEBUG 0 |
#endif |
#endif |
|
#if YYDEBUG |
|
extern int yydebug; |
|
#endif |
|
|
|
|
/* Tokens. */ |
/* Tokens. */ |
#ifndef YYTOKENTYPE |
#ifndef YYTOKENTYPE |
# define YYTOKENTYPE |
# define YYTOKENTYPE |
Line 289 static int setkeymsg_add __P((unsigned int, unsigned i
|
Line 292 static int setkeymsg_add __P((unsigned int, unsigned i
|
|
|
|
|
|
|
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
typedef union YYSTYPE |
typedef union YYSTYPE |
{ |
{ |
| /* Line 350 of yacc.c */ |
/* Line 214 of yacc.c */ | |
#line 110 "parse.y" |
#line 110 "parse.y" |
|
|
int num; |
int num; |
Line 303 typedef union YYSTYPE
|
Line 304 typedef union YYSTYPE
|
struct addrinfo *res; |
struct addrinfo *res; |
|
|
|
|
| /* Line 350 of yacc.c */ |
/* Line 214 of yacc.c */ | |
#line 309 "parse.c" |
#line 309 "parse.c" |
} YYSTYPE; |
} YYSTYPE; |
# define YYSTYPE_IS_TRIVIAL 1 |
# define YYSTYPE_IS_TRIVIAL 1 |
Line 312 typedef union YYSTYPE
|
Line 312 typedef union YYSTYPE
|
# define YYSTYPE_IS_DECLARED 1 |
# define YYSTYPE_IS_DECLARED 1 |
#endif |
#endif |
|
|
|
extern YYSTYPE yylval; |
|
|
/* Copy the second part of user declarations. */ | #ifdef YYPARSE_PARAM |
| #if defined __STDC__ || defined __cplusplus |
| int yyparse (void *YYPARSE_PARAM); |
| #else |
| int yyparse (); |
| #endif |
| #else /* ! YYPARSE_PARAM */ |
| #if defined __STDC__ || defined __cplusplus |
| int yyparse (void); |
| #else |
| int yyparse (); |
| #endif |
| #endif /* ! YYPARSE_PARAM */ |
|
|
|
#endif /* !YY_Y_TAB_H */ |
|
|
/* Line 264 of yacc.c */ | /* Copy the second part of user declarations. */ |
#line 321 "parse.c" | |
|
|
|
/* Line 353 of yacc.c */ |
|
#line 337 "parse.c" |
|
|
#ifdef short |
#ifdef short |
# undef short |
# undef short |
#endif |
#endif |
Line 367 typedef short int yytype_int16;
|
Line 383 typedef short int yytype_int16;
|
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
|
|
#ifndef YY_ |
#ifndef YY_ |
# if YYENABLE_NLS | # if defined YYENABLE_NLS && YYENABLE_NLS |
# if ENABLE_NLS |
# if ENABLE_NLS |
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
# define YY_(msgid) dgettext ("bison-runtime", msgid) |
# define YY_(msgid) dgettext ("bison-runtime", msgid) |
Line 420 YYID (yyi)
|
Line 436 YYID (yyi)
|
# define alloca _alloca |
# define alloca _alloca |
# else |
# else |
# define YYSTACK_ALLOC alloca |
# define YYSTACK_ALLOC alloca |
# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# ifndef _STDLIB_H | /* Use EXIT_SUCCESS as a witness for stdlib.h. */ |
# define _STDLIB_H 1 | # ifndef EXIT_SUCCESS |
| # define EXIT_SUCCESS 0 |
# endif |
# endif |
# endif |
# endif |
# endif |
# endif |
Line 447 YYID (yyi)
|
Line 464 YYID (yyi)
|
# ifndef YYSTACK_ALLOC_MAXIMUM |
# ifndef YYSTACK_ALLOC_MAXIMUM |
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
# endif |
# endif |
# if (defined __cplusplus && ! defined _STDLIB_H \ | # if (defined __cplusplus && ! defined EXIT_SUCCESS \ |
&& ! ((defined YYMALLOC || defined malloc) \ |
&& ! ((defined YYMALLOC || defined malloc) \ |
&& (defined YYFREE || defined free))) |
&& (defined YYFREE || defined free))) |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# ifndef _STDLIB_H | # ifndef EXIT_SUCCESS |
# define _STDLIB_H 1 | # define EXIT_SUCCESS 0 |
# endif |
# endif |
# endif |
# endif |
# ifndef YYMALLOC |
# ifndef YYMALLOC |
# define YYMALLOC malloc |
# define YYMALLOC malloc |
# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
# endif |
# endif |
# endif |
# endif |
# ifndef YYFREE |
# ifndef YYFREE |
# define YYFREE free |
# define YYFREE free |
# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
void free (void *); /* INFRINGES ON USER NAME SPACE */ |
void free (void *); /* INFRINGES ON USER NAME SPACE */ |
# endif |
# endif |
Line 493 union yyalloc
|
Line 510 union yyalloc
|
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ |
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ |
+ YYSTACK_GAP_MAXIMUM) |
+ YYSTACK_GAP_MAXIMUM) |
|
|
/* Copy COUNT objects from FROM to TO. The source and destination do | # define YYCOPY_NEEDED 1 |
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 (YYID (0)) | |
# endif | |
# endif | |
|
|
/* Relocate STACK from its old location to the new one. The |
/* Relocate STACK from its old location to the new one. The |
local variables YYSIZE and YYSTACKSIZE give the old and new number of |
local variables YYSIZE and YYSTACKSIZE give the old and new number of |
Line 529 union yyalloc
|
Line 530 union yyalloc
|
|
|
#endif |
#endif |
|
|
|
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED |
|
/* Copy COUNT objects from SRC to DST. The source and destination do |
|
not overlap. */ |
|
# ifndef YYCOPY |
|
# if defined __GNUC__ && 1 < __GNUC__ |
|
# define YYCOPY(Dst, Src, Count) \ |
|
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) |
|
# else |
|
# define YYCOPY(Dst, Src, Count) \ |
|
do \ |
|
{ \ |
|
YYSIZE_T yyi; \ |
|
for (yyi = 0; yyi < (Count); yyi++) \ |
|
(Dst)[yyi] = (Src)[yyi]; \ |
|
} \ |
|
while (YYID (0)) |
|
# endif |
|
# endif |
|
#endif /* !YYCOPY_NEEDED */ |
|
|
/* YYFINAL -- State number of the termination state. */ |
/* YYFINAL -- State number of the termination state. */ |
#define YYFINAL 2 |
#define YYFINAL 2 |
/* YYLAST -- Last index in YYTABLE. */ |
/* YYLAST -- Last index in YYTABLE. */ |
Line 655 static const yytype_uint16 yyrline[] =
|
Line 676 static const yytype_uint16 yyrline[] =
|
}; |
}; |
#endif |
#endif |
|
|
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE | #if YYDEBUG || YYERROR_VERBOSE || 0 |
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
static const char *const yytname[] = |
static const char *const yytname[] = |
Line 678 static const char *const yytname[] =
|
Line 699 static const char *const yytname[] =
|
"spddump_command", "spdflush_command", "ipaddropts", "ipaddropt", |
"spddump_command", "spdflush_command", "ipaddropts", "ipaddropt", |
"ipaddr", "ipandport", "prefix", "portstr", "upper_spec", |
"ipaddr", "ipandport", "prefix", "portstr", "upper_spec", |
"upper_misc_spec", "context_spec", "policy_spec", "policy_requests", |
"upper_misc_spec", "context_spec", "policy_spec", "policy_requests", |
"exit_command", 0 | "exit_command", YY_NULL |
}; |
}; |
#endif |
#endif |
|
|
Line 726 static const yytype_uint8 yyr2[] =
|
Line 747 static const yytype_uint8 yyr2[] =
|
2 |
2 |
}; |
}; |
|
|
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state | /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. |
STATE-NUM when YYTABLE doesn't specify something else to do. Zero | Performed when YYTABLE doesn't specify something else to do. Zero |
means the default is an error. */ |
means the default is an error. */ |
static const yytype_uint8 yydefact[] = |
static const yytype_uint8 yydefact[] = |
{ |
{ |
Line 798 static const yytype_int8 yypgoto[] =
|
Line 819 static const yytype_int8 yypgoto[] =
|
|
|
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
positive, shift that token. If negative, reduce the rule which |
positive, shift that token. If negative, reduce the rule which |
number is the opposite. If zero, do what YYDEFACT says. | number is the opposite. If YYTABLE_NINF, syntax error. */ |
If YYTABLE_NINF, syntax error. */ | |
#define YYTABLE_NINF -1 |
#define YYTABLE_NINF -1 |
static const yytype_uint8 yytable[] = |
static const yytype_uint8 yytable[] = |
{ |
{ |
Line 823 static const yytype_uint8 yytable[] =
|
Line 843 static const yytype_uint8 yytable[] =
|
183, 185, 186, 187, 173 |
183, 185, 186, 187, 173 |
}; |
}; |
|
|
|
#define yypact_value_is_default(yystate) \ |
|
((yystate) == (-61)) |
|
|
|
#define yytable_value_is_error(yytable_value) \ |
|
YYID (0) |
|
|
static const yytype_uint8 yycheck[] = |
static const yytype_uint8 yycheck[] = |
{ |
{ |
60, 8, 3, 0, 26, 31, 32, 18, 46, 3, |
60, 8, 3, 0, 26, 31, 32, 18, 46, 3, |
Line 882 static const yytype_uint8 yystos[] =
|
Line 908 static const yytype_uint8 yystos[] =
|
|
|
/* Like YYERROR except do call yyerror. This remains here temporarily |
/* Like YYERROR except do call yyerror. This remains here temporarily |
to ease the transition to the new meaning of YYERROR, for GCC. |
to ease the transition to the new meaning of YYERROR, for GCC. |
Once GCC version 2 has supplanted version 1, this can go. */ | Once GCC version 2 has supplanted version 1, this can go. However, |
| YYFAIL appears to be in use. Nevertheless, it is formally deprecated |
| in Bison 2.4.2's NEWS entry, where a plan to phase it out is |
| discussed. */ |
|
|
#define YYFAIL goto yyerrlab |
#define YYFAIL goto yyerrlab |
|
#if defined YYFAIL |
|
/* This is here to suppress warnings from the GCC cpp's |
|
-Wunused-macros. Normally we don't worry about that warning, but |
|
some users do, and we want to make it easy for users to remove |
|
YYFAIL uses, which will produce warnings from Bison 2.5. */ |
|
#endif |
|
|
#define YYRECOVERING() (!!yyerrstatus) |
#define YYRECOVERING() (!!yyerrstatus) |
|
|
#define YYBACKUP(Token, Value) \ | #define YYBACKUP(Token, Value) \ |
do \ | do \ |
if (yychar == YYEMPTY && yylen == 1) \ | if (yychar == YYEMPTY) \ |
{ \ | { \ |
yychar = (Token); \ | yychar = (Token); \ |
yylval = (Value); \ | yylval = (Value); \ |
yytoken = YYTRANSLATE (yychar); \ | YYPOPSTACK (yylen); \ |
YYPOPSTACK (1); \ | yystate = *yyssp; \ |
goto yybackup; \ | goto yybackup; \ |
} \ | } \ |
else \ | else \ |
{ \ | { \ |
yyerror (YY_("syntax error: cannot back up")); \ |
yyerror (YY_("syntax error: cannot back up")); \ |
YYERROR; \ |
YYERROR; \ |
} \ |
} \ |
Line 909 while (YYID (0))
|
Line 944 while (YYID (0))
|
#define YYTERROR 1 |
#define YYTERROR 1 |
#define YYERRCODE 256 |
#define YYERRCODE 256 |
|
|
|
|
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. |
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. |
If N is 0, then set CURRENT to the empty location which ends |
If N is 0, then set CURRENT to the empty location which ends |
the previous symbol: RHS[0] (always defined). */ |
the previous symbol: RHS[0] (always defined). */ |
|
|
#define YYRHSLOC(Rhs, K) ((Rhs)[K]) |
|
#ifndef YYLLOC_DEFAULT |
#ifndef YYLLOC_DEFAULT |
# define YYLLOC_DEFAULT(Current, Rhs, N) \ | # define YYLLOC_DEFAULT(Current, Rhs, N) \ |
do \ | do \ |
if (YYID (N)) \ | if (YYID (N)) \ |
{ \ | { \ |
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ | (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ |
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ | (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ |
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \ | (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ |
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \ | (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ |
} \ | } \ |
else \ | else \ |
{ \ | { \ |
(Current).first_line = (Current).last_line = \ | (Current).first_line = (Current).last_line = \ |
YYRHSLOC (Rhs, 0).last_line; \ | YYRHSLOC (Rhs, 0).last_line; \ |
(Current).first_column = (Current).last_column = \ | (Current).first_column = (Current).last_column = \ |
YYRHSLOC (Rhs, 0).last_column; \ | YYRHSLOC (Rhs, 0).last_column; \ |
} \ | } \ |
while (YYID (0)) |
while (YYID (0)) |
#endif |
#endif |
|
|
|
#define YYRHSLOC(Rhs, K) ((Rhs)[K]) |
|
|
/* YY_LOCATION_PRINT -- Print the location on the stream. |
|
This macro was not mandated originally: define only if we know |
|
we won't break user code: when these are the locations we know. */ |
|
|
|
|
|
|
/* This macro is provided for backward compatibility. */ |
|
|
#ifndef YY_LOCATION_PRINT |
#ifndef YY_LOCATION_PRINT |
# if YYLTYPE_IS_TRIVIAL | # define YY_LOCATION_PRINT(File, Loc) ((void) 0) |
# define YY_LOCATION_PRINT(File, Loc) \ | |
fprintf (File, "%d.%d-%d.%d", \ | |
(Loc).first_line, (Loc).first_column, \ | |
(Loc).last_line, (Loc).last_column) | |
# else | |
# define YY_LOCATION_PRINT(File, Loc) ((void) 0) | |
# endif | |
#endif |
#endif |
|
|
|
|
Line 1003 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
|
Line 1030 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
|
YYSTYPE const * const yyvaluep; |
YYSTYPE const * const yyvaluep; |
#endif |
#endif |
{ |
{ |
|
FILE *yyo = yyoutput; |
|
YYUSE (yyo); |
if (!yyvaluep) |
if (!yyvaluep) |
return; |
return; |
# ifdef YYPRINT |
# ifdef YYPRINT |
Line 1140 int yydebug;
|
Line 1169 int yydebug;
|
# define YYMAXDEPTH 10000 |
# define YYMAXDEPTH 10000 |
#endif |
#endif |
|
|
|
|
|
|
#if YYERROR_VERBOSE |
#if YYERROR_VERBOSE |
|
|
Line 1243 yytnamerr (char *yyres, const char *yystr)
|
Line 1271 yytnamerr (char *yyres, const char *yystr)
|
} |
} |
# endif |
# endif |
|
|
/* Copy into YYRESULT an error message about the unexpected token | /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message |
YYCHAR while in state YYSTATE. Return the number of bytes copied, | about the unexpected token YYTOKEN for the state stack whose top is |
including the terminating null byte. If YYRESULT is null, do not | YYSSP. |
copy anything; just return the number of bytes that would be | |
copied. As a special case, return 0 if an ordinary "syntax error" | Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is |
message will do. Return YYSIZE_MAXIMUM if overflow occurs during | not large enough to hold the message. In that case, also set |
size calculation. */ | *YYMSG_ALLOC to the required number of bytes. Return 2 if the |
static YYSIZE_T | required number of bytes is too large to store. */ |
yysyntax_error (char *yyresult, int yystate, int yychar) | static int |
| yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, |
| yytype_int16 *yyssp, int yytoken) |
{ |
{ |
int yyn = yypact[yystate]; | YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); |
| YYSIZE_T yysize = yysize0; |
| YYSIZE_T yysize1; |
| enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; |
| /* Internationalized format string. */ |
| const char *yyformat = YY_NULL; |
| /* Arguments of yyformat. */ |
| char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
| /* Number of reported tokens (one for the "unexpected", one per |
| "expected"). */ |
| int yycount = 0; |
|
|
if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) | /* There are many possibilities here to consider: |
return 0; | - Assume YYFAIL is not used. It's too flawed to consider. See |
else | <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html> |
| for details. YYERROR is fine as it does not invoke this |
| function. |
| - If this state is a consistent state with a default action, then |
| the only way this function was invoked is if the default action |
| is an error action. In that case, don't check for expected |
| tokens because there are none. |
| - The only way there can be no lookahead present (in yychar) is if |
| this state is a consistent state with a default action. Thus, |
| detecting the absence of a lookahead is sufficient to determine |
| that there is no unexpected or expected token to report. In that |
| case, just report a simple "syntax error". |
| - Don't assume there isn't a lookahead just because this state is a |
| consistent state with a default action. There might have been a |
| previous inconsistent state, consistent state with a non-default |
| action, or user semantic action that manipulated yychar. |
| - Of course, the expected token list depends on states to have |
| correct lookahead information, and it depends on the parser not |
| to perform extra reductions after fetching a lookahead from the |
| scanner and before detecting a syntax error. Thus, state merging |
| (from LALR or IELR) and default reductions corrupt the expected |
| token list. However, the list is correct for canonical LR with |
| one exception: it will still contain any token that will not be |
| accepted due to an error action in a later state. |
| */ |
| if (yytoken != YYEMPTY) |
{ |
{ |
int yytype = YYTRANSLATE (yychar); | int yyn = yypact[*yyssp]; |
YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); | yyarg[yycount++] = yytname[yytoken]; |
YYSIZE_T yysize = yysize0; | if (!yypact_value_is_default (yyn)) |
YYSIZE_T yysize1; | { |
int yysize_overflow = 0; | /* Start YYX at -YYN if negative to avoid negative indexes in |
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; | YYCHECK. In other words, skip the first -YYN actions for |
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; | this state because they are default actions. */ |
int yyx; | int yyxbegin = yyn < 0 ? -yyn : 0; |
| /* Stay within bounds of both yycheck and yytname. */ |
| int yychecklim = YYLAST - yyn + 1; |
| int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
| int yyx; |
|
|
# if 0 | for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
/* This is so xgettext sees the translatable formats that are | if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR |
constructed on the fly. */ | && !yytable_value_is_error (yytable[yyx + yyn])) |
YY_("syntax error, unexpected %s"); | { |
YY_("syntax error, unexpected %s, expecting %s"); | if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) |
YY_("syntax error, unexpected %s, expecting %s or %s"); | { |
YY_("syntax error, unexpected %s, expecting %s or %s or %s"); | yycount = 1; |
YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); | yysize = yysize0; |
# endif | break; |
char *yyfmt; | } |
char const *yyf; | yyarg[yycount++] = yytname[yyx]; |
static char const yyunexpected[] = "syntax error, unexpected %s"; | yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); |
static char const yyexpecting[] = ", expecting %s"; | if (! (yysize <= yysize1 |
static char const yyor[] = " or %s"; | && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
char yyformat[sizeof yyunexpected | return 2; |
+ sizeof yyexpecting - 1 | yysize = yysize1; |
+ ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) | } |
* (sizeof yyor - 1))]; | } |
char const *yyprefix = yyexpecting; | } |
|
|
/* Start YYX at -YYN if negative to avoid negative indexes in | switch (yycount) |
YYCHECK. */ | { |
int yyxbegin = yyn < 0 ? -yyn : 0; | # define YYCASE_(N, S) \ |
| case N: \ |
| yyformat = S; \ |
| break |
| YYCASE_(0, YY_("syntax error")); |
| YYCASE_(1, YY_("syntax error, unexpected %s")); |
| YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); |
| YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); |
| YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); |
| YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); |
| # undef YYCASE_ |
| } |
|
|
/* Stay within bounds of both yycheck and yytname. */ | yysize1 = yysize + yystrlen (yyformat); |
int yychecklim = YYLAST - yyn + 1; | if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; | return 2; |
int yycount = 1; | yysize = yysize1; |
|
|
yyarg[0] = yytname[yytype]; | if (*yymsg_alloc < yysize) |
yyfmt = yystpcpy (yyformat, yyunexpected); | { |
| *yymsg_alloc = 2 * yysize; |
for (yyx = yyxbegin; yyx < yyxend; ++yyx) | if (! (yysize <= *yymsg_alloc |
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) | && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) |
{ | *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; |
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) | return 1; |
{ | |
yycount = 1; | |
yysize = yysize0; | |
yyformat[sizeof yyunexpected - 1] = '\0'; | |
break; | |
} | |
yyarg[yycount++] = yytname[yyx]; | |
yysize1 = yysize + yytnamerr (0, yytname[yyx]); | |
yysize_overflow |= (yysize1 < yysize); | |
yysize = yysize1; | |
yyfmt = yystpcpy (yyfmt, yyprefix); | |
yyprefix = yyor; | |
} | |
| |
yyf = YY_(yyformat); | |
yysize1 = yysize + yystrlen (yyf); | |
yysize_overflow |= (yysize1 < yysize); | |
yysize = yysize1; | |
| |
if (yysize_overflow) | |
return YYSIZE_MAXIMUM; | |
| |
if (yyresult) | |
{ | |
/* Avoid sprintf, as that infringes on the user's name space. | |
Don't have undefined behavior even if the translation | |
produced a string with the wrong number of "%s"s. */ | |
char *yyp = yyresult; | |
int yyi = 0; | |
while ((*yyp = *yyf) != '\0') | |
{ | |
if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) | |
{ | |
yyp += yytnamerr (yyp, yyarg[yyi++]); | |
yyf += 2; | |
} | |
else | |
{ | |
yyp++; | |
yyf++; | |
} | |
} | |
} | |
return yysize; | |
} |
} |
|
|
|
/* Avoid sprintf, as that infringes on the user's name space. |
|
Don't have undefined behavior even if the translation |
|
produced a string with the wrong number of "%s"s. */ |
|
{ |
|
char *yyp = *yymsg; |
|
int yyi = 0; |
|
while ((*yyp = *yyformat) != '\0') |
|
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) |
|
{ |
|
yyp += yytnamerr (yyp, yyarg[yyi++]); |
|
yyformat += 2; |
|
} |
|
else |
|
{ |
|
yyp++; |
|
yyformat++; |
|
} |
|
} |
|
return 0; |
} |
} |
#endif /* YYERROR_VERBOSE */ |
#endif /* YYERROR_VERBOSE */ |
|
|
|
|
/*-----------------------------------------------. |
/*-----------------------------------------------. |
| Release the memory associated to this symbol. | |
| Release the memory associated to this symbol. | |
Line 1384 yydestruct (yymsg, yytype, yyvaluep)
|
Line 1439 yydestruct (yymsg, yytype, yyvaluep)
|
} |
} |
} |
} |
|
|
/* Prevent warnings from -Wmissing-prototypes. */ |
|
#ifdef YYPARSE_PARAM |
|
#if defined __STDC__ || defined __cplusplus |
|
int yyparse (void *YYPARSE_PARAM); |
|
#else |
|
int yyparse (); |
|
#endif |
|
#else /* ! YYPARSE_PARAM */ |
|
#if defined __STDC__ || defined __cplusplus |
|
int yyparse (void); |
|
#else |
|
int yyparse (); |
|
#endif |
|
#endif /* ! YYPARSE_PARAM */ |
|
|
|
|
|
|
|
/* The lookahead symbol. */ |
/* The lookahead symbol. */ |
int yychar; |
int yychar; |
|
|
Line 1410 YYSTYPE yylval;
|
Line 1452 YYSTYPE yylval;
|
int yynerrs; |
int yynerrs; |
|
|
|
|
|
/*----------. |
|
| yyparse. | |
|
`----------*/ |
|
|
/*-------------------------. |
|
| yyparse or yypush_parse. | |
|
`-------------------------*/ |
|
|
|
#ifdef YYPARSE_PARAM |
#ifdef YYPARSE_PARAM |
#if (defined __STDC__ || defined __C99__FUNC__ \ |
#if (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
Line 1437 yyparse ()
|
Line 1478 yyparse ()
|
#endif |
#endif |
#endif |
#endif |
{ |
{ |
|
|
|
|
int yystate; |
int yystate; |
/* Number of tokens to shift before error messages enabled. */ |
/* Number of tokens to shift before error messages enabled. */ |
int yyerrstatus; |
int yyerrstatus; |
Line 1447 yyparse ()
|
Line 1486 yyparse ()
|
`yyss': related to states. |
`yyss': related to states. |
`yyvs': related to semantic values. |
`yyvs': related to semantic values. |
|
|
Refer to the stacks thru separate pointers, to allow yyoverflow | Refer to the stacks through separate pointers, to allow yyoverflow |
to reallocate them elsewhere. */ |
to reallocate them elsewhere. */ |
|
|
/* The state stack. */ |
/* The state stack. */ |
Line 1501 yyparse ()
|
Line 1540 yyparse ()
|
The wasted elements are never initialized. */ |
The wasted elements are never initialized. */ |
yyssp = yyss; |
yyssp = yyss; |
yyvsp = yyvs; |
yyvsp = yyvs; |
|
|
goto yysetstate; |
goto yysetstate; |
|
|
/*------------------------------------------------------------. |
/*------------------------------------------------------------. |
Line 1593 yybackup:
|
Line 1631 yybackup:
|
|
|
/* First try to decide what to do without reference to lookahead token. */ |
/* First try to decide what to do without reference to lookahead token. */ |
yyn = yypact[yystate]; |
yyn = yypact[yystate]; |
if (yyn == YYPACT_NINF) | if (yypact_value_is_default (yyn)) |
goto yydefault; |
goto yydefault; |
|
|
/* Not known => get a lookahead token if don't already have one. */ |
/* Not known => get a lookahead token if don't already have one. */ |
Line 1624 yybackup:
|
Line 1662 yybackup:
|
yyn = yytable[yyn]; |
yyn = yytable[yyn]; |
if (yyn <= 0) |
if (yyn <= 0) |
{ |
{ |
if (yyn == 0 || yyn == YYTABLE_NINF) | if (yytable_value_is_error (yyn)) |
goto yyerrlab; | goto yyerrlab; |
yyn = -yyn; |
yyn = -yyn; |
goto yyreduce; |
goto yyreduce; |
} |
} |
Line 1679 yyreduce:
|
Line 1717 yyreduce:
|
switch (yyn) |
switch (yyn) |
{ |
{ |
case 3: |
case 3: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 154 "parse.y" |
#line 154 "parse.y" |
{ |
{ |
free_buffer(); |
free_buffer(); |
Line 1689 yyreduce:
|
Line 1726 yyreduce:
|
break; |
break; |
|
|
case 16: |
case 16: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 179 "parse.y" |
#line 179 "parse.y" |
{ |
{ |
int status; |
int status; |
Line 1702 yyreduce:
|
Line 1738 yyreduce:
|
break; |
break; |
|
|
case 17: |
case 17: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 191 "parse.y" |
#line 191 "parse.y" |
{ |
{ |
int status; |
int status; |
Line 1722 yyreduce:
|
Line 1757 yyreduce:
|
break; |
break; |
|
|
case 18: |
case 18: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 210 "parse.y" |
#line 210 "parse.y" |
{ |
{ |
#ifndef __linux__ |
#ifndef __linux__ |
Line 1751 yyreduce:
|
Line 1785 yyreduce:
|
break; |
break; |
|
|
case 19: |
case 19: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 238 "parse.y" |
#line 238 "parse.y" |
{ |
{ |
int status; |
int status; |
Line 1767 yyreduce:
|
Line 1800 yyreduce:
|
break; |
break; |
|
|
case 20: |
case 20: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 253 "parse.y" |
#line 253 "parse.y" |
{ |
{ |
struct sadb_msg msg; |
struct sadb_msg msg; |
Line 1778 yyreduce:
|
Line 1810 yyreduce:
|
break; |
break; |
|
|
case 21: |
case 21: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 263 "parse.y" |
#line 263 "parse.y" |
{ |
{ |
struct sadb_msg msg; |
struct sadb_msg msg; |
Line 1789 yyreduce:
|
Line 1820 yyreduce:
|
break; |
break; |
|
|
case 22: |
case 22: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 272 "parse.y" |
#line 272 "parse.y" |
{ |
{ |
(yyval.num) = SADB_SATYPE_UNSPEC; |
(yyval.num) = SADB_SATYPE_UNSPEC; |
Line 1798 yyreduce:
|
Line 1828 yyreduce:
|
break; |
break; |
|
|
case 23: |
case 23: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 276 "parse.y" |
#line 276 "parse.y" |
{ |
{ |
(yyval.num) = SADB_SATYPE_ESP; |
(yyval.num) = SADB_SATYPE_ESP; |
Line 1811 yyreduce:
|
Line 1840 yyreduce:
|
break; |
break; |
|
|
case 24: |
case 24: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 284 "parse.y" |
#line 284 "parse.y" |
{ |
{ |
(yyval.num) = SADB_SATYPE_AH; |
(yyval.num) = SADB_SATYPE_AH; |
Line 1824 yyreduce:
|
Line 1852 yyreduce:
|
break; |
break; |
|
|
case 25: |
case 25: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 292 "parse.y" |
#line 292 "parse.y" |
{ |
{ |
(yyval.num) = SADB_X_SATYPE_IPCOMP; |
(yyval.num) = SADB_X_SATYPE_IPCOMP; |
Line 1833 yyreduce:
|
Line 1860 yyreduce:
|
break; |
break; |
|
|
case 26: |
case 26: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 296 "parse.y" |
#line 296 "parse.y" |
{ |
{ |
(yyval.num) = SADB_SATYPE_ESP; |
(yyval.num) = SADB_SATYPE_ESP; |
Line 1845 yyreduce:
|
Line 1871 yyreduce:
|
break; |
break; |
|
|
case 27: |
case 27: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 303 "parse.y" |
#line 303 "parse.y" |
{ |
{ |
(yyval.num) = SADB_SATYPE_ESP; |
(yyval.num) = SADB_SATYPE_ESP; |
Line 1857 yyreduce:
|
Line 1882 yyreduce:
|
break; |
break; |
|
|
case 28: |
case 28: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 310 "parse.y" |
#line 310 "parse.y" |
{ |
{ |
#ifdef SADB_X_SATYPE_TCPSIGNATURE |
#ifdef SADB_X_SATYPE_TCPSIGNATURE |
Line 1868 yyreduce:
|
Line 1892 yyreduce:
|
break; |
break; |
|
|
case 29: |
case 29: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 318 "parse.y" |
#line 318 "parse.y" |
{ p_spi = (yyvsp[(1) - (1)].ulnum); } |
{ p_spi = (yyvsp[(1) - (1)].ulnum); } |
break; |
break; |
|
|
case 30: |
case 30: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 320 "parse.y" |
#line 320 "parse.y" |
{ |
{ |
char *ep; |
char *ep; |
Line 1898 yyreduce:
|
Line 1920 yyreduce:
|
break; |
break; |
|
|
case 37: |
case 37: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 356 "parse.y" |
#line 356 "parse.y" |
{ |
{ |
if ((yyvsp[(2) - (2)].num) < 0) { |
if ((yyvsp[(2) - (2)].num) < 0) { |
Line 1911 yyreduce:
|
Line 1932 yyreduce:
|
break; |
break; |
|
|
case 38: |
case 38: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 364 "parse.y" |
#line 364 "parse.y" |
{ |
{ |
if ((yyvsp[(2) - (3)].num) < 0) { |
if ((yyvsp[(2) - (3)].num) < 0) { |
Line 1925 yyreduce:
|
Line 1945 yyreduce:
|
break; |
break; |
|
|
case 39: |
case 39: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 375 "parse.y" |
#line 375 "parse.y" |
{ |
{ |
if ((yyvsp[(1) - (1)].num) < 0) { |
if ((yyvsp[(1) - (1)].num) < 0) { |
Line 1946 yyreduce:
|
Line 1965 yyreduce:
|
break; |
break; |
|
|
case 40: |
case 40: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 390 "parse.y" |
#line 390 "parse.y" |
{ |
{ |
if ((yyvsp[(1) - (2)].num) < 0) { |
if ((yyvsp[(1) - (2)].num) < 0) { |
Line 1967 yyreduce:
|
Line 1985 yyreduce:
|
break; |
break; |
|
|
case 41: |
case 41: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 405 "parse.y" |
#line 405 "parse.y" |
{ |
{ |
if ((yyvsp[(1) - (1)].num) < 0) { |
if ((yyvsp[(1) - (1)].num) < 0) { |
Line 1989 yyreduce:
|
Line 2006 yyreduce:
|
break; |
break; |
|
|
case 42: |
case 42: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 422 "parse.y" |
#line 422 "parse.y" |
{ |
{ |
if ((yyvsp[(1) - (2)].num) < 0) { |
if ((yyvsp[(1) - (2)].num) < 0) { |
Line 2015 yyreduce:
|
Line 2031 yyreduce:
|
break; |
break; |
|
|
case 43: |
case 43: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 443 "parse.y" |
#line 443 "parse.y" |
{ |
{ |
if ((yyvsp[(1) - (2)].num) < 0) { |
if ((yyvsp[(1) - (2)].num) < 0) { |
Line 2041 yyreduce:
|
Line 2056 yyreduce:
|
break; |
break; |
|
|
case 44: |
case 44: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 466 "parse.y" |
#line 466 "parse.y" |
{ |
{ |
if ((yyvsp[(1) - (2)].num) < 0) { |
if ((yyvsp[(1) - (2)].num) < 0) { |
Line 2072 yyreduce:
|
Line 2086 yyreduce:
|
break; |
break; |
|
|
case 45: |
case 45: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 491 "parse.y" |
#line 491 "parse.y" |
{ |
{ |
if ((yyvsp[(1) - (1)].num) < 0) { |
if ((yyvsp[(1) - (1)].num) < 0) { |
Line 2088 yyreduce:
|
Line 2101 yyreduce:
|
break; |
break; |
|
|
case 46: |
case 46: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 505 "parse.y" |
#line 505 "parse.y" |
{ |
{ |
(yyval.val) = (yyvsp[(1) - (1)].val); |
(yyval.val) = (yyvsp[(1) - (1)].val); |
Line 2097 yyreduce:
|
Line 2109 yyreduce:
|
break; |
break; |
|
|
case 47: |
case 47: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 509 "parse.y" |
#line 509 "parse.y" |
{ |
{ |
caddr_t pp_key; |
caddr_t pp_key; |
Line 2129 yyreduce:
|
Line 2140 yyreduce:
|
break; |
break; |
|
|
case 50: |
case 50: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 543 "parse.y" |
#line 543 "parse.y" |
{ p_ext |= (yyvsp[(2) - (2)].num); } |
{ p_ext |= (yyvsp[(2) - (2)].num); } |
break; |
break; |
|
|
case 51: |
case 51: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 544 "parse.y" |
#line 544 "parse.y" |
{ p_ext &= ~SADB_X_EXT_CYCSEQ; } |
{ p_ext &= ~SADB_X_EXT_CYCSEQ; } |
break; |
break; |
|
|
case 52: |
case 52: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 545 "parse.y" |
#line 545 "parse.y" |
{ p_mode = (yyvsp[(2) - (2)].num); } |
{ p_mode = (yyvsp[(2) - (2)].num); } |
break; |
break; |
|
|
case 53: |
case 53: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 546 "parse.y" |
#line 546 "parse.y" |
{ p_mode = IPSEC_MODE_ANY; } |
{ p_mode = IPSEC_MODE_ANY; } |
break; |
break; |
|
|
case 54: |
case 54: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 547 "parse.y" |
#line 547 "parse.y" |
{ p_reqid = (yyvsp[(2) - (2)].ulnum); } |
{ p_reqid = (yyvsp[(2) - (2)].ulnum); } |
break; |
break; |
|
|
case 55: |
case 55: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 549 "parse.y" |
#line 549 "parse.y" |
{ |
{ |
if ((p_ext & SADB_X_EXT_OLD) != 0) { |
if ((p_ext & SADB_X_EXT_OLD) != 0) { |
Line 2178 yyreduce:
|
Line 2183 yyreduce:
|
break; |
break; |
|
|
case 56: |
case 56: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 557 "parse.y" |
#line 557 "parse.y" |
{ p_lt_hard = (yyvsp[(2) - (2)].ulnum); } |
{ p_lt_hard = (yyvsp[(2) - (2)].ulnum); } |
break; |
break; |
|
|
case 57: |
case 57: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 558 "parse.y" |
#line 558 "parse.y" |
{ p_lt_soft = (yyvsp[(2) - (2)].ulnum); } |
{ p_lt_soft = (yyvsp[(2) - (2)].ulnum); } |
break; |
break; |
|
|
case 58: |
case 58: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 559 "parse.y" |
#line 559 "parse.y" |
{ p_lb_hard = (yyvsp[(2) - (2)].ulnum); } |
{ p_lb_hard = (yyvsp[(2) - (2)].ulnum); } |
break; |
break; |
|
|
case 59: |
case 59: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 560 "parse.y" |
#line 560 "parse.y" |
{ p_lb_soft = (yyvsp[(2) - (2)].ulnum); } |
{ p_lb_soft = (yyvsp[(2) - (2)].ulnum); } |
break; |
break; |
|
|
case 60: |
case 60: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 561 "parse.y" |
#line 561 "parse.y" |
{ |
{ |
sec_ctx.doi = (yyvsp[(2) - (4)].ulnum); |
sec_ctx.doi = (yyvsp[(2) - (4)].ulnum); |
Line 2218 yyreduce:
|
Line 2218 yyreduce:
|
break; |
break; |
|
|
case 61: |
case 61: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 574 "parse.y" |
#line 574 "parse.y" |
{ |
{ |
int status; |
int status; |
Line 2256 yyreduce:
|
Line 2255 yyreduce:
|
break; |
break; |
|
|
case 62: |
case 62: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 607 "parse.y" |
#line 607 "parse.y" |
{ |
{ |
int status; |
int status; |
Line 2270 yyreduce:
|
Line 2268 yyreduce:
|
break; |
break; |
|
|
case 63: |
case 63: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 620 "parse.y" |
#line 620 "parse.y" |
{ |
{ |
int status; |
int status; |
Line 2308 yyreduce:
|
Line 2305 yyreduce:
|
break; |
break; |
|
|
case 64: |
case 64: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 653 "parse.y" |
#line 653 "parse.y" |
{ |
{ |
int status; |
int status; |
Line 2322 yyreduce:
|
Line 2318 yyreduce:
|
break; |
break; |
|
|
case 65: |
case 65: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 665 "parse.y" |
#line 665 "parse.y" |
{ |
{ |
int status; |
int status; |
Line 2356 yyreduce:
|
Line 2351 yyreduce:
|
break; |
break; |
|
|
case 66: |
case 66: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 697 "parse.y" |
#line 697 "parse.y" |
{ |
{ |
struct sadb_msg msg; |
struct sadb_msg msg; |
Line 2368 yyreduce:
|
Line 2362 yyreduce:
|
break; |
break; |
|
|
case 67: |
case 67: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 708 "parse.y" |
#line 708 "parse.y" |
{ |
{ |
struct sadb_msg msg; |
struct sadb_msg msg; |
Line 2380 yyreduce:
|
Line 2373 yyreduce:
|
break; |
break; |
|
|
case 70: |
case 70: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 723 "parse.y" |
#line 723 "parse.y" |
{ |
{ |
char *p; |
char *p; |
Line 2407 yyreduce:
|
Line 2399 yyreduce:
|
break; |
break; |
|
|
case 71: |
case 71: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 748 "parse.y" |
#line 748 "parse.y" |
{ |
{ |
(yyval.res) = parse_addr((yyvsp[(1) - (1)].val).buf, NULL); |
(yyval.res) = parse_addr((yyvsp[(1) - (1)].val).buf, NULL); |
Line 2420 yyreduce:
|
Line 2411 yyreduce:
|
break; |
break; |
|
|
case 72: |
case 72: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 759 "parse.y" |
#line 759 "parse.y" |
{ |
{ |
(yyval.res) = parse_addr((yyvsp[(1) - (1)].val).buf, NULL); |
(yyval.res) = parse_addr((yyvsp[(1) - (1)].val).buf, NULL); |
Line 2433 yyreduce:
|
Line 2423 yyreduce:
|
break; |
break; |
|
|
case 73: |
case 73: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 767 "parse.y" |
#line 767 "parse.y" |
{ |
{ |
(yyval.res) = parse_addr((yyvsp[(1) - (2)].val).buf, (yyvsp[(2) - (2)].val).buf); |
(yyval.res) = parse_addr((yyvsp[(1) - (2)].val).buf, (yyvsp[(2) - (2)].val).buf); |
Line 2446 yyreduce:
|
Line 2435 yyreduce:
|
break; |
break; |
|
|
case 74: |
case 74: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 777 "parse.y" |
#line 777 "parse.y" |
{ (yyval.num) = -1; } |
{ (yyval.num) = -1; } |
break; |
break; |
|
|
case 75: |
case 75: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 778 "parse.y" |
#line 778 "parse.y" |
{ (yyval.num) = (yyvsp[(2) - (2)].ulnum); } |
{ (yyval.num) = (yyvsp[(2) - (2)].ulnum); } |
break; |
break; |
|
|
case 76: |
case 76: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 783 "parse.y" |
#line 783 "parse.y" |
{ |
{ |
(yyval.val).buf = strdup("0"); |
(yyval.val).buf = strdup("0"); |
Line 2474 yyreduce:
|
Line 2460 yyreduce:
|
break; |
break; |
|
|
case 77: |
case 77: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 792 "parse.y" |
#line 792 "parse.y" |
{ |
{ |
(yyval.val).buf = strdup("0"); |
(yyval.val).buf = strdup("0"); |
Line 2488 yyreduce:
|
Line 2473 yyreduce:
|
break; |
break; |
|
|
case 78: |
case 78: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 801 "parse.y" |
#line 801 "parse.y" |
{ |
{ |
char buf[20]; |
char buf[20]; |
Line 2504 yyreduce:
|
Line 2488 yyreduce:
|
break; |
break; |
|
|
case 79: |
case 79: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 812 "parse.y" |
#line 812 "parse.y" |
{ |
{ |
(yyval.val) = (yyvsp[(2) - (3)].val); |
(yyval.val) = (yyvsp[(2) - (3)].val); |
Line 2513 yyreduce:
|
Line 2496 yyreduce:
|
break; |
break; |
|
|
case 80: |
case 80: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 818 "parse.y" |
#line 818 "parse.y" |
{ (yyval.num) = (yyvsp[(1) - (1)].ulnum); } |
{ (yyval.num) = (yyvsp[(1) - (1)].ulnum); } |
break; |
break; |
|
|
case 81: |
case 81: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 819 "parse.y" |
#line 819 "parse.y" |
{ (yyval.num) = IPSEC_ULPROTO_ANY; } |
{ (yyval.num) = IPSEC_ULPROTO_ANY; } |
break; |
break; |
|
|
case 82: |
case 82: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 820 "parse.y" |
#line 820 "parse.y" |
{ |
{ |
(yyval.num) = IPPROTO_TCP; |
(yyval.num) = IPPROTO_TCP; |
Line 2536 yyreduce:
|
Line 2516 yyreduce:
|
break; |
break; |
|
|
case 83: |
case 83: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 824 "parse.y" |
#line 824 "parse.y" |
{ |
{ |
struct protoent *ent; |
struct protoent *ent; |
Line 2560 yyreduce:
|
Line 2539 yyreduce:
|
break; |
break; |
|
|
case 84: |
case 84: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 846 "parse.y" |
#line 846 "parse.y" |
{ |
{ |
(yyval.val).buf = NULL; |
(yyval.val).buf = NULL; |
Line 2570 yyreduce:
|
Line 2548 yyreduce:
|
break; |
break; |
|
|
case 85: |
case 85: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 851 "parse.y" |
#line 851 "parse.y" |
{ |
{ |
(yyval.val).buf = strdup((yyvsp[(1) - (1)].val).buf); |
(yyval.val).buf = strdup((yyvsp[(1) - (1)].val).buf); |
Line 2584 yyreduce:
|
Line 2561 yyreduce:
|
break; |
break; |
|
|
case 87: |
case 87: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 863 "parse.y" |
#line 863 "parse.y" |
{ |
{ |
sec_ctx.doi = (yyvsp[(2) - (4)].ulnum); |
sec_ctx.doi = (yyvsp[(2) - (4)].ulnum); |
Line 2596 yyreduce:
|
Line 2572 yyreduce:
|
break; |
break; |
|
|
case 88: |
case 88: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 873 "parse.y" |
#line 873 "parse.y" |
{ |
{ |
char *policy; |
char *policy; |
Line 2622 yyreduce:
|
Line 2597 yyreduce:
|
break; |
break; |
|
|
case 89: |
case 89: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 896 "parse.y" |
#line 896 "parse.y" |
{ (yyval.val) = (yyvsp[(1) - (1)].val); } |
{ (yyval.val) = (yyvsp[(1) - (1)].val); } |
break; |
break; |
|
|
case 90: |
case 90: |
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | |
#line 902 "parse.y" |
#line 902 "parse.y" |
{ |
{ |
exit_now = 1; |
exit_now = 1; |
Line 2639 yyreduce:
|
Line 2612 yyreduce:
|
break; |
break; |
|
|
|
|
| /* Line 1787 of yacc.c */ |
/* Line 1455 of yacc.c */ | #line 2617 "parse.c" |
#line 2645 "parse.c" | |
default: break; |
default: break; |
} |
} |
|
/* User semantic actions sometimes alter yychar, and that requires |
|
that yytoken be updated with the new translation. We take the |
|
approach of translating immediately before every use of yytoken. |
|
One alternative is translating here after every semantic action, |
|
but that translation would be missed if the semantic action invokes |
|
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or |
|
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an |
|
incorrect destructor might then be invoked immediately. In the |
|
case of YYERROR or YYBACKUP, subsequent parser actions might lead |
|
to an incorrect destructor call or verbose syntax error message |
|
before the lookahead is translated. */ |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
|
|
YYPOPSTACK (yylen); |
YYPOPSTACK (yylen); |
Line 2671 yyreduce:
|
Line 2654 yyreduce:
|
| yyerrlab -- here on detecting error | |
| yyerrlab -- here on detecting error | |
`------------------------------------*/ |
`------------------------------------*/ |
yyerrlab: |
yyerrlab: |
|
/* Make sure we have latest lookahead translation. See comments at |
|
user semantic actions for why this is necessary. */ |
|
yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); |
|
|
/* If not already recovering from an error, report this error. */ |
/* If not already recovering from an error, report this error. */ |
if (!yyerrstatus) |
if (!yyerrstatus) |
{ |
{ |
Line 2678 yyerrlab:
|
Line 2665 yyerrlab:
|
#if ! YYERROR_VERBOSE |
#if ! YYERROR_VERBOSE |
yyerror (YY_("syntax error")); |
yyerror (YY_("syntax error")); |
#else |
#else |
|
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ |
|
yyssp, yytoken) |
{ |
{ |
YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); | char const *yymsgp = YY_("syntax error"); |
if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) | int yysyntax_error_status; |
{ | yysyntax_error_status = YYSYNTAX_ERROR; |
YYSIZE_T yyalloc = 2 * yysize; | if (yysyntax_error_status == 0) |
if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) | yymsgp = yymsg; |
yyalloc = YYSTACK_ALLOC_MAXIMUM; | else if (yysyntax_error_status == 1) |
if (yymsg != yymsgbuf) | { |
YYSTACK_FREE (yymsg); | if (yymsg != yymsgbuf) |
yymsg = (char *) YYSTACK_ALLOC (yyalloc); | YYSTACK_FREE (yymsg); |
if (yymsg) | yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); |
yymsg_alloc = yyalloc; | if (!yymsg) |
else | { |
{ | yymsg = yymsgbuf; |
yymsg = yymsgbuf; | yymsg_alloc = sizeof yymsgbuf; |
yymsg_alloc = sizeof yymsgbuf; | yysyntax_error_status = 2; |
} | } |
} | else |
| { |
if (0 < yysize && yysize <= yymsg_alloc) | yysyntax_error_status = YYSYNTAX_ERROR; |
{ | yymsgp = yymsg; |
(void) yysyntax_error (yymsg, yystate, yychar); | } |
yyerror (yymsg); | } |
} | yyerror (yymsgp); |
else | if (yysyntax_error_status == 2) |
{ | goto yyexhaustedlab; |
yyerror (YY_("syntax error")); | |
if (yysize != 0) | |
goto yyexhaustedlab; | |
} | |
} |
} |
|
# undef YYSYNTAX_ERROR |
#endif |
#endif |
} |
} |
|
|
Line 2767 yyerrlab1:
|
Line 2753 yyerrlab1:
|
for (;;) |
for (;;) |
{ |
{ |
yyn = yypact[yystate]; |
yyn = yypact[yystate]; |
if (yyn != YYPACT_NINF) | if (!yypact_value_is_default (yyn)) |
{ |
{ |
yyn += YYTERROR; |
yyn += YYTERROR; |
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
Line 2814 yyabortlab:
|
Line 2800 yyabortlab:
|
yyresult = 1; |
yyresult = 1; |
goto yyreturn; |
goto yyreturn; |
|
|
#if !defined(yyoverflow) || YYERROR_VERBOSE | #if !defined yyoverflow || YYERROR_VERBOSE |
/*-------------------------------------------------. |
/*-------------------------------------------------. |
| yyexhaustedlab -- memory exhaustion comes here. | |
| yyexhaustedlab -- memory exhaustion comes here. | |
`-------------------------------------------------*/ |
`-------------------------------------------------*/ |
Line 2826 yyexhaustedlab:
|
Line 2812 yyexhaustedlab:
|
|
|
yyreturn: |
yyreturn: |
if (yychar != YYEMPTY) |
if (yychar != YYEMPTY) |
yydestruct ("Cleanup: discarding lookahead", | { |
yytoken, &yylval); | /* Make sure we have latest lookahead translation. See comments at |
| user semantic actions for why this is necessary. */ |
| yytoken = YYTRANSLATE (yychar); |
| yydestruct ("Cleanup: discarding lookahead", |
| yytoken, &yylval); |
| } |
/* Do not reclaim the symbols of the rule which action triggered |
/* Do not reclaim the symbols of the rule which action triggered |
this YYABORT or YYACCEPT. */ |
this YYABORT or YYACCEPT. */ |
YYPOPSTACK (yylen); |
YYPOPSTACK (yylen); |
Line 2851 yyreturn:
|
Line 2842 yyreturn:
|
} |
} |
|
|
|
|
| /* Line 2048 of yacc.c */ |
/* Line 1675 of yacc.c */ | |
#line 907 "parse.y" |
#line 907 "parse.y" |
|
|
|
|
Line 3618 free_buffer()
|
Line 3608 free_buffer()
|
|
|
return; |
return; |
} |
} |
|
|