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:
Jon Siwek 2013-05-21 10:34:19 -05:00
parent 0ef074594d
commit bc5cd3acc8
4 changed files with 4 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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