mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
15 lines
462 B
Text
15 lines
462 B
Text
# @TEST-EXEC: zeek -b -r $TRACES/wikipedia.trace %INPUT >out 2>&1
|
|
# @TEST-EXEC: btest-diff out
|
|
# @TEST-DOC: Validates that one can use disable_analyzer even for analyzers without parent. This is a regression test for #3071.
|
|
|
|
event new_connection(c: connection)
|
|
{
|
|
# Iterate over a range of analyzer IDs. This range should include e.g.,
|
|
# `TCP` which has no parent analyzer.
|
|
local i = 0;
|
|
while ( i < 200 )
|
|
{
|
|
disable_analyzer(c$id, i, F, T);
|
|
++i;
|
|
}
|
|
}
|