mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Make connection$service_violation a set[string]
To stay consistent with connection$service.
This commit is contained in:
parent
0e28a7faf5
commit
7ed6cbeee5
2 changed files with 2 additions and 3 deletions
|
@ -48,7 +48,7 @@ redef record connection += {
|
|||
dpd_state: State &optional;
|
||||
## The set of services (analyzers) for which Zeek has observed a
|
||||
## violation after the same service had previously been confirmed.
|
||||
service_violation: set[AllAnalyzers::Tag] &default=set();
|
||||
service_violation: set[string] &default=set();
|
||||
};
|
||||
|
||||
event zeek_init() &priority=5
|
||||
|
@ -72,7 +72,7 @@ event analyzer_violation(c: connection, atype: AllAnalyzers::Tag, aid: count,
|
|||
return;
|
||||
|
||||
delete c$service[analyzer];
|
||||
add c$service_violation[atype];
|
||||
add c$service_violation[analyzer];
|
||||
|
||||
local info: Info;
|
||||
info$ts=network_time();
|
||||
|
|
|
@ -151,7 +151,6 @@ function join_string_set%(ss: string_set, sep: string%): string
|
|||
return val_mgr->EmptyString();
|
||||
}
|
||||
|
||||
// Not sure we need to protect from this
|
||||
const auto& it = ss->GetType()->AsTableType()->GetIndexTypes();
|
||||
if ( it.size() != 1 || it[0]->Tag() != TYPE_STRING )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue