mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Renaming the Logger to Reporter.
Also changing output to not include timestamps when we haven't started processing packets yet.
This commit is contained in:
parent
93894eed9b
commit
66e2c3b623
123 changed files with 722 additions and 713 deletions
12
src/Anon.cc
12
src/Anon.cc
|
@ -159,7 +159,7 @@ int AnonymizeIPAddr_A50::PreservePrefix(ipaddr32_t input, int num_bits)
|
|||
|
||||
if ( ! before_anonymization )
|
||||
{
|
||||
bro_logger->Error("prefix perservation specified after anonymization begun");
|
||||
reporter->Error("prefix perservation specified after anonymization begun");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -206,7 +206,7 @@ AnonymizeIPAddr_A50::Node* AnonymizeIPAddr_A50::new_node_block()
|
|||
int block_size = 1024;
|
||||
Node* block = new Node[block_size];
|
||||
if ( ! block )
|
||||
bro_logger->InternalError("out of memory!");
|
||||
reporter->InternalError("out of memory!");
|
||||
|
||||
blocks.push_back(block);
|
||||
|
||||
|
@ -258,7 +258,7 @@ ipaddr32_t AnonymizeIPAddr_A50::make_output(ipaddr32_t old_output, int swivel) c
|
|||
AnonymizeIPAddr_A50::Node* AnonymizeIPAddr_A50::make_peer(ipaddr32_t a, Node* n)
|
||||
{
|
||||
if ( a == 0 || a == 0xFFFFFFFFU )
|
||||
bro_logger->InternalError("0.0.0.0 and 255.255.255.255 should never get into the tree");
|
||||
reporter->InternalError("0.0.0.0 and 255.255.255.255 should never get into the tree");
|
||||
|
||||
// Become a peer.
|
||||
// Algorithm: create two nodes, the two peers. Leave orig node as
|
||||
|
@ -341,7 +341,7 @@ AnonymizeIPAddr_A50::Node* AnonymizeIPAddr_A50::find_node(ipaddr32_t a)
|
|||
}
|
||||
}
|
||||
|
||||
bro_logger->InternalError("out of memory!");
|
||||
reporter->InternalError("out of memory!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -389,14 +389,14 @@ ipaddr32_t anonymize_ip(ipaddr32_t ip, enum ip_addr_anonymization_class_t cl)
|
|||
new_ip = ip;
|
||||
|
||||
else if ( ! ip_anonymizer[method] )
|
||||
bro_logger->InternalError("IP anonymizer not initialized");
|
||||
reporter->InternalError("IP anonymizer not initialized");
|
||||
|
||||
else
|
||||
new_ip = ip_anonymizer[method]->Anonymize(ip);
|
||||
}
|
||||
|
||||
else
|
||||
bro_logger->InternalError("invalid IP anonymization method");
|
||||
reporter->InternalError("invalid IP anonymization method");
|
||||
|
||||
#ifdef LOG_ANONYMIZATION_MAPPING
|
||||
log_anonymization_mapping(ip, new_ip);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue