mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Make default get_file_handle handlers &priority=5.
So they're easier to override (just provide a new handler without specifying a priority).
This commit is contained in:
parent
0ef074594d
commit
bc5cd3acc8
4 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,7 @@ function get_file_handle(c: connection, is_orig: bool): string
|
||||||
module GLOBAL;
|
module GLOBAL;
|
||||||
|
|
||||||
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
||||||
|
&priority=5
|
||||||
{
|
{
|
||||||
if ( tag != ANALYZER_FTP_DATA ) return;
|
if ( tag != ANALYZER_FTP_DATA ) return;
|
||||||
set_file_handle(FTP::get_file_handle(c, is_orig));
|
set_file_handle(FTP::get_file_handle(c, is_orig));
|
||||||
|
|
|
@ -25,6 +25,7 @@ function get_file_handle(c: connection, is_orig: bool): string
|
||||||
module GLOBAL;
|
module GLOBAL;
|
||||||
|
|
||||||
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
||||||
|
&priority=5
|
||||||
{
|
{
|
||||||
if ( tag != ANALYZER_HTTP ) return;
|
if ( tag != ANALYZER_HTTP ) return;
|
||||||
set_file_handle(HTTP::get_file_handle(c, is_orig));
|
set_file_handle(HTTP::get_file_handle(c, is_orig));
|
||||||
|
|
|
@ -18,6 +18,7 @@ function get_file_handle(c: connection, is_orig: bool): string
|
||||||
module GLOBAL;
|
module GLOBAL;
|
||||||
|
|
||||||
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
||||||
|
&priority=5
|
||||||
{
|
{
|
||||||
if ( tag != ANALYZER_IRC_DATA ) return;
|
if ( tag != ANALYZER_IRC_DATA ) return;
|
||||||
set_file_handle(IRC::get_file_handle(c, is_orig));
|
set_file_handle(IRC::get_file_handle(c, is_orig));
|
||||||
|
|
|
@ -20,6 +20,7 @@ function get_file_handle(c: connection, is_orig: bool): string
|
||||||
module GLOBAL;
|
module GLOBAL;
|
||||||
|
|
||||||
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
||||||
|
&priority=5
|
||||||
{
|
{
|
||||||
if ( tag != ANALYZER_SMTP ) return;
|
if ( tag != ANALYZER_SMTP ) return;
|
||||||
set_file_handle(SMTP::get_file_handle(c, is_orig));
|
set_file_handle(SMTP::get_file_handle(c, is_orig));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue