summaryrefslogtreecommitdiffstats
path: root/ipsec-tools/src/racoon/cftoken.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipsec-tools/src/racoon/cftoken.c')
-rw-r--r--ipsec-tools/src/racoon/cftoken.c1142
1 files changed, 588 insertions, 554 deletions
diff --git a/ipsec-tools/src/racoon/cftoken.c b/ipsec-tools/src/racoon/cftoken.c
index 7b9bb14f..b28caad0 100644
--- a/ipsec-tools/src/racoon/cftoken.c
+++ b/ipsec-tools/src/racoon/cftoken.c
@@ -1,10 +1,29 @@
-#line 3 "cftoken.c"
+#line 3 "<stdout>"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
+#define yy_create_buffer racoonyy_create_buffer
+#define yy_delete_buffer racoonyy_delete_buffer
+#define yy_flex_debug racoonyy_flex_debug
+#define yy_init_buffer racoonyy_init_buffer
+#define yy_flush_buffer racoonyy_flush_buffer
+#define yy_load_buffer_state racoonyy_load_buffer_state
+#define yy_switch_to_buffer racoonyy_switch_to_buffer
+#define yyin racoonyyin
+#define yyleng racoonyyleng
+#define yylex racoonyylex
+#define yylineno racoonyylineno
+#define yyout racoonyyout
+#define yyrestart racoonyyrestart
+#define yytext racoonyytext
+#define yywrap racoonyywrap
+#define yyalloc racoonyyalloc
+#define yyrealloc racoonyyrealloc
+#define yyfree racoonyyfree
+
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
@@ -15,6 +34,16 @@
/* First, we deal with platform-specific or compiler-specific issues. */
+#if defined(__FreeBSD__)
+#ifndef __STDC_LIMIT_MACROS
+#define __STDC_LIMIT_MACROS
+#endif
+#include <sys/cdefs.h>
+#include <stdint.h>
+#else
+#define __dead2
+#endif
+
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
@@ -30,7 +59,8 @@
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
-#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#if defined(__FreeBSD__) || \
+ (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
@@ -135,13 +165,13 @@ typedef unsigned int flex_uint32_t;
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
-#define YY_NEW_FILE yyrestart(yyin )
+#define YY_NEW_FILE racoonyyrestart(racoonyyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
-#define YY_BUF_SIZE 16384
+#define YY_BUF_SIZE 1024
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
@@ -158,9 +188,9 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
typedef size_t yy_size_t;
#endif
-extern yy_size_t yyleng;
+extern yy_size_t racoonyyleng;
-extern FILE *yyin, *yyout;
+extern FILE *racoonyyin, *racoonyyout;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
@@ -172,13 +202,13 @@ extern FILE *yyin, *yyout;
#define yyless(n) \
do \
{ \
- /* Undo effects of setting up yytext. */ \
+ /* Undo effects of setting up racoonyytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
- YY_DO_BEFORE_ACTION; /* set up yytext again */ \
+ YY_DO_BEFORE_ACTION; /* set up racoonyytext again */ \
} \
while ( 0 )
@@ -241,8 +271,8 @@ struct yy_buffer_state
* possible backing-up.
*
* When we actually see the EOF, we change the status to "new"
- * (via yyrestart()), so that the user can continue scanning by
- * just pointing yyin at a new input file.
+ * (via racoonyyrestart()), so that the user can continue scanning by
+ * just pointing racoonyyin at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
@@ -263,57 +293,58 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
+#define yy_current_buffer YY_CURRENT_BUFFER
/* Same as previous macro, but useful when we know that the buffer stack is not
* NULL or when we need an lvalue. For internal use only.
*/
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
-/* yy_hold_char holds the character lost when yytext is formed. */
+/* yy_hold_char holds the character lost when racoonyytext is formed. */
static char yy_hold_char;
static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
-yy_size_t yyleng;
+yy_size_t racoonyyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 0; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
-/* Flag which is used to allow yywrap()'s to do buffer switches
- * instead of setting up a fresh yyin. A bit of a hack ...
+/* Flag which is used to allow racoonyywrap()'s to do buffer switches
+ * instead of setting up a fresh racoonyyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
-void yyrestart (FILE *input_file );
-void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
-YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
-void yy_delete_buffer (YY_BUFFER_STATE b );
-void yy_flush_buffer (YY_BUFFER_STATE b );
-void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
-void yypop_buffer_state (void );
+void racoonyyrestart (FILE *input_file );
+void racoonyy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
+YY_BUFFER_STATE racoonyy_create_buffer (FILE *file,int size );
+void racoonyy_delete_buffer (YY_BUFFER_STATE b );
+void racoonyy_flush_buffer (YY_BUFFER_STATE b );
+void racoonyypush_buffer_state (YY_BUFFER_STATE new_buffer );
+void racoonyypop_buffer_state (void );
-static void yyensure_buffer_stack (void );
-static void yy_load_buffer_state (void );
-static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
+static void racoonyyensure_buffer_stack (void );
+static void racoonyy_load_buffer_state (void );
+static void racoonyy_init_buffer (YY_BUFFER_STATE b,FILE *file );
-#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
+#define YY_FLUSH_BUFFER racoonyy_flush_buffer(YY_CURRENT_BUFFER )
-YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
-YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
-YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
+YY_BUFFER_STATE racoonyy_scan_buffer (char *base,yy_size_t size );
+YY_BUFFER_STATE racoonyy_scan_string (yyconst char *yy_str );
+YY_BUFFER_STATE racoonyy_scan_bytes (yyconst char *bytes,yy_size_t len );
-void *yyalloc (yy_size_t );
-void *yyrealloc (void *,yy_size_t );
-void yyfree (void * );
+void *racoonyyalloc (yy_size_t );
+void *racoonyyrealloc (void *,yy_size_t );
+void racoonyyfree (void * );
-#define yy_new_buffer yy_create_buffer
+#define yy_new_buffer racoonyy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
- yyensure_buffer_stack (); \
+ racoonyyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer(yyin,YY_BUF_SIZE ); \
+ racoonyy_create_buffer(racoonyyin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
@@ -321,9 +352,9 @@ void yyfree (void * );
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
- yyensure_buffer_stack (); \
+ racoonyyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer(yyin,YY_BUF_SIZE ); \
+ racoonyy_create_buffer(racoonyyin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
@@ -334,29 +365,29 @@ void yyfree (void * );
typedef unsigned char YY_CHAR;
-FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
+FILE *racoonyyin = (FILE *) 0, *racoonyyout = (FILE *) 0;
typedef int yy_state_type;
-extern int yylineno;
+extern int racoonyylineno;
-int yylineno = 1;
+int racoonyylineno = 1;
-extern char *yytext;
-#define yytext_ptr yytext
+extern char *racoonyytext;
+#define yytext_ptr racoonyytext
static yy_state_type yy_get_previous_state (void );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
static int yy_get_next_buffer (void );
-static void yy_fatal_error (yyconst char msg[] );
+static void yy_fatal_error (yyconst char msg[] ) __dead2;
/* Done after the current pattern has been matched and before the
- * corresponding action - sets up yytext.
+ * corresponding action - sets up racoonyytext.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
(yytext_ptr) -= (yy_more_len); \
- yyleng = (size_t) (yy_cp - (yytext_ptr)); \
+ racoonyyleng = (size_t) (yy_cp - (yytext_ptr)); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
@@ -1535,8 +1566,8 @@ static yyconst flex_int16_t yy_chk[2259] =
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
-extern int yy_flex_debug;
-int yy_flex_debug = 0;
+extern int racoonyy_flex_debug;
+int racoonyy_flex_debug = 0;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
@@ -1547,11 +1578,11 @@ static int yy_more_len = 0;
#define yymore() ((yy_more_flag) = 1)
#define YY_MORE_ADJ (yy_more_len)
#define YY_RESTORE_YY_MORE_OFFSET
-char *yytext;
-#line 1 "cftoken.l"
+char *racoonyytext;
+#line 1 "../../ipsec-tools/src/racoon/cftoken.l"
/* $NetBSD: cftoken.l,v 1.23.2.1 2012/08/29 08:42:24 tteras Exp $ */
/* Id: cftoken.l,v 1.53 2006/08/22 18:17:17 manubsd Exp */
-#line 6 "cftoken.l"
+#line 6 "../../ipsec-tools/src/racoon/cftoken.l"
/*
* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 and 2003 WIDE Project.
* All rights reserved.
@@ -1630,7 +1661,7 @@ int yyerrorcount = 0;
#if defined(YIPS_DEBUG)
# define YYDB plog(LLV_DEBUG2, LOCATION, NULL, \
- "begin <%d>%s\n", yy_start, yytext);
+ "begin <%d>%s\n", yy_start, racoonyytext);
# define YYD { \
plog(LLV_DEBUG2, LOCATION, NULL, "<%d>%s", \
yy_start, loglevel >= LLV_DEBUG2 ? "\n" : ""); \
@@ -1661,7 +1692,7 @@ static int yy_first_time = 1;
-#line 1665 "cftoken.c"
+#line 1696 "<stdout>"
#define INITIAL 0
#define S_INI 1
@@ -1701,31 +1732,31 @@ static int yy_init_globals (void );
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
-int yylex_destroy (void );
+int racoonyylex_destroy (void );
-int yyget_debug (void );
+int racoonyyget_debug (void );
-void yyset_debug (int debug_flag );
+void racoonyyset_debug (int debug_flag );
-YY_EXTRA_TYPE yyget_extra (void );
+YY_EXTRA_TYPE racoonyyget_extra (void );
-void yyset_extra (YY_EXTRA_TYPE user_defined );
+void racoonyyset_extra (YY_EXTRA_TYPE user_defined );
-FILE *yyget_in (void );
+FILE *racoonyyget_in (void );
-void yyset_in (FILE * in_str );
+void racoonyyset_in (FILE * in_str );
-FILE *yyget_out (void );
+FILE *racoonyyget_out (void );
-void yyset_out (FILE * out_str );
+void racoonyyset_out (FILE * out_str );
-yy_size_t yyget_leng (void );
+yy_size_t racoonyyget_leng (void );
-char *yyget_text (void );
+char *racoonyyget_text (void );
-int yyget_lineno (void );
+int racoonyyget_lineno (void );
-void yyset_lineno (int line_number );
+void racoonyyset_lineno (int line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
@@ -1733,13 +1764,15 @@ void yyset_lineno (int line_number );
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
-extern "C" int yywrap (void );
+extern "C" int racoonyywrap (void );
#else
-extern int yywrap (void );
+extern int racoonyywrap (void );
#endif
#endif
+#ifndef YY_NO_UNPUT
static void yyunput (int c,char *buf_ptr );
+#endif
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
@@ -1769,7 +1802,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
+#define ECHO do { if (fwrite( racoonyytext, racoonyyleng, 1, racoonyyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -1782,18 +1815,18 @@ static int input (void );
int c = '*'; \
size_t n; \
for ( n = 0; n < max_size && \
- (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
+ (c = getc( racoonyyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
- if ( c == EOF && ferror( yyin ) ) \
+ if ( c == EOF && ferror( racoonyyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
- while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
+ while ( (result = fread(buf, 1, max_size, racoonyyin))==0 && ferror(racoonyyin)) \
{ \
if( errno != EINTR) \
{ \
@@ -1801,7 +1834,7 @@ static int input (void );
break; \
} \
errno=0; \
- clearerr(yyin); \
+ clearerr(racoonyyin); \
} \
}\
\
@@ -1834,12 +1867,12 @@ static int input (void );
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
-extern int yylex (void);
+extern int racoonyylex (void);
-#define YY_DECL int yylex (void)
+#define YY_DECL int racoonyylex (void)
#endif /* !YY_DECL */
-/* Code executed at the beginning of each rule, after yytext and yyleng
+/* Code executed at the beginning of each rule, after racoonyytext and racoonyyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
@@ -1858,11 +1891,11 @@ extern int yylex (void);
*/
YY_DECL
{
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
+ yy_state_type yy_current_state;
+ char *yy_cp, *yy_bp;
+ int yy_act;
-#line 142 "cftoken.l"
+#line 142 "../../ipsec-tools/src/racoon/cftoken.l"
if (yy_first_time) {
@@ -1872,7 +1905,7 @@ YY_DECL
/* privsep */
-#line 1876 "cftoken.c"
+#line 1909 "<stdout>"
if ( !(yy_init) )
{
@@ -1885,19 +1918,19 @@ YY_DECL
if ( ! (yy_start) )
(yy_start) = 1; /* first start state */
- if ( ! yyin )
- yyin = stdin;
+ if ( ! racoonyyin )
+ racoonyyin = stdin;
- if ( ! yyout )
- yyout = stdout;
+ if ( ! racoonyyout )
+ racoonyyout = stdout;
if ( ! YY_CURRENT_BUFFER ) {
- yyensure_buffer_stack ();
+ racoonyyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE );
+ racoonyy_create_buffer(racoonyyin,YY_BUF_SIZE );
}
- yy_load_buffer_state( );
+ racoonyy_load_buffer_state( );
}
while ( 1 ) /* loops until end-of-file is reached */
@@ -1910,7 +1943,7 @@ YY_DECL
}
yy_cp = (yy_c_buf_p);
- /* Support of yytext. */
+ /* Support of racoonyytext. */
*yy_cp = (yy_hold_char);
/* yy_bp points to the position in yy_ch_buf of the start of
@@ -1922,7 +1955,7 @@ YY_DECL
yy_match:
do
{
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -1963,1421 +1996,1421 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
-#line 151 "cftoken.l"
+#line 151 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_PRIV; YYDB; return(PRIVSEP); }
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 152 "cftoken.l"
+#line 152 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(BOC); }
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 153 "cftoken.l"
+#line 153 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(USER); }
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 154 "cftoken.l"
+#line 154 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(GROUP); }
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 155 "cftoken.l"
+#line 155 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CHROOT); }
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 156 "cftoken.l"
+#line 156 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
/* path */
case 7:
YY_RULE_SETUP
-#line 159 "cftoken.l"
+#line 159 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_PTH; YYDB; return(PATH); }
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 160 "cftoken.l"
+#line 160 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_INCLUDE;
return(PATHTYPE); }
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 162 "cftoken.l"
+#line 162 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_PSK;
return(PATHTYPE); }
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 164 "cftoken.l"
+#line 164 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_CERT;
return(PATHTYPE); }
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 166 "cftoken.l"
+#line 166 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_SCRIPT;
return(PATHTYPE); }
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 168 "cftoken.l"
+#line 168 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_BACKUPSA;
return(PATHTYPE); }
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 170 "cftoken.l"
+#line 170 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_PIDFILE;
return(PATHTYPE); }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 172 "cftoken.l"
+#line 172 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; YYDB; return(EOS); }
YY_BREAK
/* include */
case 15:
YY_RULE_SETUP
-#line 175 "cftoken.l"
+#line 175 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYDB; return(INCLUDE); }
YY_BREAK
/* pfkey_buffer */
case 16:
YY_RULE_SETUP
-#line 178 "cftoken.l"
+#line 178 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYDB; return(PFKEY_BUFFER); }
YY_BREAK
/* special */
case 17:
YY_RULE_SETUP
-#line 181 "cftoken.l"
+#line 181 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYDB; return(COMPLEX_BUNDLE); }
YY_BREAK
/* logging */
case 18:
YY_RULE_SETUP
-#line 184 "cftoken.l"
+#line 184 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_LOG; YYDB; return(LOGGING); }
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 185 "cftoken.l"
+#line 185 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LLV_ERROR; return(LOGLEV); }
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 186 "cftoken.l"
+#line 186 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LLV_WARNING; return(LOGLEV); }
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 187 "cftoken.l"
+#line 187 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LLV_NOTIFY; return(LOGLEV); }
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 188 "cftoken.l"
+#line 188 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LLV_INFO; return(LOGLEV); }
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 189 "cftoken.l"
+#line 189 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LLV_DEBUG; return(LOGLEV); }
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 190 "cftoken.l"
+#line 190 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LLV_DEBUG2; return(LOGLEV); }
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 191 "cftoken.l"
+#line 191 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOS); }
YY_BREAK
/* padding */
case 26:
YY_RULE_SETUP
-#line 194 "cftoken.l"
+#line 194 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_PAD; YYDB; return(PADDING); }
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 195 "cftoken.l"
+#line 195 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(BOC); }
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 196 "cftoken.l"
+#line 196 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PAD_RANDOMIZE); }
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 197 "cftoken.l"
+#line 197 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PAD_RANDOMIZELEN); }
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 198 "cftoken.l"
+#line 198 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PAD_MAXLEN); }
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 199 "cftoken.l"
+#line 199 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PAD_STRICT); }
YY_BREAK
case 32:
YY_RULE_SETUP
-#line 200 "cftoken.l"
+#line 200 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PAD_EXCLTAIL); }
YY_BREAK
case 33:
YY_RULE_SETUP
-#line 201 "cftoken.l"
+#line 201 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
/* listen */
case 34:
YY_RULE_SETUP
-#line 204 "cftoken.l"
+#line 204 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_LST; YYDB; return(LISTEN); }
YY_BREAK
case 35:
YY_RULE_SETUP
-#line 205 "cftoken.l"
+#line 205 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(BOC); }
YY_BREAK
case 36:
YY_RULE_SETUP
-#line 206 "cftoken.l"
+#line 206 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(X_ISAKMP); }
YY_BREAK
case 37:
YY_RULE_SETUP
-#line 207 "cftoken.l"
+#line 207 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(X_ISAKMP_NATT); }
YY_BREAK
case 38:
YY_RULE_SETUP
-#line 208 "cftoken.l"
+#line 208 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(X_ADMIN); }
YY_BREAK
case 39:
YY_RULE_SETUP
-#line 209 "cftoken.l"
+#line 209 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(ADMINSOCK); }
YY_BREAK
case 40:
YY_RULE_SETUP
-#line 210 "cftoken.l"
+#line 210 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DISABLED); }
YY_BREAK
case 41:
YY_RULE_SETUP
-#line 211 "cftoken.l"
+#line 211 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(STRICT_ADDRESS); }
YY_BREAK
case 42:
YY_RULE_SETUP
-#line 212 "cftoken.l"
+#line 212 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
/* radius config */
case 43:
YY_RULE_SETUP
-#line 215 "cftoken.l"
+#line 215 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_RAD; YYDB; return(RADCFG); }
YY_BREAK
case 44:
YY_RULE_SETUP
-#line 216 "cftoken.l"
+#line 216 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(BOC); }
YY_BREAK
case 45:
YY_RULE_SETUP
-#line 217 "cftoken.l"
+#line 217 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RAD_AUTH); }
YY_BREAK
case 46:
YY_RULE_SETUP
-#line 218 "cftoken.l"
+#line 218 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RAD_ACCT); }
YY_BREAK
case 47:
YY_RULE_SETUP
-#line 219 "cftoken.l"
+#line 219 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RAD_TIMEOUT); }
YY_BREAK
case 48:
YY_RULE_SETUP
-#line 220 "cftoken.l"
+#line 220 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RAD_RETRIES); }
YY_BREAK
case 49:
YY_RULE_SETUP
-#line 221 "cftoken.l"
+#line 221 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
/* ldap config */
case 50:
YY_RULE_SETUP
-#line 224 "cftoken.l"
+#line 224 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_LDAP; YYDB; return(LDAPCFG); }
YY_BREAK
case 51:
YY_RULE_SETUP
-#line 225 "cftoken.l"
+#line 225 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(BOC); }
YY_BREAK
case 52:
YY_RULE_SETUP
-#line 226 "cftoken.l"
+#line 226 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_PVER); }
YY_BREAK
case 53:
YY_RULE_SETUP
-#line 227 "cftoken.l"
+#line 227 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_HOST); }
YY_BREAK
case 54:
YY_RULE_SETUP
-#line 228 "cftoken.l"
+#line 228 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_PORT); }
YY_BREAK
case 55:
YY_RULE_SETUP
-#line 229 "cftoken.l"
+#line 229 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_BASE); }
YY_BREAK
case 56:
YY_RULE_SETUP
-#line 230 "cftoken.l"
+#line 230 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_SUBTREE); }
YY_BREAK
case 57:
YY_RULE_SETUP
-#line 231 "cftoken.l"
+#line 231 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_BIND_DN); }
YY_BREAK
case 58:
YY_RULE_SETUP
-#line 232 "cftoken.l"
+#line 232 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_BIND_PW); }
YY_BREAK
case 59:
YY_RULE_SETUP
-#line 233 "cftoken.l"
+#line 233 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_ATTR_USER); }
YY_BREAK
case 60:
YY_RULE_SETUP
-#line 234 "cftoken.l"
+#line 234 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_ATTR_ADDR); }
YY_BREAK
case 61:
YY_RULE_SETUP
-#line 235 "cftoken.l"
+#line 235 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_ATTR_MASK); }
YY_BREAK
case 62:
YY_RULE_SETUP
-#line 236 "cftoken.l"
+#line 236 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_ATTR_GROUP); }
YY_BREAK
case 63:
YY_RULE_SETUP
-#line 237 "cftoken.l"
+#line 237 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LDAP_ATTR_MEMBER); }
YY_BREAK
case 64:
YY_RULE_SETUP
-#line 238 "cftoken.l"
+#line 238 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
/* mode_cfg */
case 65:
YY_RULE_SETUP
-#line 241 "cftoken.l"
+#line 241 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_CFG; YYDB; return(MODECFG); }
YY_BREAK
case 66:
YY_RULE_SETUP
-#line 242 "cftoken.l"
+#line 242 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(BOC); }
YY_BREAK
case 67:
YY_RULE_SETUP
-#line 243 "cftoken.l"
+#line 243 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_NET4); }
YY_BREAK
case 68:
YY_RULE_SETUP
-#line 244 "cftoken.l"
+#line 244 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_MASK4); }
YY_BREAK
case 69:
YY_RULE_SETUP
-#line 245 "cftoken.l"
+#line 245 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_DNS4); }
YY_BREAK
case 70:
YY_RULE_SETUP
-#line 246 "cftoken.l"
+#line 246 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_NBNS4); }
YY_BREAK
case 71:
YY_RULE_SETUP
-#line 247 "cftoken.l"
+#line 247 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_NBNS4); }
YY_BREAK
case 72:
YY_RULE_SETUP
-#line 248 "cftoken.l"
+#line 248 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_DEFAULT_DOMAIN); }
YY_BREAK
case 73:
YY_RULE_SETUP
-#line 249 "cftoken.l"
+#line 249 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_AUTH_SOURCE); }
YY_BREAK
case 74:
YY_RULE_SETUP
-#line 250 "cftoken.l"
+#line 250 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_AUTH_GROUPS); }
YY_BREAK
case 75:
YY_RULE_SETUP
-#line 251 "cftoken.l"
+#line 251 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_GROUP_SOURCE); }
YY_BREAK
case 76:
YY_RULE_SETUP
-#line 252 "cftoken.l"
+#line 252 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_CONF_SOURCE); }
YY_BREAK
case 77:
YY_RULE_SETUP
-#line 253 "cftoken.l"
+#line 253 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_ACCOUNTING); }
YY_BREAK
case 78:
YY_RULE_SETUP
-#line 254 "cftoken.l"
+#line 254 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_SYSTEM); }
YY_BREAK
case 79:
YY_RULE_SETUP
-#line 255 "cftoken.l"
+#line 255 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_LOCAL); }
YY_BREAK
case 80:
YY_RULE_SETUP
-#line 256 "cftoken.l"
+#line 256 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_NONE); }
YY_BREAK
case 81:
YY_RULE_SETUP
-#line 257 "cftoken.l"
+#line 257 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_RADIUS); }
YY_BREAK
case 82:
YY_RULE_SETUP
-#line 258 "cftoken.l"
+#line 258 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_PAM); }
YY_BREAK
case 83:
YY_RULE_SETUP
-#line 259 "cftoken.l"
+#line 259 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_LDAP); }
YY_BREAK
case 84:
YY_RULE_SETUP
-#line 260 "cftoken.l"
+#line 260 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_POOL_SIZE); }
YY_BREAK
case 85:
YY_RULE_SETUP
-#line 261 "cftoken.l"
+#line 261 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_MOTD); }
YY_BREAK
case 86:
YY_RULE_SETUP
-#line 262 "cftoken.l"
+#line 262 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_AUTH_THROTTLE); }
YY_BREAK
case 87:
YY_RULE_SETUP
-#line 263 "cftoken.l"
+#line 263 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_SPLIT_NETWORK); }
YY_BREAK
case 88:
YY_RULE_SETUP
-#line 264 "cftoken.l"
+#line 264 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_SPLIT_LOCAL); }
YY_BREAK
case 89:
YY_RULE_SETUP
-#line 265 "cftoken.l"
+#line 265 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_SPLIT_INCLUDE); }
YY_BREAK
case 90:
YY_RULE_SETUP
-#line 266 "cftoken.l"
+#line 266 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_SPLIT_DNS); }
YY_BREAK
case 91:
YY_RULE_SETUP
-#line 267 "cftoken.l"
+#line 267 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_PFS_GROUP); }
YY_BREAK
case 92:
YY_RULE_SETUP
-#line 268 "cftoken.l"
+#line 268 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CFG_SAVE_PASSWD); }
YY_BREAK
case 93:
YY_RULE_SETUP
-#line 269 "cftoken.l"
+#line 269 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(COMMA); }
YY_BREAK
case 94:
YY_RULE_SETUP
-#line 270 "cftoken.l"
+#line 270 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
/* timer */
case 95:
YY_RULE_SETUP
-#line 273 "cftoken.l"
+#line 273 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_RTRY; YYDB; return(RETRY); }
YY_BREAK
case 96:
YY_RULE_SETUP
-#line 274 "cftoken.l"
+#line 274 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(BOC); }
YY_BREAK
case 97:
YY_RULE_SETUP
-#line 275 "cftoken.l"
+#line 275 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RETRY_COUNTER); }
YY_BREAK
case 98:
YY_RULE_SETUP
-#line 276 "cftoken.l"
+#line 276 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RETRY_INTERVAL); }
YY_BREAK
case 99:
YY_RULE_SETUP
-#line 277 "cftoken.l"
+#line 277 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RETRY_PERSEND); }
YY_BREAK
case 100:
YY_RULE_SETUP
-#line 278 "cftoken.l"
+#line 278 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RETRY_PHASE1); }
YY_BREAK
case 101:
YY_RULE_SETUP
-#line 279 "cftoken.l"
+#line 279 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(RETRY_PHASE2); }
YY_BREAK
case 102:
YY_RULE_SETUP
-#line 280 "cftoken.l"
+#line 280 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(NATT_KA); }
YY_BREAK
case 103:
YY_RULE_SETUP
-#line 281 "cftoken.l"
+#line 281 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
/* sainfo */
case 104:
YY_RULE_SETUP
-#line 284 "cftoken.l"
+#line 284 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_SAINF; YYDB; return(SAINFO); }
YY_BREAK
case 105:
YY_RULE_SETUP
-#line 285 "cftoken.l"
+#line 285 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(ANONYMOUS); }
YY_BREAK
case 106:
YY_RULE_SETUP
-#line 286 "cftoken.l"
+#line 286 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CLIENTADDR); }
YY_BREAK
case 107:
YY_RULE_SETUP
-#line 287 "cftoken.l"
+#line 287 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PORTANY); }
YY_BREAK
case 108:
YY_RULE_SETUP
-#line 288 "cftoken.l"
+#line 288 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(ANY); }
YY_BREAK
case 109:
YY_RULE_SETUP
-#line 289 "cftoken.l"
+#line 289 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(FROM); }
YY_BREAK
case 110:
YY_RULE_SETUP
-#line 290 "cftoken.l"
+#line 290 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(GROUP); }
YY_BREAK
/* sainfo spec */
case 111:
YY_RULE_SETUP
-#line 292 "cftoken.l"
+#line 292 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_SAINFS; return(BOC); }
YY_BREAK
case 112:
YY_RULE_SETUP
-#line 293 "cftoken.l"
+#line 293 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOS); }
YY_BREAK
case 113:
YY_RULE_SETUP
-#line 294 "cftoken.l"
+#line 294 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
case 114:
YY_RULE_SETUP
-#line 295 "cftoken.l"
+#line 295 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PFS_GROUP); }
YY_BREAK
case 115:
YY_RULE_SETUP
-#line 296 "cftoken.l"
+#line 296 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(REMOTEID); }
YY_BREAK
case 116:
YY_RULE_SETUP
-#line 297 "cftoken.l"
+#line 297 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(MY_IDENTIFIER); }
YY_BREAK
case 117:
YY_RULE_SETUP
-#line 298 "cftoken.l"
+#line 298 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETIME); }
YY_BREAK
case 118:
YY_RULE_SETUP
-#line 299 "cftoken.l"
+#line 299 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETYPE_TIME); }
YY_BREAK
case 119:
YY_RULE_SETUP
-#line 300 "cftoken.l"
+#line 300 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETYPE_BYTE); }
YY_BREAK
case 120:
YY_RULE_SETUP
-#line 301 "cftoken.l"
+#line 301 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algclass_ipsec_enc; return(ALGORITHM_CLASS); }
YY_BREAK
case 121:
YY_RULE_SETUP
-#line 302 "cftoken.l"
+#line 302 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algclass_ipsec_auth; return(ALGORITHM_CLASS); }
YY_BREAK
case 122:
YY_RULE_SETUP
-#line 303 "cftoken.l"
+#line 303 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algclass_ipsec_comp; return(ALGORITHM_CLASS); }
YY_BREAK
case 123:
YY_RULE_SETUP
-#line 304 "cftoken.l"
+#line 304 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(COMMA); }
YY_BREAK
/* remote */
case 124:
YY_RULE_SETUP
-#line 307 "cftoken.l"
+#line 307 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_RMT; YYDB; return(REMOTE); }
YY_BREAK
case 125:
YY_RULE_SETUP
-#line 308 "cftoken.l"
+#line 308 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(ANONYMOUS); }
YY_BREAK
case 126:
YY_RULE_SETUP
-#line 309 "cftoken.l"
+#line 309 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(INHERIT); }
YY_BREAK
case 127:
YY_RULE_SETUP
-#line 310 "cftoken.l"
+#line 310 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; YYDB; return(EOS); }
YY_BREAK
/* remote spec */
case 128:
YY_RULE_SETUP
-#line 312 "cftoken.l"
+#line 312 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_RMTS; return(BOC); }
YY_BREAK
case 129:
YY_RULE_SETUP
-#line 313 "cftoken.l"
+#line 313 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; return(EOC); }
YY_BREAK
case 130:
YY_RULE_SETUP
-#line 314 "cftoken.l"
+#line 314 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(REMOTE_ADDRESS); }
YY_BREAK
case 131:
YY_RULE_SETUP
-#line 315 "cftoken.l"
+#line 315 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(EXCHANGE_MODE); }
YY_BREAK
case 132:
YY_RULE_SETUP
-#line 316 "cftoken.l"
+#line 316 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; /* XXX ignored, but to be handled. */ ; }
YY_BREAK
case 133:
YY_RULE_SETUP
-#line 317 "cftoken.l"
+#line 317 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = ISAKMP_ETYPE_BASE; return(EXCHANGETYPE); }
YY_BREAK
case 134:
YY_RULE_SETUP
-#line 318 "cftoken.l"
+#line 318 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = ISAKMP_ETYPE_IDENT; return(EXCHANGETYPE); }
YY_BREAK
case 135:
YY_RULE_SETUP
-#line 319 "cftoken.l"
+#line 319 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = ISAKMP_ETYPE_AGG; return(EXCHANGETYPE); }
YY_BREAK
case 136:
YY_RULE_SETUP
-#line 320 "cftoken.l"
+#line 320 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DOI); }
YY_BREAK
case 137:
YY_RULE_SETUP
-#line 321 "cftoken.l"
+#line 321 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPSEC_DOI; return(DOITYPE); }
YY_BREAK
case 138:
YY_RULE_SETUP
-#line 322 "cftoken.l"
+#line 322 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(SITUATION); }
YY_BREAK
case 139:
YY_RULE_SETUP
-#line 323 "cftoken.l"
+#line 323 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPSECDOI_SIT_IDENTITY_ONLY; return(SITUATIONTYPE); }
YY_BREAK
case 140:
YY_RULE_SETUP
-#line 324 "cftoken.l"
+#line 324 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPSECDOI_SIT_SECRECY; return(SITUATIONTYPE); }
YY_BREAK
case 141:
YY_RULE_SETUP
-#line 325 "cftoken.l"
+#line 325 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPSECDOI_SIT_INTEGRITY; return(SITUATIONTYPE); }
YY_BREAK
case 142:
YY_RULE_SETUP
-#line 326 "cftoken.l"
+#line 326 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(MY_IDENTIFIER); }
YY_BREAK
case 143:
YY_RULE_SETUP
-#line 327 "cftoken.l"
+#line 327 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(XAUTH_LOGIN); /* formerly identifier type login */ }
YY_BREAK
case 144:
YY_RULE_SETUP
-#line 328 "cftoken.l"
+#line 328 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PEERS_IDENTIFIER); }
YY_BREAK
case 145:
YY_RULE_SETUP
-#line 329 "cftoken.l"
+#line 329 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(VERIFY_IDENTIFIER); }
YY_BREAK
case 146:
YY_RULE_SETUP
-#line 330 "cftoken.l"
+#line 330 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CERTIFICATE_TYPE); }
YY_BREAK
case 147:
YY_RULE_SETUP
-#line 331 "cftoken.l"
+#line 331 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(CA_TYPE); }
YY_BREAK
case 148:
YY_RULE_SETUP
-#line 332 "cftoken.l"
+#line 332 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = ISAKMP_CERT_X509SIGN; return(CERT_X509); }
YY_BREAK
case 149:
YY_RULE_SETUP
-#line 333 "cftoken.l"
+#line 333 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = ISAKMP_CERT_PLAINRSA; return(CERT_PLAINRSA); }
YY_BREAK
case 150:
YY_RULE_SETUP
-#line 334 "cftoken.l"
+#line 334 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PEERS_CERTFILE); }
YY_BREAK
case 151:
YY_RULE_SETUP
-#line 335 "cftoken.l"
+#line 335 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DNSSEC); }
YY_BREAK
case 152:
YY_RULE_SETUP
-#line 336 "cftoken.l"
+#line 336 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(VERIFY_CERT); }
YY_BREAK
case 153:
YY_RULE_SETUP
-#line 337 "cftoken.l"
+#line 337 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(SEND_CERT); }
YY_BREAK
case 154:
YY_RULE_SETUP
-#line 338 "cftoken.l"
+#line 338 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(SEND_CR); }
YY_BREAK
case 155:
YY_RULE_SETUP
-#line 339 "cftoken.l"
+#line 339 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(MATCH_EMPTY_CR); }
YY_BREAK
case 156:
YY_RULE_SETUP
-#line 340 "cftoken.l"
+#line 340 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DH_GROUP); }
YY_BREAK
case 157:
YY_RULE_SETUP
-#line 341 "cftoken.l"
+#line 341 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(NONCE_SIZE); }
YY_BREAK
case 158:
YY_RULE_SETUP
-#line 342 "cftoken.l"
+#line 342 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(GENERATE_POLICY); }
YY_BREAK
case 159:
YY_RULE_SETUP
-#line 343 "cftoken.l"
+#line 343 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = GENERATE_POLICY_UNIQUE; return(GENERATE_LEVEL); }
YY_BREAK
case 160:
YY_RULE_SETUP
-#line 344 "cftoken.l"
+#line 344 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = GENERATE_POLICY_REQUIRE; return(GENERATE_LEVEL); }
YY_BREAK
case 161:
YY_RULE_SETUP
-#line 345 "cftoken.l"
+#line 345 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(SUPPORT_PROXY); }
YY_BREAK
case 162:
YY_RULE_SETUP
-#line 346 "cftoken.l"
+#line 346 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(INITIAL_CONTACT); }
YY_BREAK
case 163:
YY_RULE_SETUP
-#line 347 "cftoken.l"
+#line 347 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(NAT_TRAVERSAL); }
YY_BREAK
case 164:
YY_RULE_SETUP
-#line 348 "cftoken.l"
+#line 348 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(REMOTE_FORCE_LEVEL); }
YY_BREAK
case 165:
YY_RULE_SETUP
-#line 349 "cftoken.l"
+#line 349 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PROPOSAL_CHECK); }
YY_BREAK
case 166:
YY_RULE_SETUP
-#line 350 "cftoken.l"
+#line 350 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = PROP_CHECK_OBEY; return(PROPOSAL_CHECK_LEVEL); }
YY_BREAK
case 167:
YY_RULE_SETUP
-#line 351 "cftoken.l"
+#line 351 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = PROP_CHECK_STRICT; return(PROPOSAL_CHECK_LEVEL); }
YY_BREAK
case 168:
YY_RULE_SETUP
-#line 352 "cftoken.l"
+#line 352 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = PROP_CHECK_EXACT; return(PROPOSAL_CHECK_LEVEL); }
YY_BREAK
case 169:
YY_RULE_SETUP
-#line 353 "cftoken.l"
+#line 353 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = PROP_CHECK_CLAIM; return(PROPOSAL_CHECK_LEVEL); }
YY_BREAK
case 170:
YY_RULE_SETUP
-#line 354 "cftoken.l"
+#line 354 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(KEEPALIVE); }
YY_BREAK
case 171:
YY_RULE_SETUP
-#line 355 "cftoken.l"
+#line 355 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PASSIVE); }
YY_BREAK
case 172:
YY_RULE_SETUP
-#line 356 "cftoken.l"
+#line 356 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETIME); }
YY_BREAK
case 173:
YY_RULE_SETUP
-#line 357 "cftoken.l"
+#line 357 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETYPE_TIME); }
YY_BREAK
case 174:
YY_RULE_SETUP
-#line 358 "cftoken.l"
+#line 358 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETYPE_BYTE); }
YY_BREAK
case 175:
YY_RULE_SETUP
-#line 359 "cftoken.l"
+#line 359 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DPD); }
YY_BREAK
case 176:
YY_RULE_SETUP
-#line 360 "cftoken.l"
+#line 360 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DPD_DELAY); }
YY_BREAK
case 177:
YY_RULE_SETUP
-#line 361 "cftoken.l"
+#line 361 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DPD_RETRY); }
YY_BREAK
case 178:
YY_RULE_SETUP
-#line 362 "cftoken.l"
+#line 362 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DPD_MAXFAIL); }
YY_BREAK
case 179:
YY_RULE_SETUP
-#line 363 "cftoken.l"
+#line 363 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PH1ID); }
YY_BREAK
case 180:
YY_RULE_SETUP
-#line 364 "cftoken.l"
+#line 364 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(IKE_FRAG); }
YY_BREAK
case 181:
YY_RULE_SETUP
-#line 365 "cftoken.l"
+#line 365 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(ESP_FRAG); }
YY_BREAK
case 182:
YY_RULE_SETUP
-#line 366 "cftoken.l"
+#line 366 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(SCRIPT); }
YY_BREAK
case 183:
YY_RULE_SETUP
-#line 367 "cftoken.l"
+#line 367 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PHASE1_UP); }
YY_BREAK
case 184:
YY_RULE_SETUP
-#line 368 "cftoken.l"
+#line 368 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PHASE1_DOWN); }
YY_BREAK
case 185:
YY_RULE_SETUP
-#line 369 "cftoken.l"
+#line 369 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(PHASE1_DEAD); }
YY_BREAK
case 186:
YY_RULE_SETUP
-#line 370 "cftoken.l"
+#line 370 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(MODE_CFG); }
YY_BREAK
case 187:
YY_RULE_SETUP
-#line 371 "cftoken.l"
+#line 371 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(WEAK_PHASE1_CHECK); }
YY_BREAK
case 188:
YY_RULE_SETUP
-#line 372 "cftoken.l"
+#line 372 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(REKEY); }
YY_BREAK
/* remote proposal */
case 189:
YY_RULE_SETUP
-#line 374 "cftoken.l"
+#line 374 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_RMTP; YYDB; return(PROPOSAL); }
YY_BREAK
case 190:
YY_RULE_SETUP
-#line 375 "cftoken.l"
+#line 375 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(BOC); }
YY_BREAK
case 191:
YY_RULE_SETUP
-#line 376 "cftoken.l"
+#line 376 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_RMTS; return(EOC); }
YY_BREAK
case 192:
YY_RULE_SETUP
-#line 377 "cftoken.l"
+#line 377 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETIME); }
YY_BREAK
case 193:
YY_RULE_SETUP
-#line 378 "cftoken.l"
+#line 378 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETYPE_TIME); }
YY_BREAK
case 194:
YY_RULE_SETUP
-#line 379 "cftoken.l"
+#line 379 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(LIFETYPE_BYTE); }
YY_BREAK
case 195:
YY_RULE_SETUP
-#line 380 "cftoken.l"
+#line 380 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algclass_isakmp_enc; return(ALGORITHM_CLASS); }
YY_BREAK
case 196:
YY_RULE_SETUP
-#line 381 "cftoken.l"
+#line 381 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algclass_isakmp_ameth; return(ALGORITHM_CLASS); }
YY_BREAK
case 197:
YY_RULE_SETUP
-#line 382 "cftoken.l"
+#line 382 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algclass_isakmp_hash; return(ALGORITHM_CLASS); }
YY_BREAK
case 198:
YY_RULE_SETUP
-#line 383 "cftoken.l"
+#line 383 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(DH_GROUP); }
YY_BREAK
case 199:
YY_RULE_SETUP
-#line 384 "cftoken.l"
+#line 384 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(GSS_ID); }
YY_BREAK
case 200:
YY_RULE_SETUP
-#line 385 "cftoken.l"
+#line 385 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(GSS_ID); } /* for back compatibility */
YY_BREAK
/* GSS ID encoding type (global) */
case 201:
YY_RULE_SETUP
-#line 388 "cftoken.l"
+#line 388 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_GSSENC; YYDB; return(GSS_ID_ENC); }
YY_BREAK
case 202:
YY_RULE_SETUP
-#line 389 "cftoken.l"
+#line 389 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LC_GSSENC_LATIN1;
return(GSS_ID_ENCTYPE); }
YY_BREAK
case 203:
YY_RULE_SETUP
-#line 391 "cftoken.l"
+#line 391 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = LC_GSSENC_UTF16LE;
return(GSS_ID_ENCTYPE); }
YY_BREAK
case 204:
YY_RULE_SETUP
-#line 393 "cftoken.l"
+#line 393 "../../ipsec-tools/src/racoon/cftoken.l"
{ BEGIN S_INI; YYDB; return(EOS); }
YY_BREAK
/* parameter */
case 205:
YY_RULE_SETUP
-#line 396 "cftoken.l"
+#line 396 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = TRUE; return(SWITCH); }
YY_BREAK
case 206:
YY_RULE_SETUP
-#line 397 "cftoken.l"
+#line 397 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = FALSE; return(SWITCH); }
YY_BREAK
/* prefix */
case 207:
YY_RULE_SETUP
-#line 400 "cftoken.l"
+#line 400 "../../ipsec-tools/src/racoon/cftoken.l"
{
YYD;
- yytext++;
- yylval.num = atoi(yytext);
+ racoonyytext++;
+ yylval.num = atoi(racoonyytext);
return(PREFIX);
}
YY_BREAK
/* port number */
case 208:
YY_RULE_SETUP
-#line 408 "cftoken.l"
+#line 408 "../../ipsec-tools/src/racoon/cftoken.l"
{
- char *p = yytext;
+ char *p = racoonyytext;
YYD;
while (*++p != ']') ;
*p = 0;
- yytext++;
- yylval.num = atoi(yytext);
+ racoonyytext++;
+ yylval.num = atoi(racoonyytext);
return(PORT);
}
YY_BREAK
/* address range */
case 209:
YY_RULE_SETUP
-#line 419 "cftoken.l"
+#line 419 "../../ipsec-tools/src/racoon/cftoken.l"
{
YYD;
- yytext++;
- yylval.val = vmalloc(yyleng + 1);
+ racoonyytext++;
+ yylval.val = vmalloc(racoonyyleng + 1);
if (yylval.val == NULL) {
yyerror("vmalloc failed");
return -1;
}
- memcpy(yylval.val->v, yytext, yylval.val->l);
+ memcpy(yylval.val->v, racoonyytext, yylval.val->l);
return(ADDRRANGE);
}
YY_BREAK
/* upper protocol */
case 210:
YY_RULE_SETUP
-#line 432 "cftoken.l"
+#line 432 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPPROTO_ESP; return(UL_PROTO); }
YY_BREAK
case 211:
YY_RULE_SETUP
-#line 433 "cftoken.l"
+#line 433 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPPROTO_AH; return(UL_PROTO); }
YY_BREAK
case 212:
YY_RULE_SETUP
-#line 434 "cftoken.l"
+#line 434 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPPROTO_IPCOMP; return(UL_PROTO); }
YY_BREAK
case 213:
YY_RULE_SETUP
-#line 435 "cftoken.l"
+#line 435 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPPROTO_ICMP; return(UL_PROTO); }
YY_BREAK
case 214:
YY_RULE_SETUP
-#line 436 "cftoken.l"
+#line 436 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPPROTO_ICMPV6; return(UL_PROTO); }
YY_BREAK
case 215:
YY_RULE_SETUP
-#line 437 "cftoken.l"
+#line 437 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPPROTO_TCP; return(UL_PROTO); }
YY_BREAK
case 216:
YY_RULE_SETUP
-#line 438 "cftoken.l"
+#line 438 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPPROTO_UDP; return(UL_PROTO); }
YY_BREAK
case 217:
YY_RULE_SETUP
-#line 439 "cftoken.l"
+#line 439 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IPPROTO_GRE; return(UL_PROTO); }
YY_BREAK
/* algorithm type */
case 218:
YY_RULE_SETUP
-#line 442 "cftoken.l"
+#line 442 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_des_iv64; return(ALGORITHMTYPE); }
YY_BREAK
case 219:
YY_RULE_SETUP
-#line 443 "cftoken.l"
+#line 443 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_des; return(ALGORITHMTYPE); }
YY_BREAK
case 220:
YY_RULE_SETUP
-#line 444 "cftoken.l"
+#line 444 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_3des; return(ALGORITHMTYPE); }
YY_BREAK
case 221:
YY_RULE_SETUP
-#line 445 "cftoken.l"
+#line 445 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_rc5; return(ALGORITHMTYPE); }
YY_BREAK
case 222:
YY_RULE_SETUP
-#line 446 "cftoken.l"
+#line 446 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_idea; return(ALGORITHMTYPE); }
YY_BREAK
case 223:
YY_RULE_SETUP
-#line 447 "cftoken.l"
+#line 447 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_cast128; return(ALGORITHMTYPE); }
YY_BREAK
case 224:
YY_RULE_SETUP
-#line 448 "cftoken.l"
+#line 448 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_blowfish; return(ALGORITHMTYPE); }
YY_BREAK
case 225:
YY_RULE_SETUP
-#line 449 "cftoken.l"
+#line 449 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_3idea; return(ALGORITHMTYPE); }
YY_BREAK
case 226:
YY_RULE_SETUP
-#line 450 "cftoken.l"
+#line 450 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_des_iv32; return(ALGORITHMTYPE); }
YY_BREAK
case 227:
YY_RULE_SETUP
-#line 451 "cftoken.l"
+#line 451 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_rc4; return(ALGORITHMTYPE); }
YY_BREAK
case 228:
YY_RULE_SETUP
-#line 452 "cftoken.l"
+#line 452 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_null_enc; return(ALGORITHMTYPE); }
YY_BREAK
case 229:
YY_RULE_SETUP
-#line 453 "cftoken.l"
+#line 453 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_null_enc; return(ALGORITHMTYPE); }
YY_BREAK
case 230:
YY_RULE_SETUP
-#line 454 "cftoken.l"
+#line 454 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_aes; return(ALGORITHMTYPE); }
YY_BREAK
case 231:
YY_RULE_SETUP
-#line 455 "cftoken.l"
+#line 455 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_aes; return(ALGORITHMTYPE); }
YY_BREAK
case 232:
YY_RULE_SETUP
-#line 456 "cftoken.l"
+#line 456 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_twofish; return(ALGORITHMTYPE); }
YY_BREAK
case 233:
YY_RULE_SETUP
-#line 457 "cftoken.l"
+#line 457 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_camellia; return(ALGORITHMTYPE); }
YY_BREAK
case 234:
YY_RULE_SETUP
-#line 458 "cftoken.l"
+#line 458 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_non_auth; return(ALGORITHMTYPE); }
YY_BREAK
case 235:
YY_RULE_SETUP
-#line 459 "cftoken.l"
+#line 459 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_hmac_md5; return(ALGORITHMTYPE); }
YY_BREAK
case 236:
YY_RULE_SETUP
-#line 460 "cftoken.l"
+#line 460 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha1; return(ALGORITHMTYPE); }
YY_BREAK
case 237:
YY_RULE_SETUP
-#line 461 "cftoken.l"
+#line 461 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_256; return(ALGORITHMTYPE); }
YY_BREAK
case 238:
YY_RULE_SETUP
-#line 462 "cftoken.l"
+#line 462 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_256; return(ALGORITHMTYPE); }
YY_BREAK
case 239:
YY_RULE_SETUP
-#line 463 "cftoken.l"
+#line 463 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_384; return(ALGORITHMTYPE); }
YY_BREAK
case 240:
YY_RULE_SETUP
-#line 464 "cftoken.l"
+#line 464 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_384; return(ALGORITHMTYPE); }
YY_BREAK
case 241:
YY_RULE_SETUP
-#line 465 "cftoken.l"
+#line 465 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_512; return(ALGORITHMTYPE); }
YY_BREAK
case 242:
YY_RULE_SETUP
-#line 466 "cftoken.l"
+#line 466 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_512; return(ALGORITHMTYPE); }
YY_BREAK
case 243:
YY_RULE_SETUP
-#line 467 "cftoken.l"
+#line 467 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_des_mac; return(ALGORITHMTYPE); }
YY_BREAK
case 244:
YY_RULE_SETUP
-#line 468 "cftoken.l"
+#line 468 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_kpdk; return(ALGORITHMTYPE); }
YY_BREAK
case 245:
YY_RULE_SETUP
-#line 469 "cftoken.l"
+#line 469 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_md5; return(ALGORITHMTYPE); }
YY_BREAK
case 246:
YY_RULE_SETUP
-#line 470 "cftoken.l"
+#line 470 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_sha1; return(ALGORITHMTYPE); }
YY_BREAK
case 247:
YY_RULE_SETUP
-#line 471 "cftoken.l"
+#line 471 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_tiger; return(ALGORITHMTYPE); }
YY_BREAK
case 248:
YY_RULE_SETUP
-#line 472 "cftoken.l"
+#line 472 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_sha2_256; return(ALGORITHMTYPE); }
YY_BREAK
case 249:
YY_RULE_SETUP
-#line 473 "cftoken.l"
+#line 473 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_sha2_256; return(ALGORITHMTYPE); }
YY_BREAK
case 250:
YY_RULE_SETUP
-#line 474 "cftoken.l"
+#line 474 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_sha2_384; return(ALGORITHMTYPE); }
YY_BREAK
case 251:
YY_RULE_SETUP
-#line 475 "cftoken.l"
+#line 475 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_sha2_384; return(ALGORITHMTYPE); }
YY_BREAK
case 252:
YY_RULE_SETUP
-#line 476 "cftoken.l"
+#line 476 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_sha2_512; return(ALGORITHMTYPE); }
YY_BREAK
case 253:
YY_RULE_SETUP
-#line 477 "cftoken.l"
+#line 477 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_sha2_512; return(ALGORITHMTYPE); }
YY_BREAK
case 254:
YY_RULE_SETUP
-#line 478 "cftoken.l"
+#line 478 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_oui; return(ALGORITHMTYPE); }
YY_BREAK
case 255:
YY_RULE_SETUP
-#line 479 "cftoken.l"
+#line 479 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_deflate; return(ALGORITHMTYPE); }
YY_BREAK
case 256:
YY_RULE_SETUP
-#line 480 "cftoken.l"
+#line 480 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_lzs; return(ALGORITHMTYPE); }
YY_BREAK
case 257:
YY_RULE_SETUP
-#line 481 "cftoken.l"
+#line 481 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_modp768; return(ALGORITHMTYPE); }
YY_BREAK
case 258:
YY_RULE_SETUP
-#line 482 "cftoken.l"
+#line 482 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_modp1024; return(ALGORITHMTYPE); }
YY_BREAK
case 259:
YY_RULE_SETUP
-#line 483 "cftoken.l"
+#line 483 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_modp1536; return(ALGORITHMTYPE); }
YY_BREAK
case 260:
YY_RULE_SETUP
-#line 484 "cftoken.l"
+#line 484 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_ec2n155; return(ALGORITHMTYPE); }
YY_BREAK
case 261:
YY_RULE_SETUP
-#line 485 "cftoken.l"
+#line 485 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_ec2n185; return(ALGORITHMTYPE); }
YY_BREAK
case 262:
YY_RULE_SETUP
-#line 486 "cftoken.l"
+#line 486 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_modp2048; return(ALGORITHMTYPE); }
YY_BREAK
case 263:
YY_RULE_SETUP
-#line 487 "cftoken.l"
+#line 487 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_modp3072; return(ALGORITHMTYPE); }
YY_BREAK
case 264:
YY_RULE_SETUP
-#line 488 "cftoken.l"
+#line 488 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_modp4096; return(ALGORITHMTYPE); }
YY_BREAK
case 265:
YY_RULE_SETUP
-#line 489 "cftoken.l"
+#line 489 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_modp6144; return(ALGORITHMTYPE); }
YY_BREAK
case 266:
YY_RULE_SETUP
-#line 490 "cftoken.l"
+#line 490 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_modp8192; return(ALGORITHMTYPE); }
YY_BREAK
case 267:
YY_RULE_SETUP
-#line 491 "cftoken.l"
+#line 491 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_psk; return(ALGORITHMTYPE); }
YY_BREAK
case 268:
YY_RULE_SETUP
-#line 492 "cftoken.l"
+#line 492 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_rsasig; return(ALGORITHMTYPE); }
YY_BREAK
case 269:
YY_RULE_SETUP
-#line 493 "cftoken.l"
+#line 493 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_dsssig; return(ALGORITHMTYPE); }
YY_BREAK
case 270:
YY_RULE_SETUP
-#line 494 "cftoken.l"
+#line 494 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_rsaenc; return(ALGORITHMTYPE); }
YY_BREAK
case 271:
YY_RULE_SETUP
-#line 495 "cftoken.l"
+#line 495 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_rsarev; return(ALGORITHMTYPE); }
YY_BREAK
case 272:
YY_RULE_SETUP
-#line 496 "cftoken.l"
+#line 496 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = algtype_gssapikrb; return(ALGORITHMTYPE); }
YY_BREAK
case 273:
YY_RULE_SETUP
-#line 497 "cftoken.l"
+#line 497 "../../ipsec-tools/src/racoon/cftoken.l"
{
#ifdef ENABLE_HYBRID
YYD; yylval.num = algtype_hybrid_rsa_s; return(ALGORITHMTYPE);
@@ -3388,7 +3421,7 @@ YY_RULE_SETUP
YY_BREAK
case 274:
YY_RULE_SETUP
-#line 504 "cftoken.l"
+#line 504 "../../ipsec-tools/src/racoon/cftoken.l"
{
#ifdef ENABLE_HYBRID
YYD; yylval.num = algtype_hybrid_dss_s; return(ALGORITHMTYPE);
@@ -3399,7 +3432,7 @@ YY_RULE_SETUP
YY_BREAK
case 275:
YY_RULE_SETUP
-#line 511 "cftoken.l"
+#line 511 "../../ipsec-tools/src/racoon/cftoken.l"
{
#ifdef ENABLE_HYBRID
YYD; yylval.num = algtype_hybrid_rsa_c; return(ALGORITHMTYPE);
@@ -3410,7 +3443,7 @@ YY_RULE_SETUP
YY_BREAK
case 276:
YY_RULE_SETUP
-#line 518 "cftoken.l"
+#line 518 "../../ipsec-tools/src/racoon/cftoken.l"
{
#ifdef ENABLE_HYBRID
YYD; yylval.num = algtype_hybrid_dss_c; return(ALGORITHMTYPE);
@@ -3421,7 +3454,7 @@ YY_RULE_SETUP
YY_BREAK
case 277:
YY_RULE_SETUP
-#line 525 "cftoken.l"
+#line 525 "../../ipsec-tools/src/racoon/cftoken.l"
{
#ifdef ENABLE_HYBRID
YYD; yylval.num = algtype_xauth_psk_s; return(ALGORITHMTYPE);
@@ -3432,7 +3465,7 @@ YY_RULE_SETUP
YY_BREAK
case 278:
YY_RULE_SETUP
-#line 532 "cftoken.l"
+#line 532 "../../ipsec-tools/src/racoon/cftoken.l"
{
#ifdef ENABLE_HYBRID
YYD; yylval.num = algtype_xauth_psk_c; return(ALGORITHMTYPE);
@@ -3443,7 +3476,7 @@ YY_RULE_SETUP
YY_BREAK
case 279:
YY_RULE_SETUP
-#line 539 "cftoken.l"
+#line 539 "../../ipsec-tools/src/racoon/cftoken.l"
{
#ifdef ENABLE_HYBRID
YYD; yylval.num = algtype_xauth_rsa_s; return(ALGORITHMTYPE);
@@ -3454,7 +3487,7 @@ YY_RULE_SETUP
YY_BREAK
case 280:
YY_RULE_SETUP
-#line 546 "cftoken.l"
+#line 546 "../../ipsec-tools/src/racoon/cftoken.l"
{
#ifdef ENABLE_HYBRID
YYD; yylval.num = algtype_xauth_rsa_c; return(ALGORITHMTYPE);
@@ -3466,111 +3499,111 @@ YY_RULE_SETUP
/* identifier type */
case 281:
YY_RULE_SETUP
-#line 556 "cftoken.l"
+#line 556 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IDTYPE_USERFQDN; return(IDENTIFIERTYPE); }
YY_BREAK
case 282:
YY_RULE_SETUP
-#line 557 "cftoken.l"
+#line 557 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IDTYPE_FQDN; return(IDENTIFIERTYPE); }
YY_BREAK
case 283:
YY_RULE_SETUP
-#line 558 "cftoken.l"
+#line 558 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IDTYPE_KEYID; return(IDENTIFIERTYPE); }
YY_BREAK
case 284:
YY_RULE_SETUP
-#line 559 "cftoken.l"
+#line 559 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IDTYPE_ADDRESS; return(IDENTIFIERTYPE); }
YY_BREAK
case 285:
YY_RULE_SETUP
-#line 560 "cftoken.l"
+#line 560 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IDTYPE_SUBNET; return(IDENTIFIERTYPE); }
YY_BREAK
case 286:
YY_RULE_SETUP
-#line 561 "cftoken.l"
+#line 561 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IDTYPE_ASN1DN; return(IDENTIFIERTYPE); }
YY_BREAK
/* identifier qualifier */
case 287:
YY_RULE_SETUP
-#line 564 "cftoken.l"
+#line 564 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IDQUAL_TAG; return(IDENTIFIERQUAL); }
YY_BREAK
case 288:
YY_RULE_SETUP
-#line 565 "cftoken.l"
+#line 565 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = IDQUAL_FILE; return(IDENTIFIERQUAL); }
YY_BREAK
/* units */
case 289:
YY_RULE_SETUP
-#line 568 "cftoken.l"
+#line 568 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(UNITTYPE_BYTE); }
YY_BREAK
case 290:
YY_RULE_SETUP
-#line 569 "cftoken.l"
+#line 569 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(UNITTYPE_KBYTES); }
YY_BREAK
case 291:
YY_RULE_SETUP
-#line 570 "cftoken.l"
+#line 570 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(UNITTYPE_MBYTES); }
YY_BREAK
case 292:
YY_RULE_SETUP
-#line 571 "cftoken.l"
+#line 571 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(UNITTYPE_TBYTES); }
YY_BREAK
case 293:
YY_RULE_SETUP
-#line 572 "cftoken.l"
+#line 572 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(UNITTYPE_SEC); }
YY_BREAK
case 294:
YY_RULE_SETUP
-#line 573 "cftoken.l"
+#line 573 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(UNITTYPE_MIN); }
YY_BREAK
case 295:
YY_RULE_SETUP
-#line 574 "cftoken.l"
+#line 574 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; return(UNITTYPE_HOUR); }
YY_BREAK
/* boolean */
case 296:
YY_RULE_SETUP
-#line 577 "cftoken.l"
+#line 577 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = TRUE; return(BOOLEAN); }
YY_BREAK
case 297:
YY_RULE_SETUP
-#line 578 "cftoken.l"
+#line 578 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; yylval.num = FALSE; return(BOOLEAN); }
YY_BREAK
case 298:
YY_RULE_SETUP
-#line 580 "cftoken.l"
+#line 580 "../../ipsec-tools/src/racoon/cftoken.l"
{
char *bp;
YYD;
- yylval.num = strtoul(yytext, &bp, 10);
+ yylval.num = strtoul(racoonyytext, &bp, 10);
return(NUMBER);
}
YY_BREAK
case 299:
YY_RULE_SETUP
-#line 588 "cftoken.l"
+#line 588 "../../ipsec-tools/src/racoon/cftoken.l"
{
char *p;
YYD;
- yylval.val = vmalloc(yyleng + (yyleng & 1) + 1);
+ yylval.val = vmalloc(racoonyyleng + (racoonyyleng & 1) + 1);
if (yylval.val == NULL) {
yyerror("vmalloc failed");
return -1;
@@ -3581,9 +3614,9 @@ YY_RULE_SETUP
*p++ = 'x';
/* fixed string if length is odd. */
- if (yyleng & 1)
+ if (racoonyyleng & 1)
*p++ = '0';
- memcpy(p, &yytext[2], yyleng - 1);
+ memcpy(p, &racoonyytext[2], racoonyyleng - 1);
return(HEXSTRING);
}
@@ -3591,36 +3624,36 @@ YY_RULE_SETUP
case 300:
/* rule 300 can match eol */
YY_RULE_SETUP
-#line 610 "cftoken.l"
+#line 610 "../../ipsec-tools/src/racoon/cftoken.l"
{
- char *p = yytext;
+ char *p = racoonyytext;
YYD;
while (*++p != '"') ;
*p = '\0';
- yylval.val = vmalloc(yyleng - 1);
+ yylval.val = vmalloc(racoonyyleng - 1);
if (yylval.val == NULL) {
yyerror("vmalloc failed");
return -1;
}
- memcpy(yylval.val->v, &yytext[1], yylval.val->l);
+ memcpy(yylval.val->v, &racoonyytext[1], yylval.val->l);
return(QUOTEDSTRING);
}
YY_BREAK
case 301:
YY_RULE_SETUP
-#line 627 "cftoken.l"
+#line 627 "../../ipsec-tools/src/racoon/cftoken.l"
{
YYD;
- yylval.val = vmalloc(yyleng + 1);
+ yylval.val = vmalloc(racoonyyleng + 1);
if (yylval.val == NULL) {
yyerror("vmalloc failed");
return -1;
}
- memcpy(yylval.val->v, yytext, yylval.val->l);
+ memcpy(yylval.val->v, racoonyytext, yylval.val->l);
return(ADDRSTRING);
}
@@ -3645,9 +3678,9 @@ case YY_STATE_EOF(S_RMTS):
case YY_STATE_EOF(S_RMTP):
case YY_STATE_EOF(S_SA):
case YY_STATE_EOF(S_GSSENC):
-#line 640 "cftoken.l"
+#line 640 "../../ipsec-tools/src/racoon/cftoken.l"
{
- yy_delete_buffer(YY_CURRENT_BUFFER);
+ racoonyy_delete_buffer(YY_CURRENT_BUFFER);
fclose (incstack[incstackp].fp);
incstack[incstackp].fp = NULL;
racoon_free(incstack[incstackp].path);
@@ -3663,50 +3696,50 @@ case YY_STATE_EOF(S_GSSENC):
incstackp--;
goto nextfile;
}
- yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE));
+ racoonyy_switch_to_buffer(racoonyy_create_buffer(racoonyyin,YY_BUF_SIZE));
BEGIN(S_INI);
} else {
globfree(&incstack[incstackp].matches);
if (incstackp == 0)
yyterminate();
else
- yy_switch_to_buffer(incstack[incstackp].prevstate);
+ racoonyy_switch_to_buffer(incstack[incstackp].prevstate);
}
}
YY_BREAK
/* ... */
case 302:
YY_RULE_SETUP
-#line 669 "cftoken.l"
+#line 669 "../../ipsec-tools/src/racoon/cftoken.l"
{ ; }
YY_BREAK
case 303:
/* rule 303 can match eol */
YY_RULE_SETUP
-#line 670 "cftoken.l"
+#line 670 "../../ipsec-tools/src/racoon/cftoken.l"
{ incstack[incstackp].lineno++; }
YY_BREAK
case 304:
YY_RULE_SETUP
-#line 671 "cftoken.l"
+#line 671 "../../ipsec-tools/src/racoon/cftoken.l"
{ YYD; }
YY_BREAK
case 305:
YY_RULE_SETUP
-#line 672 "cftoken.l"
+#line 672 "../../ipsec-tools/src/racoon/cftoken.l"
{ return(EOS); }
YY_BREAK
case 306:
YY_RULE_SETUP
-#line 673 "cftoken.l"
+#line 673 "../../ipsec-tools/src/racoon/cftoken.l"
{ yymore(); }
YY_BREAK
case 307:
YY_RULE_SETUP
-#line 675 "cftoken.l"
+#line 675 "../../ipsec-tools/src/racoon/cftoken.l"
ECHO;
YY_BREAK
-#line 3710 "cftoken.c"
+#line 3743 "<stdout>"
case YY_END_OF_BUFFER:
{
@@ -3721,15 +3754,15 @@ ECHO;
{
/* We're scanning a new file or input source. It's
* possible that this happened because the user
- * just pointed yyin at a new source and called
- * yylex(). If so, then we have to assure
+ * just pointed racoonyyin at a new source and called
+ * racoonyylex(). If so, then we have to assure
* consistency between YY_CURRENT_BUFFER and our
* globals. Here is the right place to do so, because
* this is the first action (other than possibly a
* back-up) that will match for the new input source.
*/
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
+ YY_CURRENT_BUFFER_LVALUE->yy_input_file = racoonyyin;
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
}
@@ -3782,11 +3815,11 @@ ECHO;
{
(yy_did_buffer_switch_on_eof) = 0;
- if ( yywrap( ) )
+ if ( racoonyywrap( ) )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
- * yytext, we can now set up
+ * racoonyytext, we can now set up
* yy_c_buf_p so that if some total
* hoser (like flex itself) wants to
* call the scanner after we return the
@@ -3835,7 +3868,7 @@ ECHO;
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
-} /* end of yylex */
+} /* end of racoonyylex */
/* yy_get_next_buffer - try to read in a new buffer
*
@@ -3846,9 +3879,9 @@ ECHO;
*/
static int yy_get_next_buffer (void)
{
- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
- register char *source = (yytext_ptr);
- register int number_to_move, i;
+ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
+ char *source = (yytext_ptr);
+ int number_to_move, i;
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
@@ -3913,7 +3946,7 @@ static int yy_get_next_buffer (void)
b->yy_ch_buf = (char *)
/* Include room in for 2 EOB chars. */
- yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
+ racoonyyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
}
else
/* Can't grow it, we don't own it. */
@@ -3945,7 +3978,7 @@ static int yy_get_next_buffer (void)
if ( number_to_move == YY_MORE_ADJ )
{
ret_val = EOB_ACT_END_OF_FILE;
- yyrestart(yyin );
+ racoonyyrestart(racoonyyin );
}
else
@@ -3962,7 +3995,7 @@ static int yy_get_next_buffer (void)
if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) racoonyyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
}
@@ -3980,14 +4013,14 @@ static int yy_get_next_buffer (void)
static yy_state_type yy_get_previous_state (void)
{
- register yy_state_type yy_current_state;
- register char *yy_cp;
+ yy_state_type yy_current_state;
+ char *yy_cp;
yy_current_state = (yy_start);
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -4012,10 +4045,10 @@ static int yy_get_next_buffer (void)
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
- register int yy_is_jam;
- register char *yy_cp = (yy_c_buf_p);
+ int yy_is_jam;
+ char *yy_cp = (yy_c_buf_p);
- register YY_CHAR yy_c = 1;
+ YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -4033,22 +4066,23 @@ static int yy_get_next_buffer (void)
return yy_is_jam ? 0 : yy_current_state;
}
- static void yyunput (int c, register char * yy_bp )
+#ifndef YY_NO_UNPUT
+ static void yyunput (int c, char * yy_bp )
{
- register char *yy_cp;
+ char *yy_cp;
yy_cp = (yy_c_buf_p);
- /* undo effects of setting up yytext */
+ /* undo effects of setting up racoonyytext */
*yy_cp = (yy_hold_char);
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
- register yy_size_t number_to_move = (yy_n_chars) + 2;
- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
+ yy_size_t number_to_move = (yy_n_chars) + 2;
+ char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
- register char *source =
+ char *source =
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
@@ -4069,6 +4103,7 @@ static int yy_get_next_buffer (void)
(yy_hold_char) = *yy_cp;
(yy_c_buf_p) = yy_cp;
}
+#endif /* ifndef YY_NO_UNPUT */
#ifndef YY_NO_INPUT
#ifdef __cplusplus
@@ -4111,13 +4146,13 @@ static int yy_get_next_buffer (void)
*/
/* Reset buffer status. */
- yyrestart(yyin );
+ racoonyyrestart(racoonyyin );
/*FALLTHROUGH*/
case EOB_ACT_END_OF_FILE:
{
- if ( yywrap( ) )
+ if ( racoonyywrap( ) )
return EOF;
if ( ! (yy_did_buffer_switch_on_eof) )
@@ -4137,7 +4172,7 @@ static int yy_get_next_buffer (void)
}
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
- *(yy_c_buf_p) = '\0'; /* preserve yytext */
+ *(yy_c_buf_p) = '\0'; /* preserve racoonyytext */
(yy_hold_char) = *++(yy_c_buf_p);
return c;
@@ -4149,32 +4184,32 @@ static int yy_get_next_buffer (void)
*
* @note This function does not reset the start condition to @c INITIAL .
*/
- void yyrestart (FILE * input_file )
+ void racoonyyrestart (FILE * input_file )
{
if ( ! YY_CURRENT_BUFFER ){
- yyensure_buffer_stack ();
+ racoonyyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE );
+ racoonyy_create_buffer(racoonyyin,YY_BUF_SIZE );
}
- yy_init_buffer(YY_CURRENT_BUFFER,input_file );
- yy_load_buffer_state( );
+ racoonyy_init_buffer(YY_CURRENT_BUFFER,input_file );
+ racoonyy_load_buffer_state( );
}
/** Switch to a different input buffer.
* @param new_buffer The new input buffer.
*
*/
- void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
+ void racoonyy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
{
/* TODO. We should be able to replace this entire function body
* with
- * yypop_buffer_state();
- * yypush_buffer_state(new_buffer);
+ * racoonyypop_buffer_state();
+ * racoonyypush_buffer_state(new_buffer);
*/
- yyensure_buffer_stack ();
+ racoonyyensure_buffer_stack ();
if ( YY_CURRENT_BUFFER == new_buffer )
return;
@@ -4187,21 +4222,21 @@ static int yy_get_next_buffer (void)
}
YY_CURRENT_BUFFER_LVALUE = new_buffer;
- yy_load_buffer_state( );
+ racoonyy_load_buffer_state( );
/* We don't actually know whether we did this switch during
- * EOF (yywrap()) processing, but the only time this flag
- * is looked at is after yywrap() is called, so it's safe
+ * EOF (racoonyywrap()) processing, but the only time this flag
+ * is looked at is after racoonyywrap() is called, so it's safe
* to go ahead and always set it.
*/
(yy_did_buffer_switch_on_eof) = 1;
}
-static void yy_load_buffer_state (void)
+static void racoonyy_load_buffer_state (void)
{
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
- yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
+ racoonyyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
(yy_hold_char) = *(yy_c_buf_p);
}
@@ -4211,35 +4246,35 @@ static void yy_load_buffer_state (void)
*
* @return the allocated buffer state.
*/
- YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
+ YY_BUFFER_STATE racoonyy_create_buffer (FILE * file, int size )
{
YY_BUFFER_STATE b;
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
+ b = (YY_BUFFER_STATE) racoonyyalloc(sizeof( struct yy_buffer_state ) );
if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+ YY_FATAL_ERROR( "out of dynamic memory in racoonyy_create_buffer()" );
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
- b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
+ b->yy_ch_buf = (char *) racoonyyalloc(b->yy_buf_size + 2 );
if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+ YY_FATAL_ERROR( "out of dynamic memory in racoonyy_create_buffer()" );
b->yy_is_our_buffer = 1;
- yy_init_buffer(b,file );
+ racoonyy_init_buffer(b,file );
return b;
}
/** Destroy the buffer.
- * @param b a buffer created with yy_create_buffer()
+ * @param b a buffer created with racoonyy_create_buffer()
*
*/
- void yy_delete_buffer (YY_BUFFER_STATE b )
+ void racoonyy_delete_buffer (YY_BUFFER_STATE b )
{
if ( ! b )
@@ -4249,27 +4284,27 @@ static void yy_load_buffer_state (void)
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
- yyfree((void *) b->yy_ch_buf );
+ racoonyyfree((void *) b->yy_ch_buf );
- yyfree((void *) b );
+ racoonyyfree((void *) b );
}
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
- * such as during a yyrestart() or at EOF.
+ * such as during a racoonyyrestart() or at EOF.
*/
- static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
+ static void racoonyy_init_buffer (YY_BUFFER_STATE b, FILE * file )
{
int oerrno = errno;
- yy_flush_buffer(b );
+ racoonyy_flush_buffer(b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
- /* If b is the current buffer, then yy_init_buffer was _probably_
- * called from yyrestart() or through yy_get_next_buffer.
+ /* If b is the current buffer, then racoonyy_init_buffer was _probably_
+ * called from racoonyyrestart() or through yy_get_next_buffer.
* In that case, we don't want to reset the lineno or column.
*/
if (b != YY_CURRENT_BUFFER){
@@ -4286,7 +4321,7 @@ static void yy_load_buffer_state (void)
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
*
*/
- void yy_flush_buffer (YY_BUFFER_STATE b )
+ void racoonyy_flush_buffer (YY_BUFFER_STATE b )
{
if ( ! b )
return;
@@ -4306,7 +4341,7 @@ static void yy_load_buffer_state (void)
b->yy_buffer_status = YY_BUFFER_NEW;
if ( b == YY_CURRENT_BUFFER )
- yy_load_buffer_state( );
+ racoonyy_load_buffer_state( );
}
/** Pushes the new state onto the stack. The new state becomes
@@ -4315,14 +4350,14 @@ static void yy_load_buffer_state (void)
* @param new_buffer The new state.
*
*/
-void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
+void racoonyypush_buffer_state (YY_BUFFER_STATE new_buffer )
{
if (new_buffer == NULL)
return;
- yyensure_buffer_stack();
+ racoonyyensure_buffer_stack();
- /* This block is copied from yy_switch_to_buffer. */
+ /* This block is copied from racoonyy_switch_to_buffer. */
if ( YY_CURRENT_BUFFER )
{
/* Flush out information for old buffer. */
@@ -4336,8 +4371,8 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
(yy_buffer_stack_top)++;
YY_CURRENT_BUFFER_LVALUE = new_buffer;
- /* copied from yy_switch_to_buffer. */
- yy_load_buffer_state( );
+ /* copied from racoonyy_switch_to_buffer. */
+ racoonyy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
@@ -4345,18 +4380,18 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
* The next element becomes the new top.
*
*/
-void yypop_buffer_state (void)
+void racoonyypop_buffer_state (void)
{
if (!YY_CURRENT_BUFFER)
return;
- yy_delete_buffer(YY_CURRENT_BUFFER );
+ racoonyy_delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
if ((yy_buffer_stack_top) > 0)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER) {
- yy_load_buffer_state( );
+ racoonyy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
}
@@ -4364,7 +4399,7 @@ void yypop_buffer_state (void)
/* Allocates the stack if it does not exist.
* Guarantees space for at least one push.
*/
-static void yyensure_buffer_stack (void)
+static void racoonyyensure_buffer_stack (void)
{
yy_size_t num_to_alloc;
@@ -4375,11 +4410,11 @@ static void yyensure_buffer_stack (void)
* immediate realloc on the next call.
*/
num_to_alloc = 1;
- (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
+ (yy_buffer_stack) = (struct yy_buffer_state**)racoonyyalloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
- YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
+ YY_FATAL_ERROR( "out of dynamic memory in racoonyyensure_buffer_stack()" );
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
@@ -4394,12 +4429,12 @@ static void yyensure_buffer_stack (void)
int grow_size = 8 /* arbitrary grow size */;
num_to_alloc = (yy_buffer_stack_max) + grow_size;
- (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
+ (yy_buffer_stack) = (struct yy_buffer_state**)racoonyyrealloc
((yy_buffer_stack),
num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
- YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
+ YY_FATAL_ERROR( "out of dynamic memory in racoonyyensure_buffer_stack()" );
/* zero only the new slots.*/
memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
@@ -4413,7 +4448,7 @@ static void yyensure_buffer_stack (void)
*
* @return the newly allocated buffer state object.
*/
-YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
+YY_BUFFER_STATE racoonyy_scan_buffer (char * base, yy_size_t size )
{
YY_BUFFER_STATE b;
@@ -4423,9 +4458,9 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
/* They forgot to leave room for the EOB's. */
return 0;
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
+ b = (YY_BUFFER_STATE) racoonyyalloc(sizeof( struct yy_buffer_state ) );
if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
+ YY_FATAL_ERROR( "out of dynamic memory in racoonyy_scan_buffer()" );
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
@@ -4437,53 +4472,53 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
- yy_switch_to_buffer(b );
+ racoonyy_switch_to_buffer(b );
return b;
}
-/** Setup the input buffer state to scan a string. The next call to yylex() will
+/** Setup the input buffer state to scan a string. The next call to racoonyylex() will
* scan from a @e copy of @a str.
* @param yystr a NUL-terminated string to scan
*
* @return the newly allocated buffer state object.
* @note If you want to scan bytes that may contain NUL values, then use
- * yy_scan_bytes() instead.
+ * racoonyy_scan_bytes() instead.
*/
-YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
+YY_BUFFER_STATE racoonyy_scan_string (yyconst char * yystr )
{
- return yy_scan_bytes(yystr,strlen(yystr) );
+ return racoonyy_scan_bytes(yystr,strlen(yystr) );
}
-/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
+/** Setup the input buffer state to scan the given bytes. The next call to racoonyylex() will
* scan from a @e copy of @a bytes.
* @param yybytes the byte buffer to scan
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
-YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
+YY_BUFFER_STATE racoonyy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
- int i;
+ yy_size_t i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
- buf = (char *) yyalloc(n );
+ buf = (char *) racoonyyalloc(n );
if ( ! buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
+ YY_FATAL_ERROR( "out of dynamic memory in racoonyy_scan_bytes()" );
for ( i = 0; i < _yybytes_len; ++i )
buf[i] = yybytes[i];
buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
- b = yy_scan_buffer(buf,n );
+ b = racoonyy_scan_buffer(buf,n );
if ( ! b )
- YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
+ YY_FATAL_ERROR( "bad buffer in racoonyy_scan_bytes()" );
/* It's okay to grow etc. this buffer, and we should throw it
* away when we're done.
@@ -4509,14 +4544,14 @@ static void yy_fatal_error (yyconst char* msg )
#define yyless(n) \
do \
{ \
- /* Undo effects of setting up yytext. */ \
+ /* Undo effects of setting up racoonyytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
- yytext[yyleng] = (yy_hold_char); \
- (yy_c_buf_p) = yytext + yyless_macro_arg; \
+ racoonyytext[racoonyyleng] = (yy_hold_char); \
+ (yy_c_buf_p) = racoonyytext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
- yyleng = yyless_macro_arg; \
+ racoonyyleng = yyless_macro_arg; \
} \
while ( 0 )
@@ -4525,85 +4560,85 @@ static void yy_fatal_error (yyconst char* msg )
/** Get the current line number.
*
*/
-int yyget_lineno (void)
+int racoonyyget_lineno (void)
{
- return yylineno;
+ return racoonyylineno;
}
/** Get the input stream.
*
*/
-FILE *yyget_in (void)
+FILE *racoonyyget_in (void)
{
- return yyin;
+ return racoonyyin;
}
/** Get the output stream.
*
*/
-FILE *yyget_out (void)
+FILE *racoonyyget_out (void)
{
- return yyout;
+ return racoonyyout;
}
/** Get the length of the current token.
*
*/
-yy_size_t yyget_leng (void)
+yy_size_t racoonyyget_leng (void)
{
- return yyleng;
+ return racoonyyleng;
}
/** Get the current token.
*
*/
-char *yyget_text (void)
+char *racoonyyget_text (void)
{
- return yytext;
+ return racoonyytext;
}
/** Set the current line number.
* @param line_number
*
*/
-void yyset_lineno (int line_number )
+void racoonyyset_lineno (int line_number )
{
- yylineno = line_number;
+ racoonyylineno = line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
* @param in_str A readable stream.
*
- * @see yy_switch_to_buffer
+ * @see racoonyy_switch_to_buffer
*/
-void yyset_in (FILE * in_str )
+void racoonyyset_in (FILE * in_str )
{
- yyin = in_str ;
+ racoonyyin = in_str ;
}
-void yyset_out (FILE * out_str )
+void racoonyyset_out (FILE * out_str )
{
- yyout = out_str ;
+ racoonyyout = out_str ;
}
-int yyget_debug (void)
+int racoonyyget_debug (void)
{
- return yy_flex_debug;
+ return racoonyy_flex_debug;
}
-void yyset_debug (int bdebug )
+void racoonyyset_debug (int bdebug )
{
- yy_flex_debug = bdebug ;
+ racoonyy_flex_debug = bdebug ;
}
static int yy_init_globals (void)
{
/* Initialization is the same as for the non-reentrant scanner.
- * This function is called from yylex_destroy(), so don't allocate here.
+ * This function is called from racoonyylex_destroy(), so don't allocate here.
*/
(yy_buffer_stack) = 0;
@@ -4615,36 +4650,36 @@ static int yy_init_globals (void)
/* Defined in main.c */
#ifdef YY_STDINIT
- yyin = stdin;
- yyout = stdout;
+ racoonyyin = stdin;
+ racoonyyout = stdout;
#else
- yyin = (FILE *) 0;
- yyout = (FILE *) 0;
+ racoonyyin = (FILE *) 0;
+ racoonyyout = (FILE *) 0;
#endif
/* For future reference: Set errno on error, since we are called by
- * yylex_init()
+ * racoonyylex_init()
*/
return 0;
}
-/* yylex_destroy is for both reentrant and non-reentrant scanners. */
-int yylex_destroy (void)
+/* racoonyylex_destroy is for both reentrant and non-reentrant scanners. */
+int racoonyylex_destroy (void)
{
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
- yy_delete_buffer(YY_CURRENT_BUFFER );
+ racoonyy_delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
- yypop_buffer_state();
+ racoonyypop_buffer_state();
}
/* Destroy the stack itself. */
- yyfree((yy_buffer_stack) );
+ racoonyyfree((yy_buffer_stack) );
(yy_buffer_stack) = NULL;
/* Reset the globals. This is important in a non-reentrant scanner so the next time
- * yylex() is called, initialization will occur. */
+ * racoonyylex() is called, initialization will occur. */
yy_init_globals( );
return 0;
@@ -4657,7 +4692,7 @@ int yylex_destroy (void)
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
{
- register int i;
+ int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
@@ -4666,7 +4701,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * s )
{
- register int n;
+ int n;
for ( n = 0; s[n]; ++n )
;
@@ -4674,12 +4709,12 @@ static int yy_flex_strlen (yyconst char * s )
}
#endif
-void *yyalloc (yy_size_t size )
+void *racoonyyalloc (yy_size_t size )
{
return (void *) malloc( size );
}
-void *yyrealloc (void * ptr, yy_size_t size )
+void *racoonyyrealloc (void * ptr, yy_size_t size )
{
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
@@ -4691,14 +4726,14 @@ void *yyrealloc (void * ptr, yy_size_t size )
return (void *) realloc( (char *) ptr, size );
}
-void yyfree (void * ptr )
+void racoonyyfree (void * ptr )
{
- free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
+ free( (char *) ptr ); /* see racoonyyrealloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
-#line 675 "cftoken.l"
+#line 675 "../../ipsec-tools/src/racoon/cftoken.l"
@@ -4715,7 +4750,7 @@ yyerror(char *s, ...)
#endif
snprintf(fmt, sizeof(fmt), "%s:%d: \"%s\" %s\n",
incstack[incstackp].path, incstack[incstackp].lineno,
- yytext, s);
+ racoonyytext, s);
plogv(LLV_ERROR, LOCATION, NULL, fmt, ap);
va_end(ap);
@@ -4735,7 +4770,7 @@ yywarn(char *s, ...)
#endif
snprintf(fmt, sizeof(fmt), "%s:%d: \"%s\" %s\n",
incstack[incstackp].path, incstack[incstackp].lineno,
- yytext, s);
+ racoonyytext, s);
plogv(LLV_WARNING, LOCATION, NULL, fmt, ap);
va_end(ap);
}
@@ -4775,7 +4810,7 @@ yycf_switch_buffer(path)
goto nextmatch;
}
- yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE));
+ racoonyy_switch_to_buffer(racoonyy_create_buffer(racoonyyin,YY_BUF_SIZE));
BEGIN(S_INI);
@@ -4786,8 +4821,8 @@ int
yycf_set_buffer(path)
char *path;
{
- yyin = fopen(path, "r");
- if (yyin == NULL) {
+ racoonyyin = fopen(path, "r");
+ if (racoonyyin == NULL) {
fprintf(stderr, "failed to open file %s (%s)\n",
path, strerror(errno));
plog(LLV_ERROR, LOCATION, NULL,
@@ -4797,7 +4832,7 @@ yycf_set_buffer(path)
}
/* initialize */
- incstack[incstackp].fp = yyin;
+ incstack[incstackp].fp = racoonyyin;
if (incstack[incstackp].path != NULL)
racoon_free(incstack[incstackp].path);
incstack[incstackp].path = racoon_strdup(path);
@@ -4833,4 +4868,3 @@ yycf_clean_buffer()
}
}
-