A new event bro_script_loaded() raised for each policy script loaded.

Also removing the -l command-line option as that can now be done at
the script-level.

A couple tests fail now that use -l. Leaving that until we have
script-level replacement.
This commit is contained in:
Robin Sommer 2011-07-07 10:40:52 -07:00
parent df1b2f922b
commit 97b5f812c7
7 changed files with 46 additions and 50 deletions

View file

@ -90,4 +90,18 @@ extern PktDumper* pkt_dumper; // where to save packets
extern char* writefile;
// Script file we have already scanned (or are in the process of scanning).
// They are identified by inode number.
struct ScannedFile {
ino_t inode;
int include_level;
string name;
ScannedFile(ino_t arg_inode, int arg_include_level, string arg_name)
: inode(arg_inode), include_level(arg_include_level), name(arg_name)
{ }
};
extern std::list<ScannedFile> files_scanned;
#endif