mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add spicy runtime-support current_analyzer_id(), use it to set id in events
This commit is contained in:
parent
991bc9644d
commit
fd4f25965d
5 changed files with 42 additions and 1 deletions
|
@ -209,6 +209,14 @@ void raise_event(const EventHandlerPtr& handler, const hilti::rt::Vector<ValPtr>
|
|||
*/
|
||||
TypePtr event_arg_type(const EventHandlerPtr& handler, const hilti::rt::integer::safe<uint64_t>& idx);
|
||||
|
||||
/**
|
||||
* Retrieves the analyzer ID for the currently processed Zeek connection.
|
||||
* Assumes that the HILTI context's cookie value has been set accordingly.
|
||||
*
|
||||
* @return Pointer to an analyzer instance
|
||||
*/
|
||||
zeek::analyzer::ID current_analyzer_id();
|
||||
|
||||
/**
|
||||
* Retrieves the connection ID for the currently processed Zeek connection.
|
||||
* Assumes that the HILTI context's cookie value has been set accordingly.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue