mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add separate utility module for controller and agent
We can figure out later whether & where to re-settle helper functions that end up in there.
This commit is contained in:
parent
6fcd99b4a0
commit
a56ee6b9a6
3 changed files with 20 additions and 2 deletions
17
scripts/policy/frameworks/cluster/controller/util.zeek
Normal file
17
scripts/policy/frameworks/cluster/controller/util.zeek
Normal file
|
@ -0,0 +1,17 @@
|
|||
module ClusterController::Util;
|
||||
|
||||
export {
|
||||
global set_to_vector: function(ss: set[string]): vector of string;
|
||||
}
|
||||
|
||||
function set_to_vector(ss: set[string]): vector of string
|
||||
{
|
||||
local res: vector of string;
|
||||
|
||||
for ( s in ss )
|
||||
res[|res|] = s;
|
||||
|
||||
sort(res, strcmp);
|
||||
|
||||
return res;
|
||||
}
|
|
@ -24,6 +24,7 @@
|
|||
# @load frameworks/cluster/controller/main.zeek
|
||||
@load frameworks/cluster/controller/request.zeek
|
||||
@load frameworks/cluster/controller/types.zeek
|
||||
@load frameworks/cluster/controller/util.zeek
|
||||
@load frameworks/dpd/detect-protocols.zeek
|
||||
@load frameworks/dpd/packet-segment-logging.zeek
|
||||
@load frameworks/intel/do_notice.zeek
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
### NOTE: This file has been sorted with diff-sort.
|
||||
warning in <...>/extract-certs-pem.zeek, line 1: deprecated script loaded from <...>/__load__.zeek:12 "Remove in v5.1. Use log-certs-base64.zeek instead."
|
||||
warning in <...>/extract-certs-pem.zeek, line 1: deprecated script loaded from command line arguments "Remove in v5.1. Use log-certs-base64.zeek instead."
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from <...>/test-all-policy.zeek:58 ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from <...>/test-all-policy.zeek:58 ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from <...>/test-all-policy.zeek:59 ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from <...>/test-all-policy.zeek:59 ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/log-ocsp.zeek, line 1: deprecated script loaded from command line arguments ("Remove in v5.1. OCSP logging is now enabled by default")
|
||||
warning in <...>/notary.zeek, line 1: deprecated script loaded from <...>/__load__.zeek:4 ("Remove in v5.1. Please switch to other more modern approaches like SCT validation (validate-sct.zeek).")
|
||||
warning in <...>/notary.zeek, line 1: deprecated script loaded from command line arguments ("Remove in v5.1. Please switch to other more modern approaches like SCT validation (validate-sct.zeek).")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue