mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Move all Val classes to the zeek namespaces
This commit is contained in:
parent
ec9eff0bd5
commit
64332ca22c
265 changed files with 3154 additions and 3086 deletions
16
src/Anon.cc
16
src/Anon.cc
|
@ -358,9 +358,9 @@ AnonymizeIPAddr_A50::Node* AnonymizeIPAddr_A50::find_node(ipaddr32_t a)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
static TableValPtr anon_preserve_orig_addr;
|
||||
static TableValPtr anon_preserve_resp_addr;
|
||||
static TableValPtr anon_preserve_other_addr;
|
||||
static zeek::TableValPtr anon_preserve_orig_addr;
|
||||
static zeek::TableValPtr anon_preserve_resp_addr;
|
||||
static zeek::TableValPtr anon_preserve_other_addr;
|
||||
|
||||
void zeek::detail::init_ip_addr_anonymizers()
|
||||
{
|
||||
|
@ -373,23 +373,23 @@ void zeek::detail::init_ip_addr_anonymizers()
|
|||
auto id = global_scope()->Find("preserve_orig_addr");
|
||||
|
||||
if ( id )
|
||||
anon_preserve_orig_addr = zeek::cast_intrusive<TableVal>(id->GetVal());
|
||||
anon_preserve_orig_addr = zeek::cast_intrusive<zeek::TableVal>(id->GetVal());
|
||||
|
||||
id = global_scope()->Find("preserve_resp_addr");
|
||||
|
||||
if ( id )
|
||||
anon_preserve_resp_addr = zeek::cast_intrusive<TableVal>(id->GetVal());
|
||||
anon_preserve_resp_addr = zeek::cast_intrusive<zeek::TableVal>(id->GetVal());
|
||||
|
||||
id = global_scope()->Find("preserve_other_addr");
|
||||
|
||||
if ( id )
|
||||
anon_preserve_other_addr = zeek::cast_intrusive<TableVal>(id->GetVal());
|
||||
anon_preserve_other_addr = zeek::cast_intrusive<zeek::TableVal>(id->GetVal());
|
||||
}
|
||||
|
||||
ipaddr32_t zeek::detail::anonymize_ip(ipaddr32_t ip, enum ip_addr_anonymization_class_t cl)
|
||||
{
|
||||
TableVal* preserve_addr = nullptr;
|
||||
auto addr = zeek::make_intrusive<AddrVal>(ip);
|
||||
auto addr = zeek::make_intrusive<zeek::AddrVal>(ip);
|
||||
|
||||
int method = -1;
|
||||
|
||||
|
@ -445,7 +445,7 @@ void zeek::detail::log_anonymization_mapping(ipaddr32_t input, ipaddr32_t output
|
|||
{
|
||||
if ( anonymization_mapping )
|
||||
mgr.Enqueue(anonymization_mapping,
|
||||
zeek::make_intrusive<AddrVal>(input),
|
||||
zeek::make_intrusive<zeek::AddrVal>(input),
|
||||
zeek::make_intrusive<AddrVal>(output)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue