Rename all BRO-prefixed environment variables

For backward compatibility when reading values, we first check
the ZEEK-prefixed value, and if not set, then check the corresponding
BRO-prefixed value.
This commit is contained in:
Daniel Thayer 2019-05-21 21:40:21 -05:00
parent d6096b1618
commit 1a74516db1
105 changed files with 330 additions and 274 deletions

View file

@ -64,7 +64,7 @@ Manager::Manager(const string& arg_config, const string& bro_command)
identifiers(), all_info(), last_identifier_seen(), incomplete_type(),
enum_mappings(), config(arg_config), bro_mtime()
{
if ( getenv("BRO_DISABLE_BROXYGEN") )
if ( getenv("ZEEK_DISABLE_ZEEKYGEN") || getenv("BRO_DISABLE_BROXYGEN") )
disabled = true;
// If running bro without the "-X" option, then we don't need bro_mtime.