mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Add analyzer_confirmation and analyzer_violation events
This commit is contained in:
parent
7bffd2eccd
commit
612212568a
96 changed files with 432 additions and 235 deletions
|
@ -205,4 +205,18 @@ void Session::RemoveConnectionTimer(double t)
|
|||
session_mgr->Remove(this);
|
||||
}
|
||||
|
||||
AnalyzerConfirmationState Session::AnalyzerState(const zeek::Tag& tag) const
|
||||
{
|
||||
auto it = analyzer_confirmations.find(tag);
|
||||
if ( it == analyzer_confirmations.end() )
|
||||
return AnalyzerConfirmationState::UNKNOWN;
|
||||
|
||||
return it->second;
|
||||
}
|
||||
|
||||
void Session::SetAnalyzerState(const zeek::Tag& tag, AnalyzerConfirmationState value)
|
||||
{
|
||||
analyzer_confirmations.insert_or_assign(tag, value);
|
||||
}
|
||||
|
||||
} // namespace zeek::session
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue