mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Merge remote-tracking branch 'origin/topic/seth/zeek_init'
* origin/topic/seth/zeek_init: Some more testing fixes. Update docs and tests for bro_(init|done) -> zeek_(init|done) Implement the zeek_init handler.
This commit is contained in:
commit
a994be9eeb
628 changed files with 868 additions and 1082 deletions
|
@ -18,7 +18,7 @@ cat >scripts/Demo/Foo/__load__.zeek <<EOF
|
|||
EOF
|
||||
|
||||
cat >scripts/Demo/Foo/manually.zeek <<EOF
|
||||
event bro_init() &priority=-10
|
||||
event zeek_init() &priority=-10
|
||||
{
|
||||
print "plugin: manually loaded";
|
||||
print "calling bif", hello_plugin_world();
|
||||
|
@ -26,7 +26,7 @@ event bro_init() &priority=-10
|
|||
EOF
|
||||
|
||||
cat >scripts/Demo/Foo/base/at-startup.zeek <<EOF
|
||||
event bro_init() &priority=10
|
||||
event zeek_init() &priority=10
|
||||
{
|
||||
print "plugin: automatically loaded at startup";
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ cat >scripts/Demo/Foo/__load__.zeek <<EOF
|
|||
EOF
|
||||
|
||||
cat >scripts/Demo/Foo/manually.zeek <<EOF
|
||||
event bro_init() &priority=-10
|
||||
event zeek_init() &priority=-10
|
||||
{
|
||||
print "plugin: manually loaded";
|
||||
print "calling bif", hello_plugin_world();
|
||||
|
@ -42,7 +42,7 @@ event bro_init() &priority=-10
|
|||
EOF
|
||||
|
||||
cat >scripts/Demo/Foo/base/at-startup.zeek <<EOF
|
||||
event bro_init() &priority=10
|
||||
event zeek_init() &priority=10
|
||||
{
|
||||
print "plugin: automatically loaded at startup";
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ function foo(i : count) : string
|
|||
return "Bar";
|
||||
}
|
||||
|
||||
event bro_init()
|
||||
event zeek_init()
|
||||
{
|
||||
Log::create_stream(SSH::LOG, [$columns=Log]);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
const ports = { 4242/tcp };
|
||||
|
||||
event bro_init() &priority=5
|
||||
event zeek_init() &priority=5
|
||||
{
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_FOO, ports);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ event line(description: Input::EventDescription, tpe: Input::Event, s: string)
|
|||
}
|
||||
}
|
||||
|
||||
event bro_init()
|
||||
event zeek_init()
|
||||
{
|
||||
try = 0;
|
||||
outfile = open("../out");
|
||||
|
|
|
@ -11,7 +11,7 @@ type TestType: record {
|
|||
a: bool &optional;
|
||||
};
|
||||
|
||||
event bro_init()
|
||||
event zeek_init()
|
||||
{
|
||||
Reporter::info("Some Info");
|
||||
Reporter::warning("A warning");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue