mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Allow BRO_DEFAULT_LISTEN_ADDRESS to control broker listen address
This environment variable is now set to listen only on IPv4 loopback when running unit tests (instead of using the default INADDR_ANY). This also moves some of the @loads out from init-bare.bro into a new init-frameworks-and-bifs.bro in order to better support calling BIFs (like `getenv`) from variable initializations in those particular frameworks.
This commit is contained in:
parent
55f14c2eb8
commit
1b4e0116f4
10 changed files with 76 additions and 40 deletions
|
@ -264,7 +264,7 @@
|
|||
0.000000 MetaHookPost CallFunction(Log::__create_stream, <frame>, (Weird::LOG, [columns=<no value description>, ev=Weird::log_weird, path=weird])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::__create_stream, <frame>, (X509::LOG, [columns=<no value description>, ev=X509::log_x509, path=x509])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::__create_stream, <frame>, (mysql::LOG, [columns=<no value description>, ev=MySQL::log_mysql, path=mysql])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::__write, <frame>, (PacketFilter::LOG, [ts=1525287517.317589, node=bro, filter=ip or not ip, init=T, success=T])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::__write, <frame>, (PacketFilter::LOG, [ts=1527879383.723919, node=bro, filter=ip or not ip, init=T, success=T])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::add_default_filter, <frame>, (Broker::LOG)) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::add_default_filter, <frame>, (Cluster::LOG)) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::add_default_filter, <frame>, (Config::LOG)) -> <no result>
|
||||
|
@ -441,7 +441,7 @@
|
|||
0.000000 MetaHookPost CallFunction(Log::create_stream, <frame>, (Weird::LOG, [columns=<no value description>, ev=Weird::log_weird, path=weird])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::create_stream, <frame>, (X509::LOG, [columns=<no value description>, ev=X509::log_x509, path=x509])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::create_stream, <frame>, (mysql::LOG, [columns=<no value description>, ev=MySQL::log_mysql, path=mysql])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::write, <frame>, (PacketFilter::LOG, [ts=1525287517.317589, node=bro, filter=ip or not ip, init=T, success=T])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Log::write, <frame>, (PacketFilter::LOG, [ts=1527879383.723919, node=bro, filter=ip or not ip, init=T, success=T])) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(NetControl::check_plugins, <frame>, ()) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(NetControl::init, <null>, ()) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(Notice::want_pp, <frame>, ()) -> <no result>
|
||||
|
@ -469,6 +469,7 @@
|
|||
0.000000 MetaHookPost CallFunction(bro_init, <null>, ()) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(current_time, <frame>, ()) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(filter_change_tracking, <null>, ()) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(getenv, <null>, (BRO_DEFAULT_LISTEN_ADDRESS)) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(getenv, <null>, (CLUSTER_NODE)) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(global_ids, <frame>, ()) -> <no result>
|
||||
0.000000 MetaHookPost CallFunction(network_time, <frame>, ()) -> <no result>
|
||||
|
@ -727,6 +728,7 @@
|
|||
0.000000 MetaHookPost LoadFile(0, base<...>/http) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/imap) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/init-default.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/init-frameworks-and-bifs.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/input) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/input.bif.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/intel) -> -1
|
||||
|
@ -744,6 +746,7 @@
|
|||
0.000000 MetaHookPost LoadFile(0, base<...>/ntlm) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/numbers.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/openflow) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/option.bif.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/packet-filter) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/paths.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/patterns.bro) -> -1
|
||||
|
@ -766,6 +769,7 @@
|
|||
0.000000 MetaHookPost LoadFile(0, base<...>/software) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/ssh) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/ssl) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/stats.bif.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/store.bif.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/strings.bif.bro) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/strings.bro) -> -1
|
||||
|
@ -1062,7 +1066,7 @@
|
|||
0.000000 MetaHookPre CallFunction(Log::__create_stream, <frame>, (Weird::LOG, [columns=<no value description>, ev=Weird::log_weird, path=weird]))
|
||||
0.000000 MetaHookPre CallFunction(Log::__create_stream, <frame>, (X509::LOG, [columns=<no value description>, ev=X509::log_x509, path=x509]))
|
||||
0.000000 MetaHookPre CallFunction(Log::__create_stream, <frame>, (mysql::LOG, [columns=<no value description>, ev=MySQL::log_mysql, path=mysql]))
|
||||
0.000000 MetaHookPre CallFunction(Log::__write, <frame>, (PacketFilter::LOG, [ts=1525287517.317589, node=bro, filter=ip or not ip, init=T, success=T]))
|
||||
0.000000 MetaHookPre CallFunction(Log::__write, <frame>, (PacketFilter::LOG, [ts=1527879383.723919, node=bro, filter=ip or not ip, init=T, success=T]))
|
||||
0.000000 MetaHookPre CallFunction(Log::add_default_filter, <frame>, (Broker::LOG))
|
||||
0.000000 MetaHookPre CallFunction(Log::add_default_filter, <frame>, (Cluster::LOG))
|
||||
0.000000 MetaHookPre CallFunction(Log::add_default_filter, <frame>, (Config::LOG))
|
||||
|
@ -1239,7 +1243,7 @@
|
|||
0.000000 MetaHookPre CallFunction(Log::create_stream, <frame>, (Weird::LOG, [columns=<no value description>, ev=Weird::log_weird, path=weird]))
|
||||
0.000000 MetaHookPre CallFunction(Log::create_stream, <frame>, (X509::LOG, [columns=<no value description>, ev=X509::log_x509, path=x509]))
|
||||
0.000000 MetaHookPre CallFunction(Log::create_stream, <frame>, (mysql::LOG, [columns=<no value description>, ev=MySQL::log_mysql, path=mysql]))
|
||||
0.000000 MetaHookPre CallFunction(Log::write, <frame>, (PacketFilter::LOG, [ts=1525287517.317589, node=bro, filter=ip or not ip, init=T, success=T]))
|
||||
0.000000 MetaHookPre CallFunction(Log::write, <frame>, (PacketFilter::LOG, [ts=1527879383.723919, node=bro, filter=ip or not ip, init=T, success=T]))
|
||||
0.000000 MetaHookPre CallFunction(NetControl::check_plugins, <frame>, ())
|
||||
0.000000 MetaHookPre CallFunction(NetControl::init, <null>, ())
|
||||
0.000000 MetaHookPre CallFunction(Notice::want_pp, <frame>, ())
|
||||
|
@ -1267,6 +1271,7 @@
|
|||
0.000000 MetaHookPre CallFunction(bro_init, <null>, ())
|
||||
0.000000 MetaHookPre CallFunction(current_time, <frame>, ())
|
||||
0.000000 MetaHookPre CallFunction(filter_change_tracking, <null>, ())
|
||||
0.000000 MetaHookPre CallFunction(getenv, <null>, (BRO_DEFAULT_LISTEN_ADDRESS))
|
||||
0.000000 MetaHookPre CallFunction(getenv, <null>, (CLUSTER_NODE))
|
||||
0.000000 MetaHookPre CallFunction(global_ids, <frame>, ())
|
||||
0.000000 MetaHookPre CallFunction(network_time, <frame>, ())
|
||||
|
@ -1525,6 +1530,7 @@
|
|||
0.000000 MetaHookPre LoadFile(0, base<...>/http)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/imap)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/init-default.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/init-frameworks-and-bifs.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/input)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/input.bif.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/intel)
|
||||
|
@ -1542,6 +1548,7 @@
|
|||
0.000000 MetaHookPre LoadFile(0, base<...>/ntlm)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/numbers.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/openflow)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/option.bif.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/packet-filter)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/paths.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/patterns.bro)
|
||||
|
@ -1564,6 +1571,7 @@
|
|||
0.000000 MetaHookPre LoadFile(0, base<...>/software)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/ssh)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/ssl)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/stats.bif.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/store.bif.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/strings.bif.bro)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/strings.bro)
|
||||
|
@ -1859,7 +1867,7 @@
|
|||
0.000000 | HookCallFunction Log::__create_stream(Weird::LOG, [columns=<no value description>, ev=Weird::log_weird, path=weird])
|
||||
0.000000 | HookCallFunction Log::__create_stream(X509::LOG, [columns=<no value description>, ev=X509::log_x509, path=x509])
|
||||
0.000000 | HookCallFunction Log::__create_stream(mysql::LOG, [columns=<no value description>, ev=MySQL::log_mysql, path=mysql])
|
||||
0.000000 | HookCallFunction Log::__write(PacketFilter::LOG, [ts=1525287517.317589, node=bro, filter=ip or not ip, init=T, success=T])
|
||||
0.000000 | HookCallFunction Log::__write(PacketFilter::LOG, [ts=1527879383.723919, node=bro, filter=ip or not ip, init=T, success=T])
|
||||
0.000000 | HookCallFunction Log::add_default_filter(Broker::LOG)
|
||||
0.000000 | HookCallFunction Log::add_default_filter(Cluster::LOG)
|
||||
0.000000 | HookCallFunction Log::add_default_filter(Config::LOG)
|
||||
|
@ -2036,7 +2044,7 @@
|
|||
0.000000 | HookCallFunction Log::create_stream(Weird::LOG, [columns=<no value description>, ev=Weird::log_weird, path=weird])
|
||||
0.000000 | HookCallFunction Log::create_stream(X509::LOG, [columns=<no value description>, ev=X509::log_x509, path=x509])
|
||||
0.000000 | HookCallFunction Log::create_stream(mysql::LOG, [columns=<no value description>, ev=MySQL::log_mysql, path=mysql])
|
||||
0.000000 | HookCallFunction Log::write(PacketFilter::LOG, [ts=1525287517.317589, node=bro, filter=ip or not ip, init=T, success=T])
|
||||
0.000000 | HookCallFunction Log::write(PacketFilter::LOG, [ts=1527879383.723919, node=bro, filter=ip or not ip, init=T, success=T])
|
||||
0.000000 | HookCallFunction NetControl::check_plugins()
|
||||
0.000000 | HookCallFunction NetControl::init()
|
||||
0.000000 | HookCallFunction Notice::want_pp()
|
||||
|
@ -2064,6 +2072,7 @@
|
|||
0.000000 | HookCallFunction bro_init()
|
||||
0.000000 | HookCallFunction current_time()
|
||||
0.000000 | HookCallFunction filter_change_tracking()
|
||||
0.000000 | HookCallFunction getenv(BRO_DEFAULT_LISTEN_ADDRESS)
|
||||
0.000000 | HookCallFunction getenv(CLUSTER_NODE)
|
||||
0.000000 | HookCallFunction global_ids()
|
||||
0.000000 | HookCallFunction network_time()
|
||||
|
@ -2331,6 +2340,7 @@
|
|||
0.000000 | HookLoadFile base<...>/http
|
||||
0.000000 | HookLoadFile base<...>/imap
|
||||
0.000000 | HookLoadFile base<...>/init-default.bro
|
||||
0.000000 | HookLoadFile base<...>/init-frameworks-and-bifs.bro
|
||||
0.000000 | HookLoadFile base<...>/input
|
||||
0.000000 | HookLoadFile base<...>/input.bif.bro
|
||||
0.000000 | HookLoadFile base<...>/intel
|
||||
|
@ -2348,6 +2358,7 @@
|
|||
0.000000 | HookLoadFile base<...>/ntlm
|
||||
0.000000 | HookLoadFile base<...>/numbers.bro
|
||||
0.000000 | HookLoadFile base<...>/openflow
|
||||
0.000000 | HookLoadFile base<...>/option.bif.bro
|
||||
0.000000 | HookLoadFile base<...>/packet-filter
|
||||
0.000000 | HookLoadFile base<...>/paths.bro
|
||||
0.000000 | HookLoadFile base<...>/patterns.bro
|
||||
|
@ -2370,6 +2381,7 @@
|
|||
0.000000 | HookLoadFile base<...>/software
|
||||
0.000000 | HookLoadFile base<...>/ssh
|
||||
0.000000 | HookLoadFile base<...>/ssl
|
||||
0.000000 | HookLoadFile base<...>/stats.bif.bro
|
||||
0.000000 | HookLoadFile base<...>/store.bif.bro
|
||||
0.000000 | HookLoadFile base<...>/strings.bif.bro
|
||||
0.000000 | HookLoadFile base<...>/strings.bro
|
||||
|
@ -2387,7 +2399,7 @@
|
|||
0.000000 | HookLoadFile base<...>/x509
|
||||
0.000000 | HookLoadFile base<...>/xmpp
|
||||
0.000000 | HookLogInit packet_filter 1/1 {ts (time), node (string), filter (string), init (bool), success (bool)}
|
||||
0.000000 | HookLogWrite packet_filter [ts=1525287517.317589, node=bro, filter=ip or not ip, init=T, success=T]
|
||||
0.000000 | HookLogWrite packet_filter [ts=1527879383.723919, node=bro, filter=ip or not ip, init=T, success=T]
|
||||
0.000000 | HookQueueEvent NetControl::init()
|
||||
0.000000 | HookQueueEvent bro_init()
|
||||
0.000000 | HookQueueEvent filter_change_tracking()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue