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

@ -444,9 +444,13 @@ bool Ascii::DoHeartbeat(double network_time, double current_time)
string Ascii::LogExt()
{
const char* ext = getenv("BRO_LOG_SUFFIX");
const char* ext = getenv("ZEEK_LOG_SUFFIX");
if ( ! ext )
ext = "log";
{
ext = getenv("BRO_LOG_SUFFIX");
if ( ! ext )
ext = "log";
}
return ext;
}