Skip to content

Commit

Permalink
Fix merge relicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmmr committed Feb 21, 2022
1 parent 3f2b07f commit ffe978a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
19 changes: 19 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
2.0.1 | 2022-02-21 15:26:44 +0100

* Add a test build of the source code tarball to CI.

* Extend query API to allow specifying tables that must/must not be
present. Agents will ignore queries not meeting expectations.

* Extract version information from Zeek's hello message.

* Adapt to changes to options in the Zeek package.

* Fix differential queries returning empty removed rows.

* Fix time filtering for differential queries.

* Fix double table deactivation.

* Guard against an error case in Darwin system logs collector.

2.0.0 | 2022-02-14 16:14:48 +0100

* Initial release.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
2.0.1
3 changes: 1 addition & 2 deletions src/io/zeek.cc
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ void BrokerConnection::processEvent(const broker::data_message& msg) {
if ( query_record[4] != broker::data() )
cookie = broker::get<std::string>(query_record[4]);

zquery = ZeekQuery{.zeek_instance = std::move(zeek_instance_id),
std::set<std::string> requires_tables;
for ( const auto& t : broker::get<broker::set>(query_record[5]) )
requires_tables.emplace(broker::get<std::string>(t));
Expand All @@ -440,7 +439,7 @@ void BrokerConnection::processEvent(const broker::data_message& msg) {
for ( const auto& t : broker::get<broker::set>(query_record[6]) )
if_missing_tables.emplace(broker::get<std::string>(t));

zquery = ZeekQuery{.zeek_instance = std::move(zeek_instance),
zquery = ZeekQuery{.zeek_instance = std::move(zeek_instance_id),
.zeek_id = zeek_id,
.event_name = std::move(event_name),
.zeek_cookie = cookie,
Expand Down
2 changes: 1 addition & 1 deletion tests/zeek/if-missing-table.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# @TEST-EXEC: btest-diff zeek/.stdout

@if ( getenv("ZEEK_PORT") != "" )
redef Broker::default_port = to_port(getenv("ZEEK_PORT"));
redef ZeekAgent::listen_port = to_port(getenv("ZEEK_PORT"));
@endif

type Columns: record {
Expand Down
2 changes: 1 addition & 1 deletion tests/zeek/requires-table.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# @TEST-EXEC: btest-diff zeek/.stdout

@if ( getenv("ZEEK_PORT") != "" )
redef Broker::default_port = to_port(getenv("ZEEK_PORT"));
redef ZeekAgent::listen_port = to_port(getenv("ZEEK_PORT"));
@endif

event do_terminate() {
Expand Down

0 comments on commit ffe978a

Please sign in to comment.