mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
FileAnalysis: separating IRC/FTP data analyzers.
It simplifies the file handle string callbacks.
This commit is contained in:
parent
59ed5c75f1
commit
661677d452
37 changed files with 156 additions and 95 deletions
|
@ -2,10 +2,11 @@
|
|||
@load base/utils/conn-ids
|
||||
@load base/frameworks/file-analysis/main
|
||||
|
||||
redef FileAnalysis::service_handle_callbacks += {
|
||||
["irc-dcc-data"] = function(c: connection, is_orig: bool): string
|
||||
redef FileAnalysis::handle_callbacks += {
|
||||
[ANALYZER_IRC_DATA] = function(c: connection, is_orig: bool): string
|
||||
{
|
||||
if ( is_orig ) return "";
|
||||
return fmt("%s irc-dcc-data: %s", c$start_time, id_string(c$id));
|
||||
return fmt("%s %s %s", ANALYZER_IRC_DATA, c$start_time,
|
||||
id_string(c$id));
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue