|
OpenVAS Libraries
6.0+beta5
|
#include <ctype.h>#include <pcap.h>#include <string.h>#include <sys/stat.h>#include "system.h"#include "nasl_tree.h"#include "nasl_global_ctxt.h"#include "nasl_func.h"#include "nasl_var.h"#include "nasl_lex_ctxt.h"#include "nasl_debug.h"#include "nasl_signature.h"#include <stdio.h>#include <stdlib.h>Data Structures | |
| union | YYSTYPE |
| struct | YYSTYPE::asciiz |
| union | yyalloc |
Macros | |
| #define | YYBISON 1 |
| #define | YYBISON_VERSION "2.4.1" |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYPURE 1 |
| #define | YYPUSH 0 |
| #define | YYPULL 1 |
| #define | YYLSP_NEEDED 0 |
| #define | yyparse naslparse |
| #define | yylex nasllex |
| #define | yyerror naslerror |
| #define | yylval nasllval |
| #define | yychar naslchar |
| #define | yydebug nasldebug |
| #define | yynerrs naslnerrs |
| #define | YYPARSE_PARAM parm |
| #define | YYLEX_PARAM parm |
| #define | LNB (((naslctxt*)parm)->line_nb) |
| #define | YYERROR_VERBOSE |
| #define | YYDEBUG 1 |
| #define | YYERROR_VERBOSE 1 |
| #define | YYTOKEN_TABLE 0 |
| #define | YYTOKENTYPE |
| #define | YYSTYPE_IS_TRIVIAL 1 |
| #define | yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYSIZE_T unsigned int |
| #define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define | YY_(msgid) msgid |
| #define | YYUSE(e) ((void) (e)) |
| #define | YYID(n) (n) |
| #define | YYSTACK_ALLOC YYMALLOC |
| #define | YYSTACK_FREE YYFREE |
| #define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define | YYMALLOC malloc |
| #define | YYFREE free |
| #define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| #define | YYSTACK_BYTES(N) |
| #define | YYCOPY(To, From, Count) |
| #define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
| #define | YYFINAL 78 |
| #define | YYLAST 1029 |
| #define | YYNTOKENS 73 |
| #define | YYNNTS 43 |
| #define | YYNRULES 126 |
| #define | YYNSTATES 227 |
| #define | YYUNDEFTOK 2 |
| #define | YYMAXUTOK 304 |
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYPACT_NINF -91 |
| #define | YYTABLE_NINF -69 |
| #define | yyerrok (yyerrstatus = 0) |
| #define | yyclearin (yychar = YYEMPTY) |
| #define | YYEMPTY (-2) |
| #define | YYEOF 0 |
| #define | YYACCEPT goto yyacceptlab |
| #define | YYABORT goto yyabortlab |
| #define | YYERROR goto yyerrorlab |
| #define | YYFAIL goto yyerrlab |
| #define | YYRECOVERING() (!!yyerrstatus) |
| #define | YYBACKUP(Token, Value) |
| #define | YYTERROR 1 |
| #define | YYERRCODE 256 |
| #define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
| #define | YYLLOC_DEFAULT(Current, Rhs, N) |
| #define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
| #define | YYLEX yylex (&yylval, YYLEX_PARAM) |
| #define | YYFPRINTF fprintf |
| #define | YYDPRINTF(Args) |
| #define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
| #define | YY_STACK_PRINT(Bottom, Top) |
| #define | YY_REDUCE_PRINT(Rule) |
| #define | YYINITDEPTH 200 |
| #define | YYMAXDEPTH 10000 |
| #define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
Typedefs | |
| typedef union YYSTYPE | YYSTYPE |
| typedef unsigned char | yytype_uint8 |
| typedef short int | yytype_int8 |
| typedef unsigned short int | yytype_uint16 |
| typedef short int | yytype_int16 |
Enumerations | |
| enum | yytokentype { IF = 258, ELSE = 259, EQ = 260, NEQ = 261, SUPEQ = 262, INFEQ = 263, OR = 264, AND = 265, MATCH = 266, NOMATCH = 267, REP = 268, FOR = 269, REPEAT = 270, UNTIL = 271, FOREACH = 272, WHILE = 273, BREAK = 274, CONTINUE = 275, FUNCTION = 276, RETURN = 277, INCLUDE = 278, LOCAL = 279, GLOBAL = 280, PLUS_PLUS = 281, MINUS_MINUS = 282, L_SHIFT = 283, R_SHIFT = 284, R_USHIFT = 285, EXPO = 286, PLUS_EQ = 287, MINUS_EQ = 288, MULT_EQ = 289, DIV_EQ = 290, MODULO_EQ = 291, L_SHIFT_EQ = 292, R_SHIFT_EQ = 293, R_USHIFT_EQ = 294, RE_MATCH = 295, RE_NOMATCH = 296, ARROW = 297, IDENT = 298, STRING1 = 299, STRING2 = 300, INTEGER = 301, NOT = 302, BIT_NOT = 303, UMINUS = 304, IF = 258, ELSE = 259, EQ = 260, NEQ = 261, SUPEQ = 262, INFEQ = 263, OR = 264, AND = 265, MATCH = 266, NOMATCH = 267, REP = 268, FOR = 269, REPEAT = 270, UNTIL = 271, FOREACH = 272, WHILE = 273, BREAK = 274, CONTINUE = 275, FUNCTION = 276, RETURN = 277, INCLUDE = 278, LOCAL = 279, GLOBAL = 280, PLUS_PLUS = 281, MINUS_MINUS = 282, L_SHIFT = 283, R_SHIFT = 284, R_USHIFT = 285, EXPO = 286, PLUS_EQ = 287, MINUS_EQ = 288, MULT_EQ = 289, DIV_EQ = 290, MODULO_EQ = 291, L_SHIFT_EQ = 292, R_SHIFT_EQ = 293, R_USHIFT_EQ = 294, RE_MATCH = 295, RE_NOMATCH = 296, ARROW = 297, IDENT = 298, STRING1 = 299, STRING2 = 300, INTEGER = 301, NOT = 302, BIT_NOT = 303, UMINUS = 304 } |
| enum | lex_state { ST_START = 0, ST_SPACE, ST_IDENT, ST_ZERO, ST_ZEROX, ST_OCT, ST_DEC, ST_HEX, ST_COMMENT, ST_SUP, ST_INF, ST_SUP_EXCL, ST_STRING1, ST_STRING1_ESC, ST_STRING2, ST_PLUS, ST_MINUS, ST_MULT, ST_DIV, ST_MODULO, ST_R_SHIFT, ST_R_USHIFT, ST_L_SHIFT, ST_NOT, ST_EQ, ST_AND, ST_OR } |
Functions | |
| int | yyparse () |
| int | yyparse (void *YYPARSE_PARAM) |
| int | add_nasl_inc_dir (const char *dir) |
| Adds the given string as directory for searching for includes. More... | |
| int | init_nasl_ctx (naslctxt *pc, const char *name) |
| Initialize a NASL context for a NASL file. More... | |
| void | nasl_clean_ctx (naslctxt *c) |
Variables | |
| int | yydebug |
| #define LNB (((naslctxt*)parm)->line_nb) |
| #define YY_ | ( | msgid) | msgid |
| #define YY_LOCATION_PRINT | ( | File, | |
| Loc | |||
| ) | ((void) 0) |
| #define YY_REDUCE_PRINT | ( | Rule) |
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Type, | |||
| Value, | |||
| Location | |||
| ) |
| #define YYABORT goto yyabortlab |
| #define YYACCEPT goto yyacceptlab |
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
| #define YYBISON 1 |
| #define YYBISON_VERSION "2.4.1" |
| #define yychar naslchar |
| #define YYCOPY | ( | To, | |
| From, | |||
| Count | |||
| ) |
| #define yydebug nasldebug |
| #define YYDEBUG 1 |
| #define YYEMPTY (-2) |
| #define YYEOF 0 |
| #define YYERRCODE 256 |
| #define yyerrok (yyerrstatus = 0) |
| #define yyerror naslerror |
| #define YYERROR goto yyerrorlab |
| #define YYERROR_VERBOSE |
| #define YYERROR_VERBOSE 1 |
| #define YYFAIL goto yyerrlab |
| #define YYFINAL 78 |
| #define YYFPRINTF fprintf |
| #define YYFREE free |
| #define YYID | ( | n) | (n) |
| #define YYINITDEPTH 200 |
| #define YYLAST 1029 |
| #define yylex nasllex |
| #define YYLEX yylex (&yylval, YYLEX_PARAM) |
| #define YYLEX_PARAM parm |
| #define YYLLOC_DEFAULT | ( | Current, | |
| Rhs, | |||
| N | |||
| ) |
| #define YYLSP_NEEDED 0 |
| #define yylval nasllval |
| #define YYMALLOC malloc |
| #define YYMAXDEPTH 10000 |
| #define YYMAXUTOK 304 |
| #define yynerrs naslnerrs |
| #define YYNNTS 43 |
| #define YYNRULES 126 |
| #define YYNSTATES 227 |
| #define YYNTOKENS 73 |
| #define YYPACT_NINF -91 |
| #define yyparse naslparse |
| #define YYPARSE_PARAM parm |
| #define YYPOPSTACK | ( | N) | (yyvsp -= (N), yyssp -= (N)) |
| #define YYPULL 1 |
| #define YYPURE 1 |
| #define YYPUSH 0 |
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
| #define YYRHSLOC | ( | Rhs, | |
| K | |||
| ) | ((Rhs)[K]) |
| #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define YYSIZE_T unsigned int |
| #define YYSKELETON_NAME "yacc.c" |
| #define YYSTACK_ALLOC YYMALLOC |
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define YYSTACK_BYTES | ( | N) |
| #define YYSTACK_FREE YYFREE |
| #define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |
| Stack | |||
| ) |
| #define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| #define YYSTYPE_IS_DECLARED 1 |
| #define YYSTYPE_IS_TRIVIAL 1 |
| #define YYTABLE_NINF -69 |
| #define YYTERROR 1 |
| #define YYTOKEN_TABLE 0 |
| #define YYTOKENTYPE |
| #define YYTRANSLATE | ( | YYX) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define YYUNDEFTOK 2 |
| #define YYUSE | ( | e) | ((void) (e)) |
| typedef short int yytype_int16 |
| typedef short int yytype_int8 |
| typedef unsigned short int yytype_uint16 |
| typedef unsigned char yytype_uint8 |
| enum lex_state |
| enum yytokentype |
| int add_nasl_inc_dir | ( | const char * | dir) |
Adds the given string as directory for searching for includes.
| dir | A directory path. This function will add a copy of this parameter to the list of include folders. This means the parameter can be freed elsewhere without affecting the list. |
| int init_nasl_ctx | ( | naslctxt * | pc, |
| const char * | name | ||
| ) |
Initialize a NASL context for a NASL file.
| pc | The NASL context handler. |
| name | The filename of the NASL script. |
| void nasl_clean_ctx | ( | naslctxt * | c) |
| int yyparse | ( | ) |
| int yyparse | ( | void * | YYPARSE_PARAM) |
| int yydebug |
1.8.4