From ee59c86b8fa84e77030904ff6194828adc3df1be Mon Sep 17 00:00:00 2001 From: Seth Hall Date: Wed, 6 Jul 2011 10:28:45 -0400 Subject: [PATCH] Restructing bro.init a little bit to load required frameworks at the end. --- policy/bro.init | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/policy/bro.init b/policy/bro.init index 3e71b7dfd9..8f2ef568c6 100644 --- a/policy/bro.init +++ b/policy/bro.init @@ -293,8 +293,6 @@ type entropy_test_result: record { @load bro.bif.bro @load reporter.bif.bro -@load logging # sic! Not logging.bif. - global log_file_name: function(tag: string): string &redef; global open_log_file: function(tag: string): file &redef; @@ -1263,9 +1261,6 @@ type bt_tracker_headers: table[string] of string; # empty if none. const cmd_line_bpf_filter = "" &redef; -# Load the packet filtering framework. -@load packet-filter - # Rotate logs every x seconds. const log_rotate_interval = 0 sec &redef; @@ -1479,22 +1474,11 @@ const skip_http_data = F &redef; # UDP tunnels. See also: udp_tunnel_port, policy/udp-tunnel.bro. const parse_udp_tunnels = F &redef; -#@load site -#@load dpd +@load site +# Load the logging framework. +@load frameworks/logging -# TODO: These need to go somewhere else with real implementations. -# -# event reporter_message(t: time, msg: string, location: string) -# { -# print fmt("[script] reporter_message: %s [%s] [%.6f]", msg, location, t); -# } -# -# event reporter_warning(t: time, msg: string, location: string) -# { -# print fmt("[script] reporter_warning: %s [%s] [%.6f]", msg, location, t); -# } -# -# event reporter_error(t: time, msg: string, location: string) -# { -# print fmt("[script] reporter_error: %s [%s] [%.6f]", msg, location, t); -# } +# Load the packet filtering framework. +@load frameworks/packet-filter + +#@load dpd