mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Move Reporter to zeek namespace
This commit is contained in:
parent
7cedd94ee7
commit
bfab224d7c
132 changed files with 1010 additions and 987 deletions
|
@ -74,7 +74,7 @@ void IPAddr::Mask(int top_bits_to_keep)
|
|||
{
|
||||
if ( top_bits_to_keep < 0 || top_bits_to_keep > 128 )
|
||||
{
|
||||
reporter->Error("Bad IPAddr::Mask value %d", top_bits_to_keep);
|
||||
zeek::reporter->Error("Bad IPAddr::Mask value %d", top_bits_to_keep);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ void IPAddr::ReverseMask(int top_bits_to_chop)
|
|||
{
|
||||
if ( top_bits_to_chop < 0 || top_bits_to_chop > 128 )
|
||||
{
|
||||
reporter->Error("Bad IPAddr::ReverseMask value %d", top_bits_to_chop);
|
||||
zeek::reporter->Error("Bad IPAddr::ReverseMask value %d", top_bits_to_chop);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -153,7 +153,7 @@ void IPAddr::Init(const char* s)
|
|||
{
|
||||
if ( ! ConvertString(s, &in6) )
|
||||
{
|
||||
reporter->Error("Bad IP address: %s", s);
|
||||
zeek::reporter->Error("Bad IP address: %s", s);
|
||||
memset(in6.s6_addr, 0, sizeof(in6.s6_addr));
|
||||
}
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ IPPrefix::IPPrefix(const in4_addr& in4, uint8_t length)
|
|||
{
|
||||
if ( length > 32 )
|
||||
{
|
||||
reporter->Error("Bad in4_addr IPPrefix length : %d", length);
|
||||
zeek::reporter->Error("Bad in4_addr IPPrefix length : %d", length);
|
||||
this->length = 0;
|
||||
}
|
||||
|
||||
|
@ -251,7 +251,7 @@ IPPrefix::IPPrefix(const in6_addr& in6, uint8_t length)
|
|||
{
|
||||
if ( length > 128 )
|
||||
{
|
||||
reporter->Error("Bad in6_addr IPPrefix length : %d", length);
|
||||
zeek::reporter->Error("Bad in6_addr IPPrefix length : %d", length);
|
||||
this->length = 0;
|
||||
}
|
||||
|
||||
|
@ -288,7 +288,7 @@ IPPrefix::IPPrefix(const IPAddr& addr, uint8_t length, bool len_is_v6_relative)
|
|||
else
|
||||
{
|
||||
auto vstr = prefix.GetFamily() == IPv4 ? "v4" : "v6";
|
||||
reporter->Error("Bad IPAddr(%s) IPPrefix length : %d", vstr, length);
|
||||
zeek::reporter->Error("Bad IPAddr(%s) IPPrefix length : %d", vstr, length);
|
||||
this->length = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue