Deprecate old unknown_protocol event signature

This commit is contained in:
Jan Grashoefer 2024-08-12 21:44:02 +02:00
parent c73fcdec3d
commit e14f3bae70
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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); }