mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00

This is obviously a change that break backwards-compatibility. I hope I caught all cases where vectors are used ... I've completely removed the VECTOR_MIN constant. Turns out that was already not working: some code pieces were nevertheless hard-coding the 1-based indexing ...
27 lines
332 B
Text
27 lines
332 B
Text
#
|
|
# @TEST-EXEC: bro %INPUT
|
|
# @TEST-EXEC: btest-diff ssh.log
|
|
|
|
module SSH;
|
|
|
|
export {
|
|
redef enum Log::ID += { SSH };
|
|
|
|
type Log: record {
|
|
vec: vector of string &log;
|
|
};
|
|
}
|
|
|
|
event bro_init()
|
|
{
|
|
Log::create_stream(SSH, [$columns=Log]);
|
|
|
|
local v: vector of string;
|
|
|
|
v[1] = "2";
|
|
v[4] = "5";
|
|
|
|
Log::write(SSH, [$vec=v]);
|
|
}
|
|
|
|
|