mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Do not allocate one OpaqueType per OpaqueVal.
Instead, we now allocate type information globally in NetVar.cc. Addresses #986.
This commit is contained in:
parent
e78c20c0f8
commit
9ac00f8c79
6 changed files with 29 additions and 9 deletions
|
@ -149,6 +149,11 @@ RecordType* OS_version;
|
|||
EnumType* OS_version_inference;
|
||||
TableVal* generate_OS_version_event;
|
||||
|
||||
OpaqueType* md5_type;
|
||||
OpaqueType* sha1_type;
|
||||
OpaqueType* sha256_type;
|
||||
OpaqueType* entropy_type;
|
||||
|
||||
double table_expire_interval;
|
||||
double table_expire_delay;
|
||||
int table_incremental_step;
|
||||
|
@ -253,6 +258,11 @@ void init_event_handlers()
|
|||
|
||||
void init_general_global_var()
|
||||
{
|
||||
md5_type = new OpaqueType("md5");
|
||||
sha1_type = new OpaqueType("sha1");
|
||||
sha256_type = new OpaqueType("sha256");
|
||||
entropy_type = new OpaqueType("entropy");
|
||||
|
||||
table_expire_interval = opt_internal_double("table_expire_interval");
|
||||
table_expire_delay = opt_internal_double("table_expire_delay");
|
||||
table_incremental_step = opt_internal_int("table_incremental_step");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue