Add even more of the source
This should be about everything needed to build so far?
This commit is contained in:
parent
af3619d4fa
commit
849723c9cf
547 changed files with 149239 additions and 0 deletions
31
StreamingLoadTool/dummynet_fixed_start.script
Executable file
31
StreamingLoadTool/dummynet_fixed_start.script
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
#
|
||||
echo "SCRIPT $0 [ip address] "
|
||||
echo "TEST Set a limited bandwidth."
|
||||
echo ""
|
||||
|
||||
ADDRESS="127.0.0.1"
|
||||
|
||||
if [ ${1} ]; then
|
||||
ADDRESS=${1}
|
||||
echo "Address set. Using $ADDRESS"
|
||||
else
|
||||
echo "No Address given. Using $ADDRESS"
|
||||
fi
|
||||
|
||||
ipfw delete pipe 1
|
||||
ipfw delete pipe 2
|
||||
ipfw delete set 11
|
||||
ipfw delete set 12
|
||||
|
||||
ipfw pipe 1 config bw 80kbits/s delay 0 queue 100 noerror
|
||||
ipfw pipe 2 config bw 80kbits/s delay 0 queue 100 noerror
|
||||
|
||||
ipfw add 11 set 11 pipe 1 src-ip $ADDRESS proto udp in
|
||||
ipfw add 12 set 12 pipe 2 src-ip $ADDRESS proto udp out
|
||||
|
||||
ipfw set enable 11
|
||||
ipfw set enable 12
|
||||
ipfw enable firewall one_pass
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue