Commit 4ac640c7 authored by Mike Hibler's avatar Mike Hibler

Pick up a couple of other values from "subbossinfo" tmcc call.

MAXLINGER is how long to stick around after the last client leaves.
DYNAMICBW can be used to turn on the experimental dynamic bandwidth adjust.
parent de8b9b34
......@@ -24,6 +24,13 @@
# Unset to use mfrisbeed default.
# BANDWIDTH: maximum bandwidth any instance of frisbeed should use (Mb/sec).
# Unset to use mfrisbeed default.
# DYNAMICBW: use *experimental* dynamic bandwidth control. If non-zero,
# uses an additive-increase, multiplicitive-decrease algorithm based
# on congestion detection. Here BANDWIDTH represents the maximum to allow.
# Unset or zero disables.
# MAXLINGER: how long (seconds) to wait around after the last report/request
# has been received. 0 means exit when last client leaves, -1 means
# wait forever. Unset to use mfrisbeed default.
# UNICAST: use unicast rather than multicast when downloading from our parent.
# MCQUERIER: run as an IGMPv2 querier.
# You should only have one of these per broadcast domain.
......@@ -36,6 +43,8 @@
#
MCBASEADDR=239.192.1
BANDWIDTH=100000000
DYNAMICBW=
MAXLINGER=180
UNICAST=false
MCQUERIER=false
EVENTSERVER=boss
......@@ -116,6 +125,12 @@ if [ $? -eq 0 ]; then
BANDWIDTH)
BANDWIDTH=$v
;;
DYNAMICBW)
DYNAMICBW=$v
;;
MAXLINGER)
MAXLINGER=$v
;;
UNICAST)
UNICAST=$v
;;
......@@ -164,6 +179,20 @@ if [ -n "$BANDWIDTH" ]; then
opts="$opts,bandwidth=$BANDWIDTH"
fi
fi
if [ -n "$DYNAMICBW" ]; then
if [ -z "$opts" ]; then
opts="-O dynamicbw=$DYNAMICBW"
else
opts="$opts,dynamicbw=$DYNAMICBW"
fi
fi
if [ -n "$MAXLINGER" ]; then
if [ -z "$opts" ]; then
opts="-O maxlinger=$MAXLINGER"
else
opts="$opts,maxlinger=$MAXLINGER"
fi
fi
if [ -n "$CLIENTREPORT" ]; then
str="report=$CLIENTREPORT"
if [ -n "$EVENTSERVER" ]; then
......
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