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

@ -1,12 +1,12 @@
#! /usr/bin/env bash
unset BRO_DISABLE_BROXYGEN
unset ZEEK_DISABLE_ZEEKYGEN; unset BRO_DISABLE_BROXYGEN
# If running this from btest, unset any of the environment
# variables that alter default script values.
unset BRO_DEFAULT_LISTEN_ADDRESS
unset BRO_DEFAULT_LISTEN_RETRY
unset BRO_DEFAULT_CONNECT_RETRY
unset ZEEK_DEFAULT_LISTEN_ADDRESS; unset BRO_DEFAULT_LISTEN_ADDRESS
unset ZEEK_DEFAULT_LISTEN_RETRY; unset BRO_DEFAULT_LISTEN_RETRY
unset ZEEK_DEFAULT_CONNECT_RETRY; unset BRO_DEFAULT_CONNECT_RETRY
dir="$( cd "$( dirname "$0" )" && pwd )"
source_dir="$( cd $dir/../.. && pwd )"
@ -26,7 +26,7 @@ esac
cd $build_dir
. zeek-path-dev.sh
export BRO_SEED_FILE=$source_dir/testing/btest/random.seed
export ZEEK_SEED_FILE=$source_dir/testing/btest/random.seed
function run_zeek
{