mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
20 lines
364 B
Text
20 lines
364 B
Text
# @TEST-SERIALIZE: comm
|
|
# @TEST-EXEC: btest-bg-run test1 bro %INPUT
|
|
# @TEST-EXEC: btest-bg-wait 10
|
|
# @TEST-EXEC: mv test1/.stdout out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
@load frameworks/communication/listen
|
|
|
|
event bro_init()
|
|
{
|
|
local h1: addr = 127.0.0.1;
|
|
|
|
when ( local h1name = lookup_addr(h1) )
|
|
{
|
|
print "lookup successful";
|
|
terminate();
|
|
}
|
|
print "done";
|
|
}
|
|
|