mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00

For backward compatibility when reading values, we first check the ZEEK-prefixed value, and if not set, then check the corresponding BRO-prefixed value.
19 lines
284 B
Text
19 lines
284 B
Text
# @TEST-EXEC: unset ZEEK_DNS_FAKE && unset BRO_DNS_FAKE && zeek -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
|
|
event zeek_init()
|
|
{
|
|
local h1: addr = 1.2.3.4;
|
|
|
|
when ( local h1name = lookup_addr(h1) )
|
|
{
|
|
print "lookup successful";
|
|
}
|
|
timeout 3 secs
|
|
{
|
|
print "timeout";
|
|
}
|
|
|
|
}
|
|
|