mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00

This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
23 lines
473 B
Text
23 lines
473 B
Text
# @TEST-EXEC: zeek -C -r $TRACES/var-services-std-ports.trace %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
function inform_me(s: set[string], idx: string): interval
|
|
{
|
|
print fmt("expired %s", idx);
|
|
return 0secs;
|
|
}
|
|
|
|
global s: set[string] &create_expire=1secs &expire_func=inform_me;
|
|
|
|
event zeek_init()
|
|
{
|
|
add s["i"];
|
|
add s["am"];
|
|
add s["here"];
|
|
}
|
|
|
|
event new_connection(c: connection)
|
|
{
|
|
add s[fmt("%s", c$id)];
|
|
print s;
|
|
}
|