Commit ee6ecce4 authored by Joanne Hugé's avatar Joanne Hugé

Update wrapper script to include etf offset

parent d7c03ff0
......@@ -3,7 +3,7 @@
script_dir=$(dirname $(realpath $0))
usage() {
echo "Usage: $0 (-e delta | -p) [-bg] [-i INTERVAL] [-d TX_BUFFER_LEN] [emerald|slate|onyx]" 1>&2;
echo "Usage: $0 (-e delta [-o etf_offset] | -p) [-bg] [-i INTERVAL] [-d TX_BUFFER_LEN] [emerald|slate|onyx]" 1>&2;
exit 1;
}
......@@ -14,8 +14,9 @@ interval=100000
client_options="-a -p 99 -f eth0"
qdisc_options=""
ip="192.168.99."
etf_offset=500
while getopts "bd:e:ghi:p" opt; do
while getopts "bd:e:o:ghi:p" opt; do
case "${opt}" in
b )
client_options+=" -b"
......@@ -25,10 +26,12 @@ while getopts "bd:e:ghi:p" opt; do
;;
e )
use_etf=1
client_options+=" -e -q 8"
delta=${OPTARG}
qdisc_options+="-e $delta"
;;
o )
etf_offset=${OPTARG}
;;
g )
client_options+=" -g -t"
use_histogram=1
......@@ -86,6 +89,10 @@ else
fi
fi
if [ -n "${use_etf}" ]; then
client_options+=" -e etf_offset -q 8"
fi
client_options+=" -i $interval"
echo "create_qdisc $qdisc_options";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment