mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Deprecate old unknown_protocol event signature
This commit is contained in:
parent
c73fcdec3d
commit
e14f3bae70
2 changed files with 3 additions and 0 deletions
|
@ -891,6 +891,7 @@ event Pcap::file_done%(path: string%);
|
|||
##
|
||||
## .. zeek:see:: UnknownProtocol::first_bytes_count
|
||||
event unknown_protocol%(analyzer_name: string, protocol: count, first_bytes: string, analyzer_history: string_vec%);
|
||||
event unknown_protocol%(analyzer_name: string, protocol: count, first_bytes: string%) &deprecated="Remove in v8.1. Use the version that includes analyzer_history.";
|
||||
|
||||
## An event for handling packets that reached the end of processing without
|
||||
## being marked as processed. Note that this event may lead to unpredictable
|
||||
|
|
|
@ -180,6 +180,8 @@ public:
|
|||
* Tracks the given analyzer for the current packet's analyzer history.
|
||||
* The packet analyzer history is implemented in form of a stack, which is reset on a
|
||||
* call to ProcessPacket() but maintained throughout calls to ProcessInnerPacket().
|
||||
*
|
||||
* @param analyzer The analyzer to track.
|
||||
*/
|
||||
void TrackAnalyzer(Analyzer* analyzer) { analyzer_stack.push_back(analyzer); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue