mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00

The framework now cycles through callbacks based on a table indexed by analyzer tags, or the special case of service strings if a given analyzer is overloaded for multiple protocols (FTP/IRC data). This lets each protocol script bundle implement the callback locally and reduces the FAF's external dependencies.
10 lines
270 B
Text
10 lines
270 B
Text
@load ./main
|
|
@load base/utils/conn-ids
|
|
@load base/frameworks/file-analysis/main
|
|
|
|
redef FileAnalysis::service_handle_callbacks += {
|
|
["ftp-data"] = function(c: connection, is_orig: bool): string
|
|
{
|
|
return fmt("%s ftp-data: %s", c$start_time, id_string(c$id));
|
|
},
|
|
};
|