/* ** Copyright (C) 2005-2007 by Carnegie Mellon University. ** ** @OPENSOURCE_HEADER_START@ ** ** Use of the SILK system and related source code is subject to the terms ** of the following licenses: ** ** GNU Public License (GPL) Rights pursuant to Version 2, June 1991 ** Government Purpose License Rights (GPLR) pursuant to DFARS 252.225-7013 ** ** NO WARRANTY ** ** ANY INFORMATION, MATERIALS, SERVICES, INTELLECTUAL PROPERTY OR OTHER ** PROPERTY OR RIGHTS GRANTED OR PROVIDED BY CARNEGIE MELLON UNIVERSITY ** PURSUANT TO THIS LICENSE (HEREINAFTER THE "DELIVERABLES") ARE ON AN ** "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY ** KIND, EITHER EXPRESS OR IMPLIED AS TO ANY MATTER INCLUDING, BUT NOT ** LIMITED TO, WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE, ** MERCHANTABILITY, INFORMATIONAL CONTENT, NONINFRINGEMENT, OR ERROR-FREE ** OPERATION. CARNEGIE MELLON UNIVERSITY SHALL NOT BE LIABLE FOR INDIRECT, ** SPECIAL OR CONSEQUENTIAL DAMAGES, SUCH AS LOSS OF PROFITS OR INABILITY ** TO USE SAID INTELLECTUAL PROPERTY, UNDER THIS LICENSE, REGARDLESS OF ** WHETHER SUCH PARTY WAS AWARE OF THE POSSIBILITY OF SUCH DAMAGES. ** LICENSEE AGREES THAT IT WILL NOT MAKE ANY WARRANTY ON BEHALF OF ** CARNEGIE MELLON UNIVERSITY, EXPRESS OR IMPLIED, TO ANY PERSON ** CONCERNING THE APPLICATION OF OR THE RESULTS TO BE OBTAINED WITH THE ** DELIVERABLES UNDER THIS LICENSE. ** ** Licensee hereby agrees to defend, indemnify, and hold harmless Carnegie ** Mellon University, its trustees, officers, employees, and agents from ** all claims or demands made against them (and any related losses, ** expenses, or attorney's fees) arising out of, or relating to Licensee's ** and/or its sub licensees' negligent use or willful misuse of or ** negligent conduct or willful misconduct regarding the Software, ** facilities, or other rights or assistance granted by Carnegie Mellon ** University under this License, including, but not limited to, any ** claims of product liability, personal injury, death, damage to ** property, or violation of any laws or regulations. ** ** Carnegie Mellon University Software Engineering Institute authored ** documents are sponsored by the U.S. Department of Defense under ** Contract F19628-00-C-0003. Carnegie Mellon University retains ** copyrights in all material produced under this contract. The U.S. ** Government retains a non-exclusive, royalty-free license to publish or ** reproduce these documents, or allow others to do so, for U.S. ** Government purposes only pursuant to the copyright license under the ** contract clause at 252.227.7013. ** ** @OPENSOURCE_HEADER_END@ */ #ifndef _PROBECONFSCAN_H #define _PROBECONFSCAN_H #include "silk.h" RCSIDENTVAR(rcsID_PROBECONFSCAN_H, "$SiLK: probeconfscan.h 7569 2007-06-18 16:08:47Z mthomas $"); /* ** probeconfscan.h ** ** Values needed for the lexer and parser to communicate. ** */ #include "utils.h" #include "probeconf.h" #include "skvector.h" /* Provide some grammar debugging info, if necessary */ #define YYDEBUG 1 /* error message strings */ #define PARSE_MSG_ERROR "error while parsing file %s at line %d:\n" #define PARSE_MSG_WARN "warning while parsing file %s at line %d:\n" /* this list of definitions is from the automake info page */ #define yymaxdepth probeconfscan_maxdepth #define yyparse probeconfscan_parse #define yylex probeconfscan_lex #define yyerror probeconfscan_error #define yylval probeconfscan_lval #define yychar probeconfscan_char #define yydebug probeconfscan_debug #define yypact probeconfscan_pact #define yyr1 probeconfscan_r1 #define yyr2 probeconfscan_r2 #define yydef probeconfscan_def #define yychk probeconfscan_chk #define yypgo probeconfscan_pgo #define yyact probeconfscan_act #define yyexca probeconfscan_exca #define yyerrflag probeconfscan_errflag #define yynerrs probeconfscan_nerrs #define yyps probeconfscan_ps #define yypv probeconfscan_pv #define yys probeconfscan_s #define yy_yys probeconfscan_yys #define yystate probeconfscan_state #define yytmp probeconfscan_tmp #define yyv probeconfscan_v #define yy_yyv probeconfscan_yyv #define yyval probeconfscan_val #define yylloc probeconfscan_lloc #define yyreds probeconfscan_reds #define yytoks probeconfscan_toks #define yylhs probeconfscan_yylhs #define yylen probeconfscan_yylen #define yydefred probeconfscan_yydefred #define yydgoto probeconfscan_yydgoto #define yysindex probeconfscan_yysindex #define yyrindex probeconfscan_yyrindex #define yygindex probeconfscan_yygindex #define yytable probeconfscan_yytable #define yycheck probeconfscan_yycheck #define yyname probeconfscan_yyname #define yyrule probeconfscan_yyrule /* Input stream to parse */ extern FILE* yyin; /* Current file name */ extern const char *probescan_filename; /* Line number for error reporting */ extern int probescan_line; /* Last keyword */ extern char probescan_clause[]; /* Global error count for return status of probeConfParse */ extern int g_probe_err; /* functions to start and complete a probe */ void probe_start(void); void probe_end(void); int yyparse(void); int yylex(void); int yyerror(char *s); typedef sk_vector_t number_list_t; typedef sk_vector_t string_list_t; typedef sk_vector_t wildcard_ip_list_t; typedef struct { in_addr_t ip; char *name; } name_ip_pair_t; void probeConfParseTeardown(void); #endif /* _PROBECONFSCAN_H */ /* ** Local variables: ** mode:c ** indent-tabs-mode:nil ** c-basic-offset:4 ** End: */