mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
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:
parent
df1b2f922b
commit
97b5f812c7
7 changed files with 46 additions and 50 deletions
14
src/Net.h
14
src/Net.h
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue