Move a few low-use classes to namespaces

This commit is contained in:
Tim Wojtulewicz 2020-07-21 16:19:14 -07:00
parent 886fc102b8
commit c9ab1f93e7
53 changed files with 252 additions and 122 deletions

View file

@ -653,5 +653,5 @@ void File::FileEvent(zeek::EventHandlerPtr h, zeek::Args args)
bool File::PermitWeird(const char* name, uint64_t threshold, uint64_t rate,
double duration)
{
return ::PermitWeird(weird_state, name, threshold, rate, duration);
return zeek::detail::PermitWeird(weird_state, name, threshold, rate, duration);
}

View file

@ -373,7 +373,7 @@ protected:
zeek::String::CVec chunks;
} bof_buffer; /**< Beginning of file buffer. */
WeirdStateMap weird_state;
zeek::detail::WeirdStateMap weird_state;
static int id_idx;
static int parent_id_idx;

View file

@ -69,7 +69,7 @@ string Manager::HashHandle(const string& handle) const
zeek::detail::hash128_t hash;
zeek::detail::KeyedHash::StaticHash128(handle.data(), handle.size(), &hash);
return Bro::UID(bits_per_uid, hash, 2).Base62("F");
return zeek::UID(bits_per_uid, hash, 2).Base62("F");
}
void Manager::SetHandle(const string& handle)