mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Merge remote-tracking branch 'origin/master' into topic/vladg/mysql
This commit is contained in:
commit
743d388be8
28 changed files with 118 additions and 53 deletions
|
@ -8,13 +8,25 @@
|
|||
|
||||
event bro_init()
|
||||
{
|
||||
local h1: addr = 127.0.0.1;
|
||||
local h: addr = 127.0.0.1;
|
||||
|
||||
when ( local h1name = lookup_addr(h1) )
|
||||
when ( local hname = lookup_addr(h) )
|
||||
{
|
||||
print "lookup successful";
|
||||
terminate();
|
||||
}
|
||||
timeout 10sec
|
||||
{
|
||||
print "timeout (1)";
|
||||
}
|
||||
|
||||
local to = 5sec;
|
||||
# Just checking that timeouts can use arbitrary expressions...
|
||||
when ( local hname2 = lookup_addr(h) ) {}
|
||||
timeout to {}
|
||||
when ( local hname3 = lookup_addr(h) ) {}
|
||||
timeout to + 2sec {}
|
||||
|
||||
print "done";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue